<reponame>Millwr1ght/cs-241<gh_stars>0
"""
File: check09a.py : exceptions
Author: <NAME>

intended to help you practice the syntax of exceptions
"""


def int_input(prompt):
    """ asks for a integer value, returns that value """
    replied = False
    while not replied:
        try:
            number = int(input(prompt))
            replied = True
        except:
            print("The value entered is not valid")
    return number


def main():
    """ """

    user_answer = int_input('Enter a number: ')
    print(f'The result is: {2*user_answer}')


if __name__ == '__main__':
    main()

"""
File: check09a.py : exceptions
Author: <NAME>

intended to help you practice the syntax of exceptions
"""


def int_input(prompt):
    """ asks for a integer value, returns that value """
    replied = False
    while not replied:
        try:
            number = int(input(prompt))
            replied = True
        except:
            print("The value entered is not valid")
    return number


def main():
    """ """

    user_answer = int_input('Enter a number: ')
    print(f'The result is: {2*user_answer}')


if __name__ == '__main__':
    main()
File: check09a.py : exceptions Author: <NAME>  intended to help you practice the syntax of exceptions asks for a integer value, returns that value