feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
def correzione(a):
bb = a[0]
a[0] = (a[0] + a[1]) / 2
for i in range(1, len(a)-1):
xx = a[i]
a[i] = (bb + a[i] + a[i+1])/3
bb = xx
a[len(a)-1] = (bb + a[len(a)-1])/2
def readInts():
ints = []
while True:
num = input("Inserisci un numero: ")
if num == "":
break
ints.append(int(num))
return ints
def main():
a = readInts()
correzione(a)
print(a)
main()