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

Answer: B. repeated, uniquePython dictionary values may repeat, but keys must be unique.

  1. A.

    repeated, repeated

  2. B.

    repeated, unique

  3. C.

    unique, repeated

  4. D.

    unique, unique

Attempted by 478 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

Loading lesson…