Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- empty = [ ]
- active = [True]
- favorite_numbers = [1, 2, 8, 10, 20]
- colors = ["red", "green", "blue"]
- def is_long(a_list):
- if len(a_list) > 5:
- return(True)
- else:
- return(False)
- print(is_long(["ace", False, 1, 5])) #Example (the argument must be a list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement