How To Find Perfect Square In Python