if VAR in globals():
    print('TRUE')
else:
    print("FALSE")
I got this error:
  File "c:/Users/Admin/Desktop/Project_Nuôi_FB/te1.py", line 2, in <module>
    if VAR in globals():
NameError: name 'VAR' is not defined
How do I check the existence of a variable?
 
     
     
     
     
    