hwoto neglect if any exception happening in python

32

try:
    print(invalid-variable)
except Exception:
    pass

print("Exception ignored")
OUTPUT

Comments

Submit
0 Comments