def get_input(label, default=None):
    """Prompt the user for input.

    :param label: The label of the prompt.
    :param label: str

    :param default: The default value.

    :rtype: str | None

    """
    if default:
        _label = "%s [%s]: " % (label, default)
    else:
        _label = "%s: " % label

    print("")
    value = input(_label)

    if not value:
        return default

    return value