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 enumerate() function provide?

  1. A Pairs of index and value while iterating
  2. B A sorted copy of the sequence
  3. C The length of a sequence
  4. D A reversed sequence
Answer

Pairs of index and value while iterating

enumerate avoids manually maintaining a counter, and accepts a start parameter when the index should not begin at zero.

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