Created
September 22, 2019 11:39
-
-
Save goyalrohit/e5363f156e4dd41d5b53af35ce9e9736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment