diff --git a/__pycache__/Get_Functions.cpython-36.pyc b/__pycache__/Get_Functions.cpython-36.pyc index f067b4e..1de00e4 100644 Binary files a/__pycache__/Get_Functions.cpython-36.pyc and b/__pycache__/Get_Functions.cpython-36.pyc differ diff --git a/what_Recog.py b/what_Recog.py index a5f6492..461aaec 100644 --- a/what_Recog.py +++ b/what_Recog.py @@ -9,7 +9,8 @@ def determineUserInput(sentence): sentence = sentence.lower() sentenceParce = sentence.split() if "what" in sentence: # ------------- execute the "what is" code here --------------- - return executeWhatFunction(sentence) + response =executeWhatFunction(sentence) + return response elif sentenceParce[0] in greetings: return getName(sentence) @@ -70,7 +71,7 @@ def executeWhatFunction(sentence): operatorType = "words" equationReformated = reformatSentence(sentence, operatorType) - response = round(eval(str(equationReformated)), 2) + response = round(eval(equationReformated), 2) return response else: