Given an integer number and we have to check whether it is perfect number or not?
This Python program is used to find its all positive divisors excluding that number.
Explanation: For Example, 28 is a perfect number since divisors of 28 are 1, 2, 4,7,14 then sum of its divisor is 1 + 2 + 4 + 7 + 14 = 28.
Python code to find perfect number
Output
need an explanation for this answer? contact us directly to get an explanation for this answer