Write a function to check if a number is perfect square or not
Topic: Write a function to check if a number is perfect square or not
Solution
import math def checksquare(num): x = int(math.sqrt(num)) if x * x == num: return True return False
List all Python Programs