I am getting an error in my program, can you help please?
This is the relevant code:
def play():
play = input("Do you want to play again? (y/n) :")
if play == "y":
game(0)
if play == "n":
quit()
if play == "Debug":
game(1)
if play != "y" or "n" or "Debug":
play()
This is the error:
Well Done You Win!!!!!
You took this many tries :
1
Game Was Made By Ross Searle!!!
Do you want to play again? (y/n) :gnl;rgn;
Traceback (most recent call last):
File "C:\Users\ross\Desktop\game.py", line 67, in <module>
firstplay()
File "C:\Users\ross\Desktop\game.py", line 7, in firstplay
game(0)
File "C:\Users\ross\Desktop\game.py", line 55, in game
play()
File "C:\Users\ross\Desktop\game.py", line 23, in play
play()
TypeError: 'str' object is not callable
>>>
I am trying to make it so it just repeats the question if you type anything.