def getNumber(msg):
    """
    Prompts the user to enter a number. Checks that it is a number.
    """
    while True:
        version = input(msg)
        try:
            version = int(version)
            return version
        except ValueError:
            print("Please enter a number.")