n = int(input("Inserisci un numero: ")) for i in range(1, n + 1, 2): spaces = n - i smez = int(spaces/2) print(" "*smez+"*"*i+" "*smez)