A

Admin • 833K Points
Coach

Q. What does dict.get('key') return if 'key' is not found?

  • (A) Error
  • (B) None
  • (C) 0
  • (D) False
  • Correct Answer - Option(B)
  • Views: 33
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

get returns None by default if the key is not found.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.