So i have been trying for days to get logic of lamda(with if and for inside),f strings.My doubt is explained deeply in code.Ty | SoloLearn: Learn to code for FREE!

0

So i have been trying for days to get logic of lamda(with if and for inside),f strings.My doubt is explained deeply in code.Ty

https://code.sololearn.com/cZLSN7qKW8Nt/?ref=app

5/23/2020 8:13:05 PM

Niranjan

1 Answer

New Answer

+2

Remember the ternary condition syntax : expr1 if condition else expr2 That means that an else is always required while using a ternary condition.