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 11:00
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
History, 13.07.2019 02:00
Mathematics, 13.07.2019 02:00
Health, 13.07.2019 02:00
Mathematics, 13.07.2019 02:00
Mathematics, 13.07.2019 02:00
Mathematics, 13.07.2019 02:00
History, 13.07.2019 02:00
Health, 13.07.2019 02:00
English, 13.07.2019 02:00
Chemistry, 13.07.2019 02:00
English, 13.07.2019 02:00
Mathematics, 13.07.2019 02:00
Mathematics, 13.07.2019 02:00