def option_menu() -> int:
    """
    Ask user to choose option.

    :precondition: input must be a number that corresponds with an option
    :postcondition: will return the user's choice as an int

    :return: input as an int
    """
    while True:
        print("Please select an option from the following menu.")
        try:
            return int(input("""
1. Global Statistics

2. Information about my Country

3. Search by Country

4. News Articles
        
5. Search Stocks

6. Am I Eligible for the Canadian Emergency Response Benefit Funding?
        
7. Show effect of COVID-19 on DOW Jones Index
        
8. Quit

\n""").strip())

        except ValueError:
            print("Please input a number that corresponds to an option on the menu.")