Python if Keyword
The start of a conditional statement. The code block defined by an if statement executes only if the condition is true.
Example
Python
Copy Code
if 1 == 1: print("1 equals 1") if 1 == 2: print("1 should not equal 2!")
Output
1 equals 1