Basically one line functions
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
what a beautiful abomination :D
writing support comment
Пікірлер: 3
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
2 ай бұрын
what a beautiful abomination :D
writing support comment