Advertisement
dino3vr

Untitled

Nov 7th, 2019
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1.  
  2. def func():
  3.     a = int(input("Введите год\n>>> ").replace(".", "").replace(" ", "").replace(",", ""))
  4.  
  5.     if a % 4 == 0 and a % 100 != 0 or a % 400 == 0: print(366)
  6.     else: print(365)
  7.  
  8. if __name__ == "__main__":
  9.     while True:
  10.         func()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement