def isPandigital(n):
    """
    n: an int
    output: True if is a pandigital
    """
    if len(str(n)) > 10:
        return False
    
    numStrList = list(str(n))
    
    if len(str(n)) is 10:
        numList = list(range(10))
    else:
        numList = list(range(1, len(str(n))+1))
    
    for num in numList:
        if str(num) not in numStrList:
            return False
    return True