Source code for kyu_7.you_are_square.you_are_square
"""
Solution for -> You're a square.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
import math
[docs]
def is_square(n: int) -> bool:
"""
Determine if it's a square number.
:param n: int
:return: bool
"""
if n > -1:
number = math.sqrt(n)
if (number - int(number)) == 0:
return True
return False