#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1113
Task: \boxed{Write a Python function that finds the maximum value in a list of integers using a recursive approach, and test it with the list [3, 1, 4, 1, 5, 9].}</think>

Write a Python function that finds
Generated: 2026-02-12T20:45:14.328092
"""

def find_max_recursive(lst):
    if len(lst) == 1:
        return lst[0]
    else:
        return max(lst[0], find_max_recursive(lst[1:]))

if __name__ == '__main__':
    test_list = [3, 1, 4, 1, 5, 9]
    result = find_max_recursive(test_list)
    print("Maximum value:", result)