<reponame>Saldenisov/pyconlyse
TryAgain = True
while TryAgain:
    try:
        Value = int(input("Type tests_devices whole number. "))
    except ValueError:
        print("You must type tests_devices whole number!")
        try:
            DoOver = input("Try again (y/n)? ")
        except:
            print("OK, see you next time!")
            TryAgain = False
        else:
            if (str.upper(DoOver) == "N"):
                TryAgain = False
    except KeyboardInterrupt:
        print("You pressed Ctrl+C!")
        print("See you next time!")
        TryAgain = False
    else:
        print(Value)
        TryAgain = False
TryAgain = True
while TryAgain:
    try:
        Value = int(input("Type tests_devices whole number. "))
    except ValueError:
        print("You must type tests_devices whole number!")
        try:
            DoOver = input("Try again (y/n)? ")
        except:
            print("OK, see you next time!")
            TryAgain = False
        else:
            if (str.upper(DoOver) == "N"):
                TryAgain = False
    except KeyboardInterrupt:
        print("You pressed Ctrl+C!")
        print("See you next time!")
        TryAgain = False
    else:
        print(Value)
        TryAgain = False