Skip to content

Instantly share code, notes, and snippets.

@goyalrohit
Created September 22, 2019 10:46
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/86a79e21c82369e2e6025a4caa8d3e8f to your computer and use it in GitHub Desktop.
Save goyalrohit/86a79e21c82369e2e6025a4caa8d3e8f to your computer and use it in GitHub Desktop.
#!/usr/bin/python
#assign employee Id to list1
empId = ['1', '2', '3', '4']
#assign employee name to list2
empName = ['Tom', 'Maddy', 'Sam', 'John']
#assign employee age to list3
empAge = ['29', '30', '28', '32']
#zip the values
emp = zip(empId, empName , empAge)
#Prints the values in zip
print('\nValues in zip')
# print each tuples
for values in emp:
print(values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment