Advertisement
FelipeNeto2

zip(PYTHON)

Dec 10th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. names = ['Jenny', 'Alexus', 'Sam', 'Grace']
  2. dogs_names = ['Elphonse', 'Dr. Doggy DDS', 'Carter', 'Ralph']
  3.  
  4. names_and_dogs_names = zip(names, dogs_names)
  5. list_of_names_and_dogs_names = list(names_and_dogs_names)
  6.  
  7. print(list_of_names_and_dogs_names)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement