"""Allocate an illustrative annual solar-energy scenario across seasonal weights.

This is a transparent arithmetic example, not a site-specific generation forecast.
"""

months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
solar_weights = [0.4, 0.6, 0.9, 1.3, 1.6, 1.8, 2.0, 1.8, 1.4, 0.9, 0.5, 0.3]

total_mwh = 3880.41
weight_total = sum(solar_weights)
monthly_mwh = [weight / weight_total * total_mwh for weight in solar_weights]

assert round(sum(monthly_mwh), 2) == round(total_mwh, 2)

print("| Month | Illustrative allocation |")
print("| --- | ---: |")
for month, value in zip(months, monthly_mwh):
    print(f"| {month} | {value:.2f} MWh |")
