- 1

What happens when 'del' goes on one of the variables?

well all I know is when the the two variables with theur representing numbers end with either of them being deleted, the set variables have been reset to nothing so two new ones have been reinstated with new representing numbers then we should have already the last stage before answer like print (5*4). answer is 20. I got it the first attempt. try it guys!!

31st Aug 2018, 9:26 PM
Bug head Spit-venom
Bug head Spit-venom - avatar
1 Odpowiedź
+ 2
The "del" just deletes the memory location of that variable but the value assigned to that variable is still in memory python is a object oriented because it'll reuse that memory of value when it's want and when it no longer to use it'll replaced with some other data.
27th Aug 2020, 8:24 AM
Balaji
Balaji - avatar