Question discussion

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

3499Medium DSSSB TGT Computer Science 0 replies

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

  • Arepeated, repeated
  • Brepeated, unique
  • Cunique, repeated
  • Dunique, unique
Correct answer: B

Explanation

Dictionary values can be repeated but keys must be unique.

Discussion 0

Nobody has replied yet. Start the discussion!