結果 : write code of perfect number in python