# https://www.globalsino.com/ICs/
# Try a number of times before exception or fail


attempts = 0

for attempt_number in range(3):
    try:
        user_input = input("Please enter an integer: ")
        myOutput = 100/int(user_input)
        print("The input is valid, and the output is: ", myOutput)
        print("\n")
        break

    except (ValueError, ZeroDivisionError):
        attempts += 1
        print("Something wrong!")
        print("\n")

print("Print me no matter if there is anything wrong.")
