We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d43b8 commit a33fb18Copy full SHA for a33fb18
Assignment Set - 3/Assignment on List - Level 1.py
@@ -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