0

I'm asking input from the user and wanted to check if he used the right letters to continue, I've wrote this code, but even when I write "y" or "n", it doesn't exit the loop, and I have no idea why:

while True:
    start = input("Want to start? (Y/n) ").lower()
    if start != 'y' or 'n':
        print("letter not accepted! Please write 'Y' to start or 'N' to exit!\n")
    else:
        break

if start == "y":
    separate(players)
else:
    print("Goodbye!")
martineau
  • 119,623
  • 25
  • 170
  • 301

0 Answers0