Skip to content

Commit a33fb18

Browse files
authored
Create Assignment on List - Level 1.py
1 parent 62d43b8 commit a33fb18

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#lex_auth_012693797166096384149
2+
3+
def find_leap_years(given_year):
4+
5+
# Write your logic here
6+
list_of_leap_years = list()
7+
while len(list_of_leap_years) < 15:
8+
given_year += 1
9+
if (given_year%4==0 and given_year%100 != 0) or (given_year%400==0):
10+
list_of_leap_years.append(given_year)
11+
12+
return list_of_leap_years
13+
14+
list_of_leap_years=find_leap_years(2000)
15+
print(list_of_leap_years)

0 commit comments

Comments
 (0)