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.
2 ответов
0
Okay, post your code?
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")