Lambda functions

Поделиться
HTML-код
  • Опубликовано: 12 фев 2024
  • Basically one line functions

Комментарии • 3

  • @ManjiVegeta
    @ManjiVegeta Месяц назад +1

    din't remember how short hand if statements worked so my answer turned out like this:
    func = lambda a:{True:"hello", False:"bye"}[a>5]
    that is so jank... python is amazing

    • @ClearAtlas
      @ClearAtlas  Месяц назад

      what a beautiful abomination :D

  • @ronaldronaldo984
    @ronaldronaldo984 4 месяца назад +1

    writing support comment