Nov-03-2017, 06:46 PM
You have the right idea with a 'while' loop, but you want your code to repeat until they give an acceptable answer. If you're only looking for "Forward", your code might look like this:
while not dir1 == "Forward": dir1 = input("Which way do you want to move?")This code will repeat until the user enters "Forward"