Skip to content

Instantly share code, notes, and snippets.

@goyalrohit
Created September 22, 2019 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalrohit/e5363f156e4dd41d5b53af35ce9e9736 to your computer and use it in GitHub Desktop.
Save goyalrohit/e5363f156e4dd41d5b53af35ce9e9736 to your computer and use it in GitHub Desktop.
#!/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