is del makes the value assigned to the variable zero? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

is del makes the value assigned to the variable zero?

15th Oct 2016, 7:08 AM
Anjali Singh
Anjali Singh - avatar
5 Answers
+ 1
it suppresses the variable. del is for delete
15th Oct 2016, 8:30 PM
orchess
0
I believe that the = sing assigns a variable.
22nd Oct 2016, 1:08 AM
TY chi
TY chi - avatar
0
make sure you remember to use open and closed parentheses.
22nd Oct 2016, 1:09 AM
TY chi
TY chi - avatar
0
parentheses are not required for del
22nd Oct 2016, 1:43 PM
orchess
0
in computer theory, zero is still a value. using del on a variable will remove it's assignment, making it null. you will no longer be able to call that variable with assigning it to something new.
22nd Oct 2016, 7:28 PM
Alex Schrichte
Alex Schrichte - avatar