feat: tutorial for hints
This commit is contained in:
parent
69ac65795a
commit
2f88ebe668
8
src/tutorial/hints/load_scores.py
Normal file
8
src/tutorial/hints/load_scores.py
Normal file
@ -0,0 +1,8 @@
|
||||
def load_scores(data: list[tuple[str, str | int]]) -> dict:
|
||||
result = {}
|
||||
for name, points in data:
|
||||
result[name] = int(points)
|
||||
return result
|
||||
|
||||
|
||||
print(load_scores([("Sandro", "54"), ("Arif", "45"), ("Sidney", 89)]))
|
||||
Loading…
x
Reference in New Issue
Block a user