| What do you think Python have a ternary conditional operator?
When we say about the ternary conditional operator in Python. Yes, this is available in Python. And this has been added in version 2.5. And expression syntax of this is given below:-
x if condition else y
| | |