bowtodylan

Members
  • Content Count

    3
  • Last visited

Everything posted by bowtodylan

  1. # way 1 def factorial(num): if num == 1: return 1 else: return num * factorial(num - 1) print(factorial(n)) # way 2 fac = 1 for i in range(1,n + 1): fac *= i print(fac) I'll add more soon XD ,these were the only ones i conjure up in 3 minutes