How can I get this question to keep repeating until either a yes or no is given as an answer:
Let's say you enter: maybe
I'd like the question to keep repeating. I tried making some 'for' loops but wasn't doing it right.
Code:
response = raw_input("Are you ready? ")
if response.lower() == "yes":
print "Alrighty then, let's begin!"
if response.lower() == "no":
print "Try again later when you are ready"
I'd like the question to keep repeating. I tried making some 'for' loops but wasn't doing it right.
Comment