Say I have a class with a bunch of methods:
class Human():
  def eat():
    print("eating")
  def sleep():
    print("sleeping")
  def throne():
    print("on the throne")
Then I run all the methods with
John=Human()
John.eat()
John.sleep()
John.throne()
I want to run print("I am") for each method being called. So I should get something like
I am:
eating
I am:
sleeping
I am:
on the throne
Is there a way to do this without having to reformat each method?
 
     
     
     
    