Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Empty list
- #1
- empty = []
- #2
- active = [True]
- #3
- favorite_number = [1, 2, 3, 4, 5]
- #4
- colors = ["red", "green", "blue"]
- #5
- list = [4, 5, 7, 28, 67]
- error = [1,2,3,4,5,4]
- def is_long(list):
- if len(list) > 5:
- print("True")
- else:
- print("False")
- is_long(list)
- is_long(error)
- is_long([4, 5, 7, 28, 67])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement