I can't figure out how to add a while loop to keep asking for a name until the user types quit.
I've tried different while syntax but the closest thing I've gotten is what you see my code as. I just started coding so I'm a novice.
name = input('Enter your name, or type quit to exit ')
keep_going = True
while keep_going:
if name == "quit":
keep_going = False
At the start of the program anything I enter lets me in, which is not supposed to happen. What should be happening is entering any name should let me in, and typing "quit" should keep prompting me for a new answer.
The process is flipped at the end of my code too... If I type "quit" it starts the program and if I type any other name it ends the program for the final step of my coding. Which is... Step 7: add an input statement to enter name or type quit to exit