how to create a while true loop? [duplicate]
-2
This question already has an answer here:
Asking the user for input until they give a valid response
17 answers
let me start off by saying, that i am a BEGINNER to coding. i use python 3.4.GUI. so i've got this code: register = input("have you registered an account?") if register == "yes": print("you may proceed to log in") if register == "no": print("please, create an account") else: print("that is not a valid answer") how to i create a while true loop on this so that if the user enters anything other than "yes" or "no", they get taken back to the start? thanks!
...