-2

I think I'm misusing or, because this will just loop even when the input is either beer wine or strong. How can I make this run as intended?

req1 = ""
while req1 != "beer" or "wine" or "strong":
     req1=input("wat wil je drinken? ")
jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Willem
  • 81
  • 9

1 Answers1

0

You would have to do:

req1 = ""
while req1 != "beer" or req1 != "wine" or req1 != "strong":
     req1=input("wat wil je drinken? ")
Chris
  • 1,206
  • 2
  • 15
  • 35