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(list): #define a function named is_long with argument list
- s = "True" if len(list) > 5 else "False" #a list comprehension to print True if the length of the list is more than 5 and print false if otherwise
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement