From 8c6b21fa077002fd87b9fc245808b9a8628eb042 Mon Sep 17 00:00:00 2001 From: Jasper Dahil Date: Fri, 3 Nov 2017 10:07:02 +0000 Subject: [PATCH] sorted out the comma bug --- determineUserInput.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/determineUserInput.py b/determineUserInput.py index ceee7b9..fec0251 100644 --- a/determineUserInput.py +++ b/determineUserInput.py @@ -13,9 +13,9 @@ def determineUserInput(sentence): for char in unwantedChar: sentence = sentence.replace(char," ") - print(sentence) + sentenceParse = sentence.split() - print(sentenceParse) + if sentenceParse[0] in questionStarters: # ------------- execute the "what is" code here --------------- response = respondQuestion(sentence), 2 elif sentenceParse[0] in greetings: