Advertisement
SansPapyrus683

For Loops

May 15th, 2022
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. hugehairypants = ['huge', 'hairy', 'pants']
  2. for x in hugehairypants:
  3.     print(x)
  4.     for y in hugehairypants:
  5.         print(y)
  6.  
  7. # for x in hugehairypants:
  8. #     print(x)
  9. #     print(x)
  10.  
  11. """
  12. huge
  13. huge
  14. hairy
  15. pants
  16. hairy
  17. huge
  18. hairy
  19. pants
  20. pants
  21. huge
  22. hairy
  23. pants
  24. """
  25.  
  26. """
  27. str() -> converts stuff to string
  28. int() -> converts stuff to number
  29. list() -> converts stuff to list
  30. """
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement