2 Antworten
+ 2
Which help do you need?
Please link your code attempt, so we can suggest you how to go on.
+ 1
if not y%4==0:
print("It is a common year")
elif not y%100==0:
print("It is a leap year")
elif not y%400==0:
print("It is a common year")
else:
print("It is a leap year")
https://www.sololearn.com/compiler-playground/cSSs9Gsgj1iZ
Leap year
https://en.wikipedia.org/wiki/Leap_year