I just have a little bit confusion when I using python ternary operator. The sample code shown below:
a = 10
b = 5 if a < 9 else "s"
The else can add a string statement like 's' or '#' or ''. What is the meaning of the statement do? How to covert it as a traditional if-else statement?
Thanks