Skip to content

Commit

Permalink
Fix linting issues for leap in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgoettschkes committed Jan 16, 2024
1 parent 90d65b4 commit 0c4a04a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/leap/leap.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
"""Function to calculate leap year."""

def leap_year(year):
return True if year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) else False
"""Function to calculate leap year."""
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)

0 comments on commit 0c4a04a

Please sign in to comment.