RosettaCodeData/Task/Leap-year/Python/leap-year-2.py

3 lines
73 B
Python

def is_leap_year(year):
return not year % (4 if year % 100 else 400)