I was practising some exercises in Python. And Python interpreter has generated error saying: Invalid Syntax when I tried to run the below posted code:
Python code:
#Use of Enumerate:
for i,v in enumerate (['item0', 'item01', 'item02']) :
print (i, ":", v)