python does variables reset in function code example
Example: how to reset a variable in python
f = 11
print(f)
del f
print(f) # This should show a error thing that says that this variable doesn't exist
f = 11
print(f)
del f
print(f) # This should show a error thing that says that this variable doesn't exist