Advertisement
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(variable):
- # Iteration to check if the list has more than 5 elements
- if len(variable) > 5:
- return True
- else:
- return False
- print(is_long([1, 2, 3, 4, 5, 6])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement