Q. Which method is used to get the value from a dictionary for a given key?

  • (A) value()
  • (B) get()
  • (C) keys()
  • (D) items()
πŸ’¬ Discuss
βœ… Correct Answer: (B) get()
Explanation: `get(key)` is used to retrieve the value associated with a key.
Explanation by: Mr. Dubey
`get(key)` is used to retrieve the value associated with a key.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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