The values in a dictionary can be _____ but the keys in the dictionary should…

2024

The values in a dictionary can be _____ but the keys in the dictionary should be _____ in Python programming languages

  1. A.

    repeated, repeated

  2. B.

    repeated, unique

  3. C.

    unique, repeated

  4. D.

    unique, unique

Attempted by 113 students.

Show answer & explanation

Correct answer: B

Python dictionary values may repeat, but keys must be unique.

Explore the full course: Rssb Senior Computer Instructor