# prize35-11 Exercise 1: habitat loss, committed species loss and extinction debt c, z = 10, 0.25 area0 = 1000.0 area = area0 present = c * area0 ** z print("year forest (km2) species it can hold species still present debt") for year in range(1, 31): if year <= 20: area = area * 0.95 can_hold = c * area ** z # each year the species still present drift 10% of the way down to what the area can hold present = present - 0.10 * (present - can_hold) if year in (5, 10, 20, 30): print(f"{year:4} {area:12.1f} {can_hold:19.1f} {present:21.1f} {present - can_hold:4.1f}") original = c * area0 ** z print(f"species originally: {original:.1f}") print(f"species the remaining forest can hold: {can_hold:.1f} ({(1 - can_hold / original) * 100:.1f}% loss committed)") print(f"species already lost by year 30: {original - present:.1f}") # Output: # year forest (km2) species it can hold species still present debt # 5 773.8 52.7 55.3 2.6 # 10 598.7 49.5 53.4 3.9 # 20 358.5 43.5 48.3 4.8 # 30 358.5 43.5 45.2 1.7 # species originally: 56.2 # species the remaining forest can hold: 43.5 (22.6% loss committed) # species already lost by year 30: 11.0 # Reading it: by year 20 the forest has shrunk to about 36% of its size, which can only hold 43.5 species, yet 48.3 are still present. # The gap is the extinction debt: species that are living on borrowed time. It shrinks after year 20 as they are gradually lost, but those 11.0 losses are only part-paid (the target is 12.7).