# first project
- password ==input ("pleas enter your password\n")
- if password =="abc":
- print (" Hello)
- eles:
- print ("wrong password")
# second project
- answer = input (" please enter your answer ( yes; no; maybe)")
- if answer == "yes":
- print ("your answer is yes")
- elif answer =="no":
- print (" your answer is no")
- elif answer == "maybe":
- print (" your answer is maybe ")
- eles :
- print (" wrong answer ")
# third project
- number = int ( input ("guess the right number\n"))
- if number ==7 :
- print ("you entered the right number ")
- eles :
- print ("you entered the wrong number ")
ليست هناك تعليقات:
إرسال تعليق