From 28504e1963c83d33a000ee970ffd8552ad17382f Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Wed, 8 Apr 2026 11:32:30 +0200 Subject: [PATCH] aggiunge esercizio 12 --- lab12.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lab12.py diff --git a/lab12.py b/lab12.py new file mode 100644 index 0000000..1b6bc78 --- /dev/null +++ b/lab12.py @@ -0,0 +1,13 @@ +year = int(input("Enter a year: ")) + +if year<1582: + print("Non rientra nel calendario gregoriano") +elif year % 4 != 0: + print("Anno comune") +elif year % 100 != 0: + print("Anno bisestile") +elif year % 400 != 0: + print("Anno comune") +else: + print("Anno bisestile") +