From b703cd6cba16821044ef4b5666040f70b069a984 Mon Sep 17 00:00:00 2001 From: ongsici Date: Mon, 28 Oct 2024 15:11:55 +0000 Subject: [PATCH] chore: formatting --- src/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 649f5d1..901c411 100644 --- a/src/app.py +++ b/src/app.py @@ -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 @@ -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])