# Time 3, Exercise 1: how fast does each simple calendar slide through the seasons? YEAR = 365.2422 # tropical year, days SEASON = YEAR / 4 # about one quarter of the year # The Egyptian civil year: 12 months of 30 days plus 5 extra days. print("Egyptian civil year:", 12 * 30 + 5, "days") slip_per_year = YEAR - 365 print("slip per year:", round(slip_per_year, 4), "days") print("years to slip one season:", round(SEASON / slip_per_year)) print("years to slip a whole year (365.2422):", round(YEAR / slip_per_year)) print("years to slip a whole year if the year were exactly 365.25:", round(365 / 0.25)) # Compare with a purely lunar year of 12 months. MONTH = 29.530589 lunar_year = 12 * MONTH lunar_slip = YEAR - lunar_year print("12 lunar months:", round(lunar_year, 3), "days; slip per year", round(lunar_slip, 3)) print("months to slip one season:", round(SEASON / lunar_slip * 12), "(about", round(SEASON / lunar_slip, 1), "years)") print("years to slip a whole year:", round(YEAR / lunar_slip, 1)) # Output when run: # Egyptian civil year: 365 days # slip per year: 0.2422 days # years to slip one season: 377 # years to slip a whole year (365.2422): 1508 # years to slip a whole year if the year were exactly 365.25: 1460 # 12 lunar months: 354.367 days; slip per year 10.875 # months to slip one season: 101 (about 8.4 years) # years to slip a whole year: 33.6 # # Reading the output: an Egyptian New Year moves one day earlier against the # seasons every four years or so, and takes about 377 years to move one season # and about 1500 years to come all the way round. A purely lunar year moves # through a season in about 8.4 years and all the way round in about 33.6.