input_array result_dict for ind element in enumerate input_array resul

1
2
3
4
5
6
7
input_array = [1, 2, 4, 5, 3, 0]
result_dict = {}
for ind, element in enumerate(input_array):
result_dict[element] = ind
print(result_dict)