From a6556c376252d0073406930f5d8ded87fe0ef778 Mon Sep 17 00:00:00 2001 From: "Delia-Florenta Manea (manead)" Date: Wed, 15 Nov 2017 12:03:54 +0000 Subject: [PATCH] problem solved --- determineUserInput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/determineUserInput.py b/determineUserInput.py index 1240478..5f45ed1 100644 --- a/determineUserInput.py +++ b/determineUserInput.py @@ -17,7 +17,7 @@ def determineUserInput(sentence): sentenceParse = sentence.split() if (sentenceParse[0] == "i" and len(sentenceParse) > 1): - if (sentenceParse[1] == ["am", "like", "enjoy", "want", "love"]): + if (sentenceParse[1] in ["am", "like", "enjoy", "want", "love"]): sentenceParse.insert(0, " ".join(sentenceParse[0:2])) if sentenceParse[0] in questionStarters: # ------------- execute the "what is" code here ---------------