How to pass index in python for loop November 9, 2021 by admin list = [a,b,c,d] for i, val in enumerate(list): print(i, val)