0

I need help solving the leap year program after else statements in phyton for beginners. Been stuck for a week.

I need help solving the leap year program after else statements in phyton for beginners. Been stuck for a week.

23rd Oct 2022, 10:59 PM
Ogunmolu Dipo
Ogunmolu Dipo - avatar
2 odpowiedzi
0
Okay, post your code?
24th Oct 2022, 1:43 AM
Slick
Slick - avatar
0
year = int(input()) if year % 4 != 0: print ("Not a leap year") elif year % 100 == 0: print ("Not a leap year") elif year % 400 != 0: print ("Not a leap year") else: print ("Leap year")
24th Oct 2022, 12:38 PM
Ogunmolu Dipo
Ogunmolu Dipo - avatar