We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Comparison Practice

car_size = 4
truck_size = 5
is_smaller = car_size < truck_size
# is_smaller is True

Assignment

Complete the can_withstand_blow function. It should return True if the hero's armor is greater than or equal to the damage dealt by the enemy, and False otherwise.