Aug-07-2019, 06:29 AM
I didn't understand much but it seems "while" cycle is what you need.
command = input("Enter y or n") while command not in ("y", "n"): print("I said y or n") command = input("Enter y or n") print("OK, your command is {}".format(command))