Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- empty = [ ]
- active = [True]
- favorite_numbers = [1, 2, 3, 4, 5]
- colors = ["red", "green", "blue"]
- def is_long(your_list):
- if len(your_list)>5:
- return True
- else:
- return False
- print(is_long([1,2,3,4])) #argument must be a list(it can contain strings or integers)
Advertisement
Add Comment
Please, Sign In to add comment