• Water Bowl Slime@lemmygrad.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    9 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
      9 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()