NameError in python

>>> my_list = ['p','r','o','b','l','e','m']
>>> del my_list       # delete entire list
>>> my_list
...
NameError: name 'my_list' is not defined 

No comments:

Post a Comment