Advertisement
Blessing988

Untitled

Feb 21st, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. empty = [ ]
  2.  
  3. active = [True]
  4.  
  5.  
  6. favorite_numbers = [1, 2, 8, 10, 20]
  7.  
  8.  
  9. colors = ["red", "green", "blue"]
  10.  
  11. def is_long(a_list):
  12.     if len(a_list) > 5:
  13.         return(True)
  14.     else:
  15.         return(False)
  16.  
  17. print(is_long(["ace", False, 1, 5]))    #Example (the argument must be a list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement