Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


zip will return an IEnumerable object, wherein each element of the IEnumerable object will be a one dimensional array containing two elements; the first element will be an element located in "firstfirstNames" and the second will be an element located in "secondlastNames."


Code Block
firstNames = ("Charles", "Joe", "P")
lastNames = ("Whittaker", "Manson", "Diddy")

x = zip(firstNames, lastNames)
for y in x:
	print join(y)
        //print y[0], y[1]