CBSE Class 11 Computer Science Question 27 of 112

Dictionaries — Question 7

Back to all questions
7
Question

Question 7

Which value is assigned to keys, if no value is specified with the fromkeys() method ?

  1. 0
  2. 1
  3. None
  4. any of these
Answer

None

Reason — If no value is specified, the keys are assigned None as their default values.