def fact(n: int):
if n < 2:
return 1
return fact(n-1) * n
print(fact(20))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
def fact(n: int):
if n < 2:
return 1
return fact(n-1) * n
print(fact(20))