leap-year.py 331 B

123456789101112131415
  1. print('Wellcome to the leap year App')
  2. year = int(input('Enter the year: '))
  3. if year % 4 == 0:
  4. if year % 100 == 0:
  5. if year % 400 == 0:
  6. print('It\'s a leap year')
  7. else:
  8. print('It\'s not a leap year')
  9. else:
  10. print('It\'s a leap year')
  11. else:
  12. print('It\'s not a leap year')