Python Programming - Loops - Discussion

Discussion Forum : Loops - General Questions (Q.No. 7)
7.
What is the purpose of the zip function in Python when used with loops?
Counts the total number of iterations
Combines multiple sequences into tuples
Returns the index and value of each element in a sequence
Reverses the order of iteration
Answer: Option
Explanation:
The zip function is used to combine multiple sequences into tuples, allowing you to iterate over corresponding elements from each sequence simultaneously.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.