idx is shorthand for index in Python. Python is positionally aware of elements. This makes it easy to keep track of things in a list.
For example
my_list = [30, 22, 59, 90]
for idx, val in enumerate(my_list):
print(idx, val)
# Output
0 30
1 22
2 59
3 90