結果 : write a program to check perfect number in python