Computer Science, asked by mehakverma825, 9 months ago

In which data type, indexing is not valid ?
(A) list
(B)string
(C)dictionary
(D)None of the above​

Answers

Answered by avinashkumar20201980
0

Answer:

string is data type they are indexing not valid

Answered by adventureisland
0

Option (C) is correct.

In the dictionary, there are no index values.

About Dictionary Vs Index value :

  • A dictionary is a Python container that keeps unsorted and changeable mappings of unique keys to values.
  • Dictionary entries are written with curly brackets (), which include key-value pairs separated by commas (,). A colon separates each key from its value (:).
  • In the dictionary, there are no index values. The dictionary is a comma-separated collection of key: value pairs enclosed in curly brackets. Dictionaries are optimized to retrieve values once the key is known.

Similar questions