Grokking Python Fundamentals
Ask Author
Back to course home

0% completed

Vote For New Content
print(variable) after del doesn't cause exception/error

durgeshdixit175

Apr 19, 2025

In deleting variable section, it's mentioned that printing a variable after deleting it will cause an exception/error. but that didn't happen. I tried removing comment from last 2 lines of that program (print statements after delete), and it just didn't print any value in console. But I didn't see any exception/error, please elaborate.

0

0

Comments
Comments

On this page