Can someone tell me how I can fix my code?
It is saying variable y is not defined?
import m...
Computers and Technology, 06.02.2022 08:00 winterblanco
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()
Answers: 2
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
Mathematics, 24.11.2020 01:00
History, 24.11.2020 01:00
Mathematics, 24.11.2020 01:00
History, 24.11.2020 01:00
Mathematics, 24.11.2020 01:00
History, 24.11.2020 01:00
Mathematics, 24.11.2020 01:00
History, 24.11.2020 01:00
Geography, 24.11.2020 01:00
Mathematics, 24.11.2020 01:00