Hi,
I am trying to write a code that will calculate easter date within a year range.The problem i have is that no matter what date i put either within or outside the range i get the same output.Here is the code
#A programme to calculate date of easter
def main():
year=input('Enter a year between 1982-2048 ')
if year==range(1982,2049):
a=year%19
b=year%4
c=year%7
d=((19*a)+24)%30
e=((2*b)+(4*c)+(6*d)+5)%7
f=22+d+e
if f<=31:
print " Easter in on March",f
else:
print "Easter is on April",f-31
else:
print 'Year is not within range'
main()
Thanks for the help in advance.