This is the code :
quiz = str(input("would you like to answer some questions \n choose y/n"))
quiz = quiz.lower()
while quiz != 'y' or quiz != 'n':
print("please choose 'y' or 'n'")
input("y/n?")
This is part of my code I have tried using str()
even without or
operand it is not working btw I am using python v3.7
.
1) If you can please fix the code
2) If you know some other code is more efficient tell
Note: If the input is y. # for example
error is " ValueError: float: Argument: y is not a number "