Files
corso-python/lab20.py
T
2026-04-08 14:28:04 +02:00

15 lines
196 B
Python

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)