• scratchresistor@thelemmy.club
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      Don’t forget to keep your return values…

      rescued_princesses = [{"princess": princess, "rescued": princess.rescue()} for princess in [castle.get_princess() for castle in castles]]