Skip to content
CodeItRaw
Code Reading
/
Letter Count
Path
Play
Daily
Leaderboard
tr
Predict the Output
Letter Count
How does the dictionary fill up? Write exactly what is printed.
1
seen = {}
2
for
ch
in
"banana"
:
3
seen[ch] = seen.get(ch,
0
) +
1
4
print
(
len
(seen), seen[
"a"
])