Create a program in python to find if a year is a leap year or not. A year is a leap year, if it is divisible by 4
Answers
Answered by
1
year=int(input("Enter year to be checked:")) if(year%4==0 and year%100!= 0 or year%400==0): print("The year is a leap year!) else: print("The year isn't a leap year!)
Answered by
3
Answer:
year=int(input("Enter year to be checked:")) if(year%4==0 and year%100!= 0 or year%400==0): print("The year is a leap year!) else: print("The year isn't a leap year!)
Explanation:
I have typed what I know
have a nice day ☺️
Similar questions