How to Check Leap Year using Python?
Answers
Answered by
0
year=int(input("Enter year to be checked:")) if(year%4==0 and year%100!=0 oryear%400==0): print("The year is a leap year!) else: print("The year isn't a leap year!)
I hope I help you
please don't forget to follow me
I hope I help you
please don't forget to follow me
Similar questions
English,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago