Add an index number to each element of the array in it for example I need to output it like this test. 7; 3; 0; -5; 1; 2; 8; 4. The result. 7; 4; 2; -2; 5; 7; 14; 11.
import random
rand_mass = []
n = 10
for i in range(n):
rand_mass.append(random.randint(-5, 9))
and what should I do next?