def llen(x) -> int:
    """
    Calculate the length of input if list, else give 1
    :param x: list or non-container type
    :return: length or 1
    """
    return len(x) if type(x) is list else 1