def get_user_article_choice() -> int:
    """
    Get user's choice on which article they want to view.

    :precondition: User's input must be an integer
    :postcondition: Successfully return user's input as an integer

    :return: User's choice of article number as an integer
    """
    # Loop until there is valid input
    while True:
        try:
            article_num = int(input("\nWhich article would you like to view?: "))

        except ValueError:
            print("Invalid input! Try again.")
            # Will continue the while loop
            continue

        else:
            if 0 < article_num <= 5:
                # Stop while loop iteration
                return article_num

            else:
                print("That's not a valid article number, try again!")