Skip to content

Commit 98ed77b

Browse files
authored
Correct typo and improve formatting in is_leap
Fix typo in docstring and formatting in is_leap function.
1 parent 4784a9e commit 98ed77b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

myleap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
def is_leap(yy):
5-
"""Functin to check given year is leap or not."""
6-
return yy % 400 == 0 or (yy % 4 == 0 and yy % 100 != 0)
5+
"""Functin to check given year is leap or not."""
6+
return yy % 400 == 0 or (yy % 4==0 and yy % 100 != 0)

0 commit comments

Comments
 (0)