skip to content →
ts-quiz
— ~/loading.ts
tsc --watch
● loading…
TS
home.ts
TS
levels.ts
MD
learn.md
TS
playground.ts
NEW
// tsc --watch · type-checking modules…
await
load
(
"loading.ts"
)
// streaming server components
◇ tsc 6.0.3 · compiling…
UTF-8
◇ loading…
ts-quiz
·
py
—
python-medium/23.py
● 0 errors
EN ▾
ide
current
PY
home.py
PY
quiz.py
●
MD
learn.md
PY
playground.py
PY
challenges.py
python-medium
·
23
/25
☆ bookmark
[exit]
from
collections
import
defaultdict
d
=
defaultdict(
int
)
for
c
in
'abca'
:
d[c]
+=
1
print
(
dict
(d))
What does this print?
A
{'a': 2, 'b': 1, 'c': 1}
B
{'a': 1, 'b': 1, 'c': 1}
C
KeyError
D
{'a': 2}
▾ reveal answer
← prev
✓ python 3.12 (pyodide)
UTF-8