結果 : perfect square function in python