How to handle exceptions in Python?

preview_player
Показать описание
Exception Handling in Python.

try:
print(x)
except:
print("There is an error")
else:
print("There is no error")
finally:
print("It executes always")
Рекомендации по теме
visit shbcf.ru