if statement in python

if statement in python



if condition :

	statement

elif condition :

	statement

else  :

	#statement





name = input("enter your name : ")

age = int(input("enter your age"))

#  ==   >   <    >=  <=  !=

# and or         &&   ||



if name == "mohammed" or name =="ahmed":

	print("hello , " , name)

	if age > 30 :

		print ("young")



elif name == "ali" and age >= 21:

	print("hello , ",name,"age : ",age)



else :

	print("wrong name")