From 44d0e17ffde3b341e46d2bfbe16435b81505f14a Mon Sep 17 00:00:00 2001 From: CalvinYan Date: Sat, 26 Oct 2019 23:31:20 -0700 Subject: [PATCH] Modify Textalk function to return multiple outputs --- Textalk.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Textalk.py b/Textalk.py index 536d353..af17b91 100644 --- a/Textalk.py +++ b/Textalk.py @@ -22,8 +22,7 @@ def parsestr(s): # else: # s = s.replace(key, d[key](s)) # return s - calculate(s) - return parsestr_numeric(parsestr_substitute(s)) + return parsestr_numeric(parsestr_substitute(s)), calculate(s) def parsestr_numeric(s): words = s.split()