if statement in python - الجملة الشرطية بالبايثون 2022-09-28 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") Twitter WhatsApp Telegram Facebook