How to print the list of next 15 leap years from a given year in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print the list of next 15 leap years from a given year in python?

7th Aug 2019, 2:26 PM
Shivendra
Shivendra - avatar
5 Answers
+ 1
If I didn't make any mistake, that's fixed
7th Aug 2019, 3:13 PM
Gwlanbzh
Gwlanbzh - avatar
0
while taking input as 1684 ,it shows 1700 as a leap year which is'nt a leap year?
7th Aug 2019, 2:51 PM
Shivendra
Shivendra - avatar
0
Why wouldn't it be?
7th Aug 2019, 2:56 PM
Gwlanbzh
Gwlanbzh - avatar
0
for being a leap year there is a condition that if a number is multiple of 100 but not of 400 ,then it wouldn't be leap year 1600,1200,2000 is a leap year but 1100,1000,1800,1900 is not a leap year
7th Aug 2019, 3:01 PM
Shivendra
Shivendra - avatar
7th Aug 2019, 2:49 PM
Gwlanbzh
Gwlanbzh - avatar