• Water Bowl Slime
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 months ago

    THEY DID SURGERY ON A GRAPE

    They did surgery on a grape

    They did surgery on a grape

    They did surgery on a grape

    :theydidsurgeryonagrape:

    • invalidusernamelol [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      8 months ago
      class Grape: ...
      
      class They:
          def __init__(self, patient: Grape, profession: str):
              self.patient = patient
              self.profession = profession
      
          def do(self):
               print(f"{type(self).__name___} did {self.profession} on a {type(self.patient).__name__.lower()}"
      
      if __name__ == '__main__':
      
          the_grape = Grape()
          they = They(the_grape, "surgery")
          they.do()