From 1ae81a78857f1d39b70b07dd4e288d3a170efd64 Mon Sep 17 00:00:00 2001 From: "Jasper Dahil (dahilj)" Date: Fri, 3 Nov 2017 09:39:13 +0000 Subject: [PATCH] added a part in determineUserInput to determine whether the user is answering the multiple choice question --- determineUserInput.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/determineUserInput.py b/determineUserInput.py index b73d2e6..051d6b5 100644 --- a/determineUserInput.py +++ b/determineUserInput.py @@ -13,10 +13,11 @@ def determineUserInput(sentence): if sentenceParse[0] in questionStarters: # ------------- execute the "what is" code here --------------- response = respondQuestion(sentence), 2 elif sentenceParse[0] in greetings: - return getName(sentence), 1 - + response = getName(sentence), 1 + elif sentence[0] in "abcd": + response = sentence, 3 else: - return sentence, 0 + response = sentence, 0 return response #========================================================================================================== # list of casual conversation: