[Solved] Basic Python variable function not working? [closed]


You are using the variable before it declaration.

Carry your variable declaration at the top of the first print function

For Example

boy_name = "Bobby"
print("there was a boy named " + boy_name + " ")                          
print("there is a boy named timmy")


solved Basic Python variable function not working? [closed]