x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # seznam z 10 mesti # morda lepše: x = [0] * 10 i = 0 while i < 10 : pod = input("Vnesi " + str(i + 1) + ". podatek: ") x[i] = int(pod) i = i + 1 i = 9 rezultat = "" while i >= 0 : rezultat = rezultat + "\n" + str(x[i]) i = i - 1 print("Obratno:\n" + rezultat)