Answers for "python yes or no question"

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
0

how to code a yes or no question in python v3.8

if Question == ("yes")
	print ("well done")
elif Question == ("no")
	print ("try again")
Posted by: Guest on September-21-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

Python Answers by Framework

Browse Popular Code Answers by Language