What is del used for? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What is del used for?

We use the 'del' keyword to delete a variable. However, what is its use in programming?

27th Aug 2016, 4:02 AM
Nilabha Saha
Nilabha Saha - avatar
2 Antworten
+ 1
u can use del for to delete variables to make memory free
16th Sep 2016, 10:39 AM
Shafiulla Pathan
Shafiulla Pathan - avatar
0
for example, you can delete a huge list/dictionary after analysing some big database. this will free some RAM for using by other programs or by your program again
27th Aug 2016, 9:13 AM
Demeth
Demeth - avatar