subject

Can someone tell me how I can fix my code? It is saying variable y is not defined?
import math

def main():

y = int( input("Enter year: "))

a = (y % 19)

b = (y // 100)
c = (y%100)

d = (b //4)
e = (b%4)

g = ((8 * b + 13)//25)

h = ((10 * a + b - d - g + 15)% 30)

j = (c // 4)
k = (c%4)

m = ((a + 11 * h)//319)

r = ((2 * a + 2 * j - k - h + m + 32)% 7)

n = ((h - m + r + 90) // 25)

p = ((h - m + r + n + 19)% 32)

print("Easter Sunday will be on day {} of the month {}," ,format(p, n))

main()

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ramp charts are generally created in wordlotusexcelpowerpoint
Answers: 1
You know the right answer?
Can someone tell me how I can fix my code? It is saying variable y is not defined?
import m...
Questions
question
Mathematics, 31.08.2019 09:00
question
Mathematics, 31.08.2019 09:00
question
Chemistry, 31.08.2019 09:00
Questions on the website: 13722360