I want to use every element with its index in a tuple. I tried several ways but to write this code.
a = (1,2,3,0,0,1,2)
for i in range(len(a)):
print(f"{i}th {a[i]}")
I don't want to use range(len(a)) when writing for loops in python ;) is there any other elegant way?