KnowledgeBoat Logo
|

Informatics Practices

Which function is used to return a value for the given key?

  1. len()
  2. get()
  3. keys()
  4. None of these

Python Dictionaries

1 Like

Answer

get()

Reason — The get() method returns a value for the given key. If key is not available, then returns the default value None.

Answered By

1 Like


Related Questions