Blessing988

Untitled

Feb 20th, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. empty = [  ]
  2.  
  3. active = [True]
  4.  
  5. favorite_numbers = [1, 2, 3, 4, 5]
  6.  
  7. colors = ["red", "green", "blue"]
  8.  
  9. def is_long(your_list):
  10.     if len(your_list)>5:
  11.         return True
  12.     else:
  13.         return False
  14.  
  15.  
  16. 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