# prize35-2 Exercise 1: a five-link chain at three different efficiencies base = 20_000.0 # kJ per square metre per year fixed by the producers (assumed) names = ["producers", "primary", "secondary", "tertiary", "quaternary"] for eff in [0.05, 0.10, 0.15]: energy = base print(f"--- efficiency {eff:.0%} ---") for name in names: print(f"{name:11s} {energy:10.2f} kJ ({energy / base:8.4%} of the base)") energy *= eff # Output: # --- efficiency 5% --- # producers 20000.00 kJ (100.0000% of the base) # primary 1000.00 kJ ( 5.0000% of the base) # secondary 50.00 kJ ( 0.2500% of the base) # tertiary 2.50 kJ ( 0.0125% of the base) # quaternary 0.12 kJ ( 0.0006% of the base) # --- efficiency 10% --- # producers 20000.00 kJ (100.0000% of the base) # primary 2000.00 kJ (10.0000% of the base) # secondary 200.00 kJ ( 1.0000% of the base) # tertiary 20.00 kJ ( 0.1000% of the base) # quaternary 2.00 kJ ( 0.0100% of the base) # --- efficiency 15% --- # producers 20000.00 kJ (100.0000% of the base) # primary 3000.00 kJ (15.0000% of the base) # secondary 450.00 kJ ( 2.2500% of the base) # tertiary 67.50 kJ ( 0.3375% of the base) # quaternary 10.12 kJ ( 0.0506% of the base) # The top level at 15% receives 10.12 / 0.12 = about 80 times more than at 5%: # 3 extra percentage points per link become (0.15 / 0.05) ** 4 = 81 over four links.