if else python yes or no code example
Example 1: yes or no condition for input python
Join = input('Would you like to join me?').lower()
if Join.startswith('y'): # etc.
Example 2: ask a question on python
Question = input("your question")
if Question == ("yes")
print ("well done")
elif Question == ("no")
print ("try again")