Python Shorthandf If
If Statement in One Line
If you have only one statement to execute, you can put it on the same line as the if statement.
Related Pages
Python If...Else Tutorial If statement If Indentation Elif Else Shorthand If Else If AND If OR If NOT Nested If The pass keyword in If