I want to check if a variable exists. Now I’m doing something like this:
try: myVar except NameError: # Do something.
Are there other ways without exceptions?
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.