Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #assign employee name to list
- empName = ['Tom', 'Maddy', 'Sam', 'John']
- #zip the values
- emp = zip(empName)
- #Prints the values in zip
- print('\nValues in zip')
- # prints tuple of shortest length
- for values in emp:
- print(values)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement