Python program to check leap year|Riseofcoders|#shorts #python #programming #coding #coder

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

You can reduce it even more


year=2000

if((year % 400 == 0) and (year % 100 == 0)) or ((year % 4 == 0) and (year % 100 != 0)):
print("{0} is a leap year".format(year))
else:
print("{0} is not a leap year".format(year))

ronnyramirez