Python | zip() in python

zip() is python return a zip object, which returns a tuple on iteration where the i-th element comes from the i-th iterable argument. Below is the python code for using zip()

  • Unpacking with "for" loop
  • Unpacking with "* iterable operator" loop