get index in foreach py

Solutions on MaxInterview for get index in foreach py by the best coders in the world

showing results for - "get index in foreach py"
Salvatore
25 Sep 2018
1for idx, val in enumerate(ints):
2    print(idx, val)