Lambda including if…elif…else January 7, 2023 by Tarik Nest if .. elses: lambda x: x*10 if x<2 else (x**2 if x<4 else x+10)