Skip to content

Commit

Permalink
feat: added ex1
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelgerardzuccaro committed Oct 30, 2023
1 parent c446327 commit 36330ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ex1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
def giorno_della_settimana():
week = int(input("Inserisci il numero della settimana (1-7): "))

switch = {
1: "Lunedì",
2: "Martedì",
3: "Mercoledì",
4: "Giovedì",
5: "Venerdì",
6: "Sabato",
7: "Domenica"
}

day = switch.get(week, "Input non valido! Inserisci un numero della settimana tra 1 e 7.")

return day

print(giorno_della_settimana())

0 comments on commit 36330ba

Please sign in to comment.