I am looking to understand some basic python functions in their entirety. How does the "del" produce this (in bash):
>>> temp = 1
>>> python = 1 + temp
>>>
>>>
>>> temp
1
>>>
>>> python
2
>>>
>>>
>>> del temp
>>>
>>>
>>> python
2
>>>
>>> temp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'temp' is not defined
>>>
>>>
>>>
pythonwas already assigned the value2. It doesn't make a reference totempin order to produce the result. What's unexpected here?