Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. #assign employee name to list
  4. empName = ['Tom', 'Maddy', 'Sam', 'John']
  5.  
  6. #zip the values
  7. emp = zip(empName)
  8.  
  9. #Prints the values in zip
  10. print('\nValues in zip')
  11. # prints tuple of shortest length
  12. for values in emp:
  13. print(values)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement