Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
factorial.py
#python 3.5.2 #factorial def fact(num): if num==0: return 1 else: fact=1 for i in range(1,num+1): fact=fact*i return fact fact=fact(10) print('10! = ',fact) #using recursion def fact(num): if num==0: return 1 else : return num*fact(num-1) fact=fact(5) print('5! = ',fact )
run
|
edit
|
history
|
help
0
H.W5
fibonacciseries
InsertionSort
Skillenza Common subjects
LinkedHashTable Implementation
3564
Ok
Python. Even
pyFoodTipFoodOrder
hw1