15 lines
196 B
Python
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)
|