if foo == 'abc' and bar == 'bac' or zoo == '123':
# do something
if my_condition:
# Do some stuff
print("Hello You!")
else:
# Do some stuff
print("Hello World!")
# if statment
#'if' gives condition in statement to make program more efficient.
a=10
b=5
if a%b==0:
print('true')
output:
true
x = 1; y = 1
if x == 1 or y == 1:
print(x, y)
# 1 1
weather == "Good!" or weather == "Great!":
# Or the following
weather in ("Good!", "Great!"):
a = 200
b = 33
if b > a:
print("b is greater than a")
else:
print("b is not greater than a")