# prize35-5 Exercise 1: how warming moves a site across the biome map def biome(temp, rain): if temp < -5: return "tundra" if rain < 250: return "desert" if temp < 5: return "boreal forest" if temp < 20: return "temperate grassland" if rain < 500 else "temperate forest" return "savanna" if rain < 1500 else "tropical rainforest" sites = {"Highland glen": (3, 700), "Mild lowland": (17, 600)} for name, (temp, rain) in sites.items(): print(name) for warming in [0, 2, 4, 6]: print(f" +{warming} C ({temp + warming:2d} C, {rain} mm): {biome(temp + warming, rain)}") # Output: # Highland glen # +0 C ( 3 C, 700 mm): boreal forest # +2 C ( 5 C, 700 mm): temperate forest # +4 C ( 7 C, 700 mm): temperate forest # +6 C ( 9 C, 700 mm): temperate forest # Mild lowland # +0 C (17 C, 600 mm): temperate forest # +2 C (19 C, 600 mm): temperate forest # +4 C (21 C, 600 mm): savanna # +6 C (23 C, 600 mm): savanna # Reading it: the highland glen crosses from boreal to temperate forest at +2 C, the mild lowland site # becomes savanna once it passes 20 C, because rainfall is held fixed. Real warming also changes rainfall, # and real biomes shift gradually (a treeline creeping uphill, species moving at different speeds, with # long delays) rather than flipping at one cut-off. The toy shows direction, not timing.