

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Type Hints
incomplete
2: Basic Types
incomplete
3: Function Parameters
incomplete
4: Return Types
incomplete
5: Fixing Type Hints
incomplete
6: List and Set Hints
incomplete
7: Dictionary Hints
incomplete
8: Tuple Hints
incomplete
9: Specific Container Types
incomplete
10: Nested Types
incomplete
11: Optional Values
incomplete
12: Fix Code With Type Hints
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
When type hints and code behavior disagree, one of them is wrong.
If you know that you've properly typed a function signature, you can use it as the "source of truth," or as a clue for how the implementation should work.
Fix the body of summarize_quest_rewards. It should return a list of tuples, where each tuple contains:
Currently, it adds the XP integer only, instead of the full tuple.
Don't change the function signature.