CBSE Class 11 Computer Science Question 29 of 88

Tuples and Dictionary — Question 9

Back to all questions
9
Question

Question 9

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

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

get()

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