KnowledgeBoat Logo

Computer Science

What all types of values can you store in :

  1. dictionary-values ?
  2. dictionary-keys ?

Python Dictionaries

16 Likes

Answer

  1. Dictionary values can be all the data types of Python including collections and sequences.
  2. Dictionary keys must be of immutable types like a string, a number, a tuple (containing only immutable entries).

Answered By

9 Likes


Related Questions