0
Could someone please break this down for me??
3 Respuestas
+ 7
Break down what, exactly? How to handle variables in Python or..?
+ 3
No. Actually, del removes only the indicated variable. All others stay intact.
a = 0
print(a)
The above will output '0'.
a = 0
del a
print(a)
The above will raise a NameError, as there will be no 'a' variable defined when you del it.
0
is it that when you delete a variable,all the variables above are assumed and only the variables below the del are considered?