input: def factorial(num):
      if num <= 1:
          return 1
      else:
          return num * factorial(num - 1)
  
  """
  >>> factorial(7)
  5040
  """
output:     if num <= 1:
          return 1
      else:
          return num * factorial(num - 1)