4 Antworten
+ 4
You don't need to declare anything before you really use it.
x = None
# ...
x = 1
The first line in this example is not need if you don't do anything with x unless line 3.
+ 2
No, there is not. Actually the advantage of Python is you can assign a value to a variable (i.e. a string) and later re-assign another value even of a different type (i.e. integer).
+ 2
Thanks
+ 2
Thanks lisa🤗🤗