Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ongsici committed Oct 28, 2024
1 parent 0f4c0de commit b703cd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import math
from flask import Flask, render_template, request
app = Flask(__name__)
import math


def is_square(n):
return int(math.sqrt(n)) ** 2 == n


def is_cube(n):
return int(round(n ** (1/3))) ** 3 == n

Expand All @@ -24,7 +26,6 @@ def process_query(input):
if is_square(int(number)) and is_cube(int(number)):
result.append(number)
return ", ".join(result)

if "plus" in input:
new_input = input.replace("?", "")
value1 = int(new_input.split(" ")[2])
Expand Down

0 comments on commit b703cd6

Please sign in to comment.