class Emotions: def init(self): self.feelings = ["cold", "piercing", "sharp", "dull", "smashing", "dark"]
def describe(self): print("What are those feelings?") print("Why are they so cold to me?") for feeling in self.feelings: self.experience(feeling)
def experience(self, feeling): if feeling == "cold": print("They pierce through my skin...") elif feeling == "piercing": print("...and even worse, through my mind.") elif feeling == "sharp": print("Sharp as a blade,") elif feeling == "dull": print("but dull as a hammer,") elif feeling == "smashing": print("smashing my stillness.") elif feeling == "dark": print("Emboldened by the dark.")
if name == "main": emotion = Emotions() emotion.describe()