Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #nested structure?
  2. def Lister (list):
  3.     for x in list:
  4.         print("x=", x )
  5.  
  6. myList = [-2, 4, 42]
  7. Lister(myList)
  8.  
  9. MYsTRINGS = ['This', 'Is', "Cool"]
  10. Lister(MYsTRINGS)
  11.  
  12. myNestList = [-2, [3,4], 42]
  13. Lister (myNestList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement