結果 : check for perfect square python