how to make a yes or no question in python code example
Example 1: ask a question on python
Question = input("your question")
if Question == ("yes")
print ("well done")
elif Question == ("no")
print ("try again")
Example 2: 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.")