Answers for "how to make a yes or no question in python"

2

ask a question on python

Question = input("your question")
if Question == ("yes")
	print ("well done")
elif Question == ("no")
	print ("try again")
Posted by: Guest on April-09-2020
-1

how to ask a yes or no question on python

answer = input("Enter yes or no: ") 
if answer == "yes": 
    # Do this. 
elif answer == "no": 
    # Do that. 
else: 
    print("Please enter yes or no.")
Posted by: Guest on March-03-2021

Code answers related to "how to make a yes or no question in python"

Python Answers by Framework

Browse Popular Code Answers by Language