How to use lambda in case of if else statement

if mark is less than 50 then print fail and else print pass. how to write lambda in case of that

please help for this doubt as fast as possible

Hello @pawarshri7_d80e347145174947,
We use lambda function for if-else same in while with syntax:
lambda : if else lambda

The syntax is:
lambda : if else

The syntax is:
lambda < arguments> : < statement1> if < condition> else < statement2>

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

please give me some example