I want to increment index "i" by one and not add one to the value stored in "i". How do I do it?
I have tried "i+=1", "i=i+1", "i+1" - none of them works for me.
lst=[1,2,3]
for i in lst:
print(i+1)
expected result:
2
3
index out of bound error
actual result:
2
3
4