input: 
  def factorial(num: int) -> int:
      if num <= 1:
          return 1
      else:
          return num * factorial(num - 1)
  
  # Test case
  # Input: 7
  # Output: Factorial of 7 is 5040
  
output:     result = factorial(7)
      print(f"Factorial of 7 is {result}")