Skip to content

Commit

Permalink
feat: sq and cube
Browse files Browse the repository at this point in the history
  • Loading branch information
ongsici committed Oct 28, 2024
1 parent 4f423db commit 0f4c0de
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 @@ -10,6 +10,11 @@ def is_cube(n):


def process_query(input):
if "multipled by" in input:
new_input = input.replace("?", "")
value1 = int(new_input.split(" ")[2])
value2 = int(new_input.split(" ")[5])
return str(value1*value2)
if "square and a cube" in input:
input = input.replace("?", "")
value = input.split(":")[-1].split(",")
Expand Down

0 comments on commit 0f4c0de

Please sign in to comment.