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