In [34]:
#1. Let y be the year (such as 1800 or 2001)
y = int(input("Enter the year you want to know what day was Easter:"))
#2. Divide y by 19 and call the remainder a. Ignore the quotient.
a = y % 19
#3. Divide y by 100 to get quotient b and a remainder c
b = y // 100
c = y % 100
#4. Divide b by 4 to get a quotient d and a remainder e.
d = b // 4
e = b % 4
#5. Divide 8b + 13 by 25 to get a quotient g. Ignore the remainder.
g = (8*b + 13) // 25
#6. Divide 19a + b - d - g + 15 by 30 to get a remainder h. Ignore the quotient.
h = (19*a + b - d - g + 15) % 30
#7. Divide c by 4 to get a quotient j and a remainder k.
j = c // 4
k = c % 4
#8. Divide a + 11h by 319 to get a quotient m. Ignore the remainder.
m = (a + 11*h) // 319
#9. Divide 2e + 2 * j - k - h + m + 32 by 7 to get the remainder r. Ignore the quotient.
r = (2*e + 2 * j - k - h + m + 32) % 7
#10. Divide h - m + r + 90 by 25 to get the quotient n. Ignore the remainder.
n = (h - m + r + 90) // 25
#11. Divide h - m + r + n + 19 by 32 to get a remainder p. Ignore the quotient.
p = (h - m + r + n + 19) % 32

#We are going to create a list, to give us the month.
month = ["March", "April", "May"]
actualMonth = month[n - 3]
#A formatted print in order to print the name of the month Easter falls on.
print("In the year {}, Easter falls on {}, {}.".format(y, actualMonth, p))


Enter the year you want to know what day was Easter:2022