decisão = False
class Confirmation():
def menu(self, decisão):
while decisão == False:
try:
Answer = input("Ready to play [y/n]?")
if Answer == "y" or "n":
decisão = True
print(decisão)
break
finally:
if Answer == "y":
print("let's play")
elif Answer == "n":
print("ok, bye")
exit()
else:
print("Write 'y' or 'n'")
continue
c = Confirmation()
c.menu(decisão)
Ok so the problem is that no matter the input i use in "Answer" it always identify as "y" or "n" and turns "decisão" to true breaking the loop. Am i using the try statement wrong? because that's the only thing that comes to my mind