Skip to content

Commit

Permalink
feat:completed ex1
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzodidomenic committed Oct 30, 2023
1 parent c446327 commit 2dbe08c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/ex1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@



def func(a:int)->int:
match a:
case 1:
print("Monday")
case 2:
print("Tuesday")
case 3:
print("Wednesady")
case 4:
print("Thursday")
case 5:
print("Friday")
case 6:
print("Saturday")
case 7:
print("Sunday")
case _:
print("numero inserito errato")


print("inserisci numero da 1 a 7:")
k = int(input())
func(k)

0 comments on commit 2dbe08c

Please sign in to comment.