filmov
tv
Python program to find whether it is perfect number or not

Показать описание
Question 12- write a program to accept a number and find out whether it is perfect number or not.
Any number can be perfect number in Python, if the sum of its positive divisors excluding the number itself is equal to that number.
For example, 6 is a perfect number in Python because 6 is divisible by 1, 2, 3 and 6. So, the sum of these values are: 1+2+3 = 6 (Remember, we have to exclude the number itself. That’s why we haven’t added 6 here). Some of the perfect numbers are 6, 28, 496, 8128 and 33550336 so on.
Class 11 - First Python Assignment solution
#python #pythonprogram
👉Source code is given in the comment box💖💖
Guys if you also want that i solve your question then comment me.
Asked by
Rashmi Singh
Any number can be perfect number in Python, if the sum of its positive divisors excluding the number itself is equal to that number.
For example, 6 is a perfect number in Python because 6 is divisible by 1, 2, 3 and 6. So, the sum of these values are: 1+2+3 = 6 (Remember, we have to exclude the number itself. That’s why we haven’t added 6 here). Some of the perfect numbers are 6, 28, 496, 8128 and 33550336 so on.
Class 11 - First Python Assignment solution
#python #pythonprogram
👉Source code is given in the comment box💖💖
Guys if you also want that i solve your question then comment me.
Asked by
Rashmi Singh
Linear Search using Python | Python Tutorial for Beginners 68
#25 Python Tutorial for Beginners | Prime Number in Python
How to Check if a Number is Even or Odd in Python
Palindrome Program in Python
Python Programming Tutorial #15 - Using .count() and .find()
all() in Python - Check If All Items Are True
Palindrome Number - Leetcode 9 - Python
Armstrong number in python
Begin and End Filling - Python Turtle Graphics Tutorial 20
Frequently Asked Python Program 2: How To Check A Number is Prime Or Not
Frequently Asked Python Program 20:Check String is Palindrome or Not
Python Example Program to Check if a Number is Even or Odd ( User Input )
Linked List Cycle - Floyd's Tortoise and Hare - Leetcode 141 - Python
Python Program even/odd
Python Program to Check If the Number is Armstrong or Not?
Python Program to Check Armstrong Number
P_28 Coding Exercise for Beginners in Python | Exercise 8 | Python Tutorials for Beginners
This Is SO USEFUL!! #python #programming #coding
Frequently Asked Python Program 24:Check if a string contains any special character
#20 Python Tutorial for Beginners | While Loop in Python
Memoization: The TRUE Way To Optimize Your Code In Python
Python Program to Check Prime Number - Complete Guide | Python Tutorial
Python Program to Check Leap Year (Hindi) | Python Tutorial
Python Tutorial: if __name__ == '__main__'
Комментарии