filmov
tv
How to handle exceptions in Python?

Показать описание
Exception Handling in Python.
try:
print(x)
except:
print("There is an error")
else:
print("There is no error")
finally:
print("It executes always")
try:
print(x)
except:
print("There is an error")
else:
print("There is no error")
finally:
print("It executes always")