Explore topic-wise MCQs in Python.

This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following isn’t true about dictionary keys?

A. More than one key isn’t allowed
B. Keys must be immutable
C. Keys must be integers
D. When duplicate keys encountered, the last assignment wins
Answer» D. When duplicate keys encountered, the last assignment wins