Advertisement
ancestor_tunji

Untitled

Feb 22nd, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. #Empty list
  2. #1
  3. empty = []
  4. #2
  5. active = [True]
  6. #3
  7. favorite_number = [1, 2, 3, 4, 5]
  8. #4
  9. colors = ["red", "green", "blue"]
  10.  
  11. #5
  12. list = [4, 5, 7, 28, 67]
  13. error = [1,2,3,4,5,4]
  14. def is_long(list):
  15.     if len(list) > 5:
  16.         print("True")
  17.     else:
  18.         print("False")
  19. is_long(list)
  20.  
  21. is_long(error)
  22.  
  23. is_long([4, 5, 7, 28, 67])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement