πŸ“Š Python
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

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate