python - Invalid Syntax, when running for loop -
i practising exercises in python. , python interpreter has generated error saying: invalid syntax when tried run below posted code:
python code:
#use of enumerate: i,v in enumerate (['item0', 'item01', 'item02']) : print (i, ":", v)
you have not given space print statement can check python: myths indentation
for i,v in enumerate (['item0', 'item01', 'item02']): print (i, ":", v)
Comments
Post a Comment