def fact(num:int): if num<0: return 0 elif num == 0: return 1 else: return num*fact(num-1) print(fact(3))