Computers and Technology

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()

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, mitalichavez1
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, larry5007
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
image
Computers and Technology, 23.06.2019 22:00, elijah1090
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
image
Computers and Technology, 25.06.2019 00:30, jayzelgaspar8005
You are to write a series of steps that anyone could follow to solve the following three problems: 1. even odd a. assume that someone tells you a number (an integer number) b. you hear the number and respond with the word even or odd 2. average a. assume that someone tells you between 3 and 5 numeric values. b. you hear the numbers and respond with the average is some number 3. dog or cat a. explain to a child the differences between a dog and a cat. b. your explanation could be used by a child or anyone to distinguish the difference between a dog and a cat
Answers: 1
Do you know the correct answer?
Can someone tell me how I can fix my code? It is saying variable y is not defined?
import m...

Questions in other subjects:

Konu
Mathematics, 12.10.2020 22:01
Konu
Mathematics, 12.10.2020 22:01
Konu
Chemistry, 12.10.2020 22:01
Konu
Chemistry, 12.10.2020 22:01
Konu
Chemistry, 12.10.2020 22:01