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
Share
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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
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!)
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 ☺️