216k views
4 votes
In Python, what is the major difference between dictionaries and strings?

A) Dictionaries hold any data type, while strings hold only keys.
B) Dictionaries hold only keys, while strings hold integers that code letters.
C) Strings cannot be changed after creation, while dictionaries can be changed.
D) Strings hold only characters, while dictionaries hold any data type

1 Answer

2 votes

Answer:

C) Strings cannot be changed after creation, while dictionaries can be changed.

User Easwar
by
4.6k points