Source Code:
(back to article)
if 'my_variable' in vars(): print('my_variable exists in the current namespace') else: print('my_variable does not exist in the current namespace')
Result:
Report an issue