Skip to content

Commit

Permalink
feat: addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ongsici committed Oct 28, 2024
1 parent cba305e commit c003513
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@


def process_query(input):
if "plus" in input:
new_input = input.replace("?", "")
value1 = int(new_input.split(" ")[2])
value2 = int(new_input[:-1].split(" ")[4])
return str(value1+value2)
if "numbers is the largest" in input:
value = input[:-1].split(":")[-1].split(",")
return max(value)
Expand Down

0 comments on commit c003513

Please sign in to comment.