$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #4

Fill the dict method that returns a default when the key is missing.

count = freq.____("a", 0)

Answer: get (also accepted: get)

dict.get(key, default) avoids a KeyError.
Play Problem Solving ▸