Professional Documents
Culture Documents
>>> if 5 > 2:
print("Five is greater than two!")
Syntax continue
>>> print("This line will be printed.")
>>> x = 1
if x == 1:
# this is comment example indented if "x is = 1")four spaces
print("x is equals to one")
# Same as
>>> x = input("Enter your name:")
print("Hello, " + x)
Python Conditions and If statements