Lesson 8

Tracking Stats

So far, we can change the statistics of our pet, but we have no way to tell how our fictitious fuzzy friend is feeling.If our pet is hungry, sleepy, or unhappy, we want to let our user know.

on line 38,, add on the following if statement if (hunger < 40): This code will check to see when our pets hunger drops beneath 40

on line 39, inside of our for loop, we will add a print statement that shows our pet is hungry. Copy the code shown to the side.

Happiness and Energy

Now that we have a way to track our Hunger, we also want to be able to track our Happiness and Energy. The print statements will be very similar, just with minor changes to reflect each stat

Try writing the code on your own first, and then compare to whats shown in the image to the side