I tried to find best way of having ternary operator in python, but didn't find conclusive information. Is using lambda, as shown below, the best way? What is the best way to do below operation in one line?
return (lambda: "Yes", lambda: "No") ['hello' == 'hello']()