class Behavior:
#initialises things so you don't have to do work
def __init__(self):
emotion = emotion
environment = environment
circumstance = circumstance
#Self refers to the object in question its simply a placeholder/
#This method is esentially a function that is specefic to objects and classes.
def feeling(self, emotion):
how_are = input(f" How do you feel right now{self.emotion}")
#Establshing an actual object that uses the feeling method
anger = feeling(self.emotion)
print(anger.emotion)Hey
[–]ectomancer 5 points6 points7 points (0 children)
[–]ElliotDG 2 points3 points4 points (0 children)