πŸ“Š Problem Solving and Python Programming
Q. ,4))
  • (A) 1
  • (B) a
  • (C) 4
  • (D) invalid syntax for get method
πŸ’¬ Discuss
βœ… Correct Answer: (B) a

Explanation: the get() method returns the value of the key if the key is present in the dictionary and the default value(second parameter) if the key isn’t present in the dictionary.


Explanation by: Mr. Dubey
the get() method returns the value of the key if the key is present in the dictionary and the default value(second parameter) if the key isn’t present in the dictionary.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
1048
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate