SyntaxFix
Write A Post
Hire A Developer
Questions
the solution for the given scenerio is:
f = lambda x : x if x == 2 else print("number is not 2") f(30) # number is not 2 f(2) #2