Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #empty list
- empty = []
- #active - Boolean
- active = [True]
- #list with 5 favourite number integers - integers
- favourite_numbers = [1,3,4,5,7]
- #colors - strings
- colors = ["red", "green", "blue"]
- '''is_long function returns True
- if list has more than 5 elements and
- False if otherwise'''
- def is_long(slist):
- if len(slist) > 5:
- return True
- else:
- return False
- is_long()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement