0

what's the use of "del" in python3?

I mean we can just not write the variable and its value rather than defining a variable and then using "del" and then defining the var again?

28th Aug 2020, 6:32 AM
Risko
Risko - avatar
1 ответ
+ 6
Risko here is a bit of reading material... if you preset the variable just incase a not input then the del would not execute but if you are wanting to use a direct input the preset variable will be deleted and replaced with the new variable... https://www.edureka.co/blog/JUMP_LINK__&&__python__&&__JUMP_LINK-list-remove/#:~:text=Python%20del%20operator%3A&text=The%20del%20operator%20removes%20the,the%20item%20at%20that%20index.
28th Aug 2020, 6:45 AM
BroFar
BroFar - avatar