xxxxxxxxxx
import math
def is_perfect_square(number: int) -> bool:
"""
Returns True if the provided number is a
perfect square (and False otherwise).
"""
return math.isqrt(number) ** 2 == number
xxxxxxxxxx
#Whether a number is perfect square or not?
#article: https://www.cuemath.com/algebra/perfect-squares/
import math
def is_square(n):
return n > -1 and math.sqrt(n) %1 == 0
n = int(input())
res = is_square(n)
if res:
print(f"Your {n} is perfect number.")
else:
print(f"Your {n} isn't perfect number.")