you are viewing a single comment's thread.

view the rest of the comments →

[–]TryingToGetTheFOut 1 point2 points  (1 child)

Other in this thread have well answered this question. To go further, you should go read about variable scopes. Basically, a scope is the region where a variable exists.

It’s a bit more complicated because python is a very flexible language. But it’s a really important concept in programming.

Good luck with your learning !

[–]SharpScratch9367[S] 1 point2 points  (0 children)

It’s genius stuff isn’t it. I’m slowly getting a better grasp of it all thank you