Steven Zhang310 Points
repeating the code until a certain input
Before you read the question, please look at where I am in the python language course.
I want to repeat my code over and over before the user inputs a certain word. I was thinking of While loops or functions. Is there any way I can repeat the code with just while loops, and how?
Steven Parker194,599 Points
Repeating code is exactly what loops are good for. A simple example that meets your description might be:
word = None while word != "certain": word = input("What is the special word? ") print("Yep, that was it!")