2. Write a Python function to check whether a number is perfector not. According to Wikipedia : In number theory, a perfect numberis a positive integer that is equal to the sum of its properpositive divisors, that is, the sum of its positive divisorsexcluding the number itself (also known as its aliquot sum).Equivalently, a perfect number is a number that is half the sum ofall of its positive divisors (including itself).
Example : The first perfect number is 6, because 1, 2, and 3 areits proper positive divisors, and 1 + 2 + 3 = 6. Equivalently, thenumber 6 is equal
PayPal Gateway not configured
PayPal Gateway not configured