# Exercise 2: how much bigger is one VEI than another? LIMITS = {1: 1e4, 2: 1e6, 3: 1e7, 4: 1e8, 5: 1e9, 6: 1e10, 7: 1e11, 8: 1e12} print("VEI 6 threshold / VEI 3 threshold =", int(LIMITS[6] / LIMITS[3])) print("VEI 7 threshold / VEI 3 threshold =", int(LIMITS[7] / LIMITS[3])) for n in range(2, 9): print(f"VEI {n} is {int(LIMITS[n] / LIMITS[n - 1]):3d} times the threshold of VEI {n - 1}") # VEI 6 threshold / VEI 3 threshold = 1000 # VEI 7 threshold / VEI 3 threshold = 10000 # VEI 2 is 100 times the threshold of VEI 1 # VEI 3 is 10 times the threshold of VEI 2 # VEI 4 is 10 times the threshold of VEI 3 # VEI 5 is 10 times the threshold of VEI 4 # VEI 6 is 10 times the threshold of VEI 5 # VEI 7 is 10 times the threshold of VEI 6 # VEI 8 is 10 times the threshold of VEI 7 # Each step is a factor of 10 in volume (apart from the 1 to 2 step, a factor of 100), # so the scale is logarithmic: a VEI 7 holds at least 10 000 times the material of a VEI 3.