0

How to find leap year by using python..?

Python

2nd Nov 2022, 12:05 PM
Dannana Surya
Dannana Surya - avatar
2 Answers
+ 2
Which help do you need? Please link your code attempt, so we can suggest you how to go on.
2nd Nov 2022, 12:59 PM
Lisa
Lisa - avatar
+ 1
if not y%4==0: print("It is a common year") elif not y%100==0: print("It is a leap year") elif not y%400==0: print("It is a common year") else: print("It is a leap year") https://www.sololearn.com/compiler-playground/cSSs9Gsgj1iZ Leap year https://en.wikipedia.org/wiki/Leap_year
2nd Nov 2022, 1:01 PM
SoloProg
SoloProg - avatar