Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
isStrong.py
#python 3.5.2 #isStrong(num) def isStrong(num): sum=0 temp=num while num!=0: r=num%10 sum=sum+fact(r) num=num//10 num=temp if sum==num: return True else : False def fact(r): if r==0: return 1 else : return r*fact(r-1) if isStrong(125): print('Strong') else: print('Not Strong')
run
|
edit
|
history
|
help
0
Python 3: Queue
Prime number
Guessing game
Python3 - product lists
Insert a sequence of same numbers, unpacking
Return nth fibonacci number using memoization
gj
Removing punctuation from strings
hw5 ss while
Lesson#6