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
No active XP Potion
Accept a Quest
Login to submit answers
Fantasy Quest doesn't have any way for players to know if they are strong enough to hold their own against certain enemies.
On line 4
write an if/elif/else
block. Using the rules specified above, set advantage
, disadvantage
, or evenly_matched
to True
depending on the values of player_power
and enemy_defense
.
For example, if the player's power is greater than the enemy's defense, advantage
should be set to True
. etc.
Focus Editor
Alt+Shift+]
Next Tab
Alt+Shift+[
Become a member to Submit
Become a member to Run
Become a member to view solution