Jan-29-2021, 03:16 PM
I'm trying out an Eliza chatbot I found online. The code starts with:
import re import random reflections = { “am”: “are”, “was”: “were”, “i”: “you”, “i’d”: “you would”, “i’ve”: “you have”, “i’ll”: “you will”, “my”: “your”, “are”: “am”, “you’ve”: “I have”, “you’ll”: “I will”, “your”: “my”, “yours”: “mine”, “you”: “me”, “me”: “you” }Right off the top, Spyder is giving me:
Material\Miscellaneous\Python\untitled1.py", line 11 “am”: “are”, ^ SyntaxError: invalid character in identifierWhat's invalid here? Thanks!