Skip to content

Commit 0f339fb

Browse files
authored
Add files via upload
1 parent 7ac37ab commit 0f339fb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
def is_leap_year(year):
2+
if year % 4 == 0:
3+
if year % 100 == 0:
4+
if year % 400 == 0:
5+
print('Leap year 😁🥳')
6+
else:
7+
print('Not leap year 😢')
8+
else:
9+
print('Leap year 😁🥳')
10+
else:
11+
print('Not leap year 😢')
12+
13+
def main():
14+
year = int(input('Enter a year: '))
15+
is_leap_year(year)
16+
17+
main()

0 commit comments

Comments
 (0)