How to clear shell values of python? -
assume in python shell. have entered a=10.
>>> a=10 >>> 10
but nothing c , mean
>>> c traceback (most recent call last): file "<stdin>", line 1, in <module> nameerror: name 'c' not defined >>>
how can clear value of , should have stored nothing. mean after clearing if press output should similar c.
note: dont want leave python.
delete name del
statement:
del
after accessing a
throw nameerror
well:
>>> = 10 >>> 10 >>> del >>> traceback (most recent call last): file "<stdin>", line 1, in <module> nameerror: name 'a' not defined
Comments
Post a Comment