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

Negative Numbers

Negative numbers in Python work the way you probably expect. Just add a minus sign:

my_negative_num = -420

Assignment

When our hero walks through poison, their health should go down. Right now the hero is gaining 10 health instead of losing 10 health.

Change the poison_damage variable to be negative.