I am trying to create a loop with in a loop.
The idea is to present a raw_input, if the input is wrong then loop back to the beginning until you get it right. I am trying to do this kind of loop twice with in one block but cant get it to work. Just for this example, the options of blank input or no/n will loop you back like written:
print "Hello! Welcome to the Trivia "
begin = raw_input("Would you like to begin?: ")
if begin == “”:
print “You must write something valid. Your name cannot be blank and must consist of letters only. Please try again:”
if begin.lower() == “no” or “n”:
print “no or n is not accepted:”
print “Good choice”
name = raw_input ("Please insert your name: ")