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