From bb45b4075f9a70280b1e9251b1378df3e7112fd6 Mon Sep 17 00:00:00 2001 From: deepavenkatesh Date: Sat, 10 Jun 2023 15:01:28 +0530 Subject: [PATCH] Added Valid Perfect Square Python Solution --- algorithms/python/ValidPerfectSquare/ValidPerfectSquare.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 algorithms/python/ValidPerfectSquare/ValidPerfectSquare.py diff --git a/algorithms/python/ValidPerfectSquare/ValidPerfectSquare.py b/algorithms/python/ValidPerfectSquare/ValidPerfectSquare.py new file mode 100644 index 00000000..11da9539 --- /dev/null +++ b/algorithms/python/ValidPerfectSquare/ValidPerfectSquare.py @@ -0,0 +1,3 @@ +class Solution: + def isPerfectSquare(self, num: int) -> bool: + return int(sqrt(num))**2==num \ No newline at end of file