Skip to content

Commit 5430c2b

Browse files
committed
Fix linter error
1 parent 2e268ac commit 5430c2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎math_problems/leap_year.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def leap_year(year: int) -> bool:
77
The year can be evenly divided by 4, is a leap year, unless:
88
The year can be evenly divided by 100, it is NOT a leap year, unless:
99
The year is also evenly divisible by 400. Then it is a leap year.
10-
This means that in the Gregorian calendar, the years 2000 and 2400 are leap years,
10+
This means that in the Gregorian calendar, the years 2000 and 2400 are leap years,
1111
while 1800, 1900, 2100, 2200, 2300 and 2500 are NOT leap years. Source
1212
"""
1313
leap = False
@@ -22,4 +22,4 @@ def leap_year(year: int) -> bool:
2222
else:
2323
leap = False
2424

25-
return leap
25+
return leap

0 commit comments

Comments
 (0)