one liner if else replacement in python code example Example: one liner if else replacement in python >>> a = "Hello" if foo() else "Goodbye"