Skip to content

Commit

Permalink
fix: remove last char
Browse files Browse the repository at this point in the history
  • Loading branch information
ongsici committed Oct 28, 2024
1 parent 5a12a54 commit f2cffc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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])
value2 = int(new_input.split(" ")[4])
return str(value1+value2)
if "numbers is the largest" in input:
input = input.replace("?", "")
Expand Down

0 comments on commit f2cffc2

Please sign in to comment.