DEV Community

Discussion on: Python 4 - New Function Syntax, Maybe?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

I'm no Python expert (20 lines experience), but Python has lamdas?

Also why is terse considered easier to read. Less is more unless it's cognitive load to expand the shortness In Your mind, no?

Which says duck?

Duck or 🦆

Collapse
 
juliancamiller1 profile image
Julian Camilleri

lambda_ = lambda x: x+3
lambda_(2) # 5