Advertisement
gustbs

year

Mar 29th, 2020
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. while True:
  2.     try:
  3.         year = int(input())
  4.         if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
  5.             print("This is leap year.")
  6.             if year % 15 == 0:
  7.                 print("This is huluculu festival year.")
  8.             if year % 55 == 0:
  9.                 print("This is bulukulu festival year.")
  10.         else:
  11.             if year % 15 == 0:
  12.                 print("This is huluculu festival year.")
  13.             else:
  14.                 print("This is an ordinary year.")
  15.         print('\n')
  16.     except EOFError:
  17.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement