Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the zip() function do?

  1. A Compresses files
  2. B Aggregates elements from multiple iterables into tuples
  3. C Sorts two lists together
  4. D Removes duplicates
Answer

Aggregates elements from multiple iterables into tuples

zip stops at the shortest input. itertools.zip_longest pads instead, which matters when the inputs may differ in length.

All Python MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as