Advertisement
STANAANDREY

ex4 lab1 LSD

Sep 30th, 2022 (edited)
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def leap_year(year):
  2.     if year % 4 == 0:
  3.         if year % 100 == 0:
  4.             if year % 400 == 0:
  5.                 return True
  6.             return False
  7.         return True
  8.     return False
  9.  
  10.  
  11. if __name__ == "__main__":
  12.     year = int(input("year="))
  13.  
  14.     print(biss_year(year))
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement