Write a Python program to classify a set of input data as either True or False.
[1, 2, 3, 4, 5]
def classify(data):
    if min(data) < 0:
        return False
    elif max(data) > 1:
        return False
    else:
        return True