2070 / Python / Винятки
while True: try: x = int(input("Enter a number: ")) break except ValueError: print("Try again...")
try: print("Hello") except: print("Something went wrong") else: print("Nothing went wrong")