def get_int_from_prompt(msg, default):
    """
    Return integer from prompt input

    Args:
        :msg: (str) Message to print
        :default: (int) Default value

    Returns:
        :value: (int) Integer from prompt
    """

    while True:
        value = input(msg)

        if not value:
            return default
        else:
            try:
                value = int(value)
                return value
            except ValueError:
                print("Invalid input, try again...")