if` statement :# Using the shorthand if statement
x = 5
print("x is greater than 0" if x > 0 else "x is less than or equal to 0")
x is greater than 0if` statement to check the value of the variable `x`. If `x` is greater than `0`, the program will print the message "x is greater than 0". If `x` is not greater than `0`, the program will print the message "x is less than or equal to 0".if` statement is a more compact way of writing the standard `if` statement. It allows you to perform a quick check and take a single action based on the result. You can use this statement to write more concise code.