Check out Dict or use the built-in dict
function, the syntax for using dict
for typing looks like this: dict[KT, VT]
.
Complete code following the instructions, so that lines followed by
# expect-type-error
(if any) fail type check, while others can pass.
Hit the "▶️ Run" button to see result.
Stuck? Check out solution