input: def understands_recursion(program: str) -> str:
      """This function is designed to evaluate a given Python program to check
      if it provides a clear understanding of the concept of recursion in Python.
      The program should define a recursive function and demonstrate its use
      with an appropriate example.
      >>> understands_recursion("def factorial(n):\\n   if n == 1:\\n      return 1\\n   else:\\n      return n * factorial(n - 1)\\n\\nresult = factorial(5)\\nprint(\"Factorial of 5 is \", result)")
      'Factorial of 5 is 120'
      """
output:     exec(program)
      return locals().get('result', 'No result found')