aggiunge esercizio 20

This commit is contained in:
2026-04-08 14:28:04 +02:00
parent a9a5c4b7cb
commit afcbed5d16
+15
View File
@@ -0,0 +1,15 @@
hat_list = [1, 2, 3, 4, 5]
# passo 1
hat_list[2] = int(input("Inserisci il nuovo numero centrale: "))
# passo 2
del hat_list[-1]
# passo 3
print("Lunghezza: ",len(hat_list))
print(hat_list)