a.) The drift variable to track the total drift which is increased by 1.25 in each iteration.
The drift variable tracking the total drif should be printed in each iteration of the loop.
b.) The start point of the loop is 1 as we need to calculate total drift from now till 50 years.
c.) The end point of the loop is upto 51 , to perform 50 iterations so as to calculate total drift for the next 50 years.
d.) The start value for the initial drift is 0 as we need to calculate total drift from now till 50 years.
drift = 0
for i in range(1,51):
drift = drift + 1.25
print("In year",i,"the continents will have moved a total of",drift,"cm.")
OUTPUT:
Get Answers For Free
Most questions answered within 1 hours.