Computer Science, asked by pranavkarthikeyagumm, 10 months ago

Create a program in Python to find if a year is a leap year or not (a leap year is divisible by 4). if its correct i will give 100 points only today in 5 min

Answers

Answered by Anonymous
15

Answer:

  1. year = int(input("Enter a year: "))
  2. if (year % 4) == 0:
  3. if (year % 100) == 0:
  4. if (year % 400) == 0:
  5. print("{0} is a leap year". format(year))
  6. else:
  7. print("{0} is not a leap year". format(year))
  8. else:

Explanation:

Similar questions