0

Could someone please break this down for me??

12th Jul 2017, 1:35 PM
barbez libby
barbez libby - avatar
3 Respuestas
+ 7
Break down what, exactly? How to handle variables in Python or..?
12th Jul 2017, 4:38 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 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.
12th Jul 2017, 6:54 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
is it that when you delete a variable,all the variables above are assumed and only the variables below the del are considered?
12th Jul 2017, 6:51 PM
barbez libby
barbez libby - avatar