Ads block

Banner 728x90px
Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Armstrong number in python


Check if a number is Armstrong or not in python In  [1]: n = 152 num = n ​ count = 0 while n != 0 : r = n % 10 count = count + 1 …
Read more »

Perfect Numbers in Python


Perfect Number in Python In  [9]: import math n = int ( input ( 'Ente the number: ' )) num = n ​ sum = 1 for i in range ( 2 , int ( math…
Read more »