

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Comparison Operators
incomplete
2: Comparison Operator Evaluations
incomplete
3: Comparison Practice
incomplete
4: If Statements
incomplete
5: If Practice
incomplete
6: If-Else
incomplete
7: If-Else Practice
incomplete
8: If-Else Practice
incomplete
9: Boolean Logic
incomplete
10: Boolean Quiz
incomplete
11: Early Returns
incomplete
12: Mount Rental
incomplete
13: Combat Advantage
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Fantasy Quest doesn't have any way for players to know if they are strong enough to hold their own against certain enemies.
If a player's power level is greater than the enemy's defense, that player has an "advantage"
If the player's power and enemy's defense are equal, they are "evenly matched"
Otherwise, that player has a "disadvantage".
Complete combat_evaluation with an if/elif/else block that compares player_power and enemy_defense using the rules above. The three result variables start as False.