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

Fill in the blank

# how many times does 'a' appear?
n = letters.____("a")

Answer: count (also accepted: count, count())

count() returns the number of occurrences.
Play Problem Solving ▸