Answers for "The del statemen"

0

The del statemen

my_var = 5
my_tuple = ('Sam', 25)
my_dict = {'name': 'Sam', 'age': 25}

del my_var
del my_tuple
del my_dict

# Error: my_var is not defined
print(my_var)

# Error: my_tuple is not defined
print(my_tuple)

# Error: my_dict is not defined
print(my_dict)
Posted by: Guest on March-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language