Shorthand If :
                    Python allows certain if statements to be written in a single line.

Syntax : 
Python
statement if condition

Python
marks = 85 if marks >= 50: print("Pass") #output Pass

Shorthand If Else :
                 Python supports a compact inline if-else expression.
Syntax :
Python
value_if_true if condition else value_if_false 

Example :
Python
age = 20 status = "Adult" if age >= 18 else "Minor" print(status) #output Adult

Multiple Conditions on a Line :
Python
a = 330 b = 330 print("A") if a > b else print("=") if a == b else print("B") #output '='