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
—
python-medium/21.py
● 0 errors
TS
PY
EN ▾
ide
current
PY
home.py
PY
quiz.py
●
MD
learn.md
PY
playground.py
PY
challenges.py
python-medium
·
21
/25
☆ bookmark
[exit]
pairs
=
[(
1
,
'b'
), (
3
,
'a'
), (
2
,
'c'
)]
print
(
sorted
(pairs,
key
=lambda
p: p[
1
]))
What does this print?
A
[(3, 'a'), (1, 'b'), (2, 'c')]
B
[(1, 'b'), (2, 'c'), (3, 'a')]
C
[(1, 'b'), (3, 'a'), (2, 'c')]
D
[(2, 'c'), (1, 'b'), (3, 'a')]
▾ reveal answer
← prev
✓ python 3.12 (pyodide)
UTF-8