Dec. 5, 2023, 11:48 a.m. | OpenSourcee

DEV Community dev.to

So, you may have already heard about functional programming, i.e., writing code that avoids mutable state and emphasizes the use of pure functions.


In python, it means don't:



x = 100
x = x + 10


And do instead:



add_ten = lambda x: x + 10
x = add_ten(100)





🦄 The Unicorn Project



I started giving it a chance after I read The Unicorn Project. It is an entertaining book about Maxime, a developer who …

beginners code functional functions lambda programming python state tutorial writing

Data Scientist (m/f/x/d)

@ Symanto Research GmbH & Co. KG | Spain, Germany

Associate Data Analyst

@ Gartner | Stamford - 56 Top Gallant

Ecologist III (Wetland Scientist III)

@ AECOM | Pittsburgh, PA, United States

Senior Data Analyst

@ Publicis Groupe | Bengaluru, India

Data Analyst

@ Delivery Hero | Hong Kong, Hong Kong

Senior Data Engineer

@ ChargePoint | Bengaluru, India