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

Which statement about Python dictionaries since version 3.7 is correct?

  1. A They preserve insertion order
  2. B They are automatically sorted by key
  3. C They cannot be nested
  4. D Keys must be strings
Answer

They preserve insertion order

Insertion order preservation became a language guarantee in 3.7, having been an implementation detail of CPython 3.6.

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