zipfunction to iterate two Lists together
What if you want to iterate two lists together, add their elements and save into a thrid list? Will you be using nested loops - which means loop inside a loop. For such cases, Python provides an amazing function
zip which can be used with any loop and traverse two lists together.
Try changing the code as you like. Click the button, to Run the code again.
;to join two Executable Statements
/to break code into multiline code
zipfunction to iterate over two Lists