কন্ডিশনাল স্টেটমেন্ট
>>> if 8 > 7:
print("True")a = 10
b = 9
if (a>b):
print("a is bigger than b")
elif(b>a):
print("b is greater than a")
else:
print( "Both are equal")Last updated
Was this helpful?
>>> if 8 > 7:
print("True")a = 10
b = 9
if (a>b):
print("a is bigger than b")
elif(b>a):
print("b is greater than a")
else:
print( "Both are equal")Last updated
Was this helpful?
Was this helpful?
a = 5
b = 8
c = 7
if(a>b or b>c):
print(b)
if(a>b and b>c):
print(b)
else:
print("condition false")
my_list = [1,6,8,9,7,5]
n = 4
if n not in my_list:
print(" n is absent in a_list")