Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def func():
- a = int(input("Введите год\n>>> ").replace(".", "").replace(" ", "").replace(",", ""))
- if a % 4 == 0 and a % 100 != 0 or a % 400 == 0: print(366)
- else: print(365)
- if __name__ == "__main__":
- while True:
- func()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement