#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1215
Task: [
</think>

Write a Python function that takes a list of emotional peaks and returns the average value of devotion.
Generated: 2026-02-13T00:27:41.221723
"""

def calculate_average_devotion(emotional_peaks):
    """
    Takes a list of emotional peaks and returns the average value of devotion.
    """
    if not emotional_peaks:
        return 0
    total_devotion = sum(emotional_peaks)
    average_devotion = total_devotion / len(emotional_peaks)
    return average_devotion

if __name__ == '__main__':
    test_data = [5, 7, 3, 8, 6]
    result = calculate_average_devotion(test_data)
    print(f"Average Devotion: {result}")