Lpythw: Help RE dict and class ex

Highly recomment @AlSweigart 's post

To add the dict you need to modify this part of the code:

def Person_new(name, age, eyes):
    person = {
        "name": name,
        "age": age,
        "eyes": eyes,
    }

Perhaps something like

def Person_new(name, age, eyes):
    person = {
        "name": name,
        "age": age,
        "eyes": eyes,
        "hit_points": 10,
    }

Then your hit function is pretty much reducing that:

def hit(person):
    person['hit_points'] -= 1