0

I am not sure what to call this syntax and therefore I am not able to search for anything about why it exists. (snippet works in python v3.7.3 and v3.6.5)

>>> RandomStuff: x = 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
>>> x = 1
>>> x
1
>>> RandomStuff: x = 2
>>> x
1
>>> 

Naman
  • 372
  • 4
  • 20

0 Answers0