Code1:
list = [4,3,3,2,1,-1,-2,-2,-5] for elements in list: print(list[elements])
output:
1 2 2 3 3 -5 -2 -2 1 <
1 2 2 3 3 -5 -2 -2 1