$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #67

Fill in the dict method that returns a default.

count = d.____(key, 0)  # read with a fallback

Answer: get (also accepted: get)

dict.get returns the default instead of raising KeyError.
Play Problem Solving ▸