Skip to content

Commit

Permalink
Modify Textalk function to return multiple outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinYan committed Oct 27, 2019
1 parent 1299087 commit 44d0e17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Textalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 44d0e17

Please sign in to comment.