Unfamiliar if statement
print 'a' if False else 'b'
print 'A' if True else 'B'
Output result
b
A
What is this feeling of coming out later. .. ..
This is the python ternary operator Thanks to @zetamatta for teaching me
@Tadsan explains in detail in the comment section.
Recommended Posts