I was making a chat robot in python but when I executed the code I got an eof error here is the code:
ai_talked= "0"
textreadyyet="no"
playermessage = input("Talk here:")
def playertalk():
while textreadyyet=="no":
if textreadyyet== "Yes":
print(playermessage)
else:
textreadyyet= "Yes"
print(playermessage)
playertalk()
print(playermessage)
def aialk():
if ai_talked=="0":
print("Hello!")
aialk()
it gives an eof error in the 3rd line