class Stats:
def __init__(
self,
hp,
hunger,
dehydration,
phys_strength,
mental_strength,
psychic_powers,
intelligence,
):
self.hp = hp
self.hunger = hunger
self.dehydration = dehydration
self.phys_strength = phys_strength
self.mental_strength = mental_strength
self.psychic_powers = psychic_powers
self.intelligence = intelligence
# hunger, dehydration, phys_strength, mental strength, and intelligence may decrease.
hero_stats = Stats(
hp=50,
hunger=10,
dehydration=10,
phys_strength=10,
mental_strength=20,
psychic_powers=0,
intelligence=20,
)
hp_info = f"Your health point level is {hero_stats.hp}. Your HP caps out at 100, and you die when it reaches 0.\n\n"
I am unable to run this code in Sublime Text. I do not know why it does not work. It works from Terminal, but not from Sublime Text. Why? Also, I am using SublimeREPL for this.