This is because you have two instances of the You class. You always create a new instance before you'd interact with it. Instead, you should create a single instance and keep using that one. Like this:
class You:
hp = 700
you = You() # creating a single instance
you.hp -= 600 # keep using the same instance
print(you.hp) # this instance is the same one that got the hp reduced by 600