Guest User

Untitled

a guest
Oct 21st, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. In [7]: list1 = (1, 2, 3)
  2.  
  3. In [8]: list2 = ("a", "b", "c", "d")
  4.  
  5. In [9]: for a in list1:
  6. ...: for b in list2:
  7. ...: print(a, b)
  8. ...: print('1 a and 2 a is not supposed to show up')
  9. ...:
  10. 1 a
  11. 1 a and 2 a is not supposed to show up
  12. 1 b
  13. 1 a and 2 a is not supposed to show up
  14. 1 c
  15. 1 a and 2 a is not supposed to show up
  16. 1 d
  17. 1 a and 2 a is not supposed to show up
  18. 2 a
  19. 1 a and 2 a is not supposed to show up
  20. 2 b
  21. 1 a and 2 a is not supposed to show up
  22. 2 c
  23. 1 a and 2 a is not supposed to show up
  24. 2 d
  25. 1 a and 2 a is not supposed to show up
  26. 3 a
  27. 1 a and 2 a is not supposed to show up
  28. 3 b
  29. 1 a and 2 a is not supposed to show up
  30. 3 c
  31. 1 a and 2 a is not supposed to show up
  32. 3 d
  33. 1 a and 2 a is not supposed to show up
Add Comment
Please, Sign In to add comment