Are there any declaration keywords in python, like local, global, private, public etc. I know it\'s type free but how do you know if this statement:
x = 5;
It's worth mentioning that there is a global keyword, so if you want to refer to the global x:
x = 4 def foo(): x = 7 # x is local to your function
You need to do this:
x = 4 def foo(): global x # let python know you want to use the top-level x x = 7