+ 1
Can i change list index from 0 to 1?
8 Answers
+ 1
why would you need to do that?
+ 1
I want to print 2 consecutive indexes by escaping third index. For that I wrote some logic but it works if index starts from 0.
+ 1
just add one where you use the index
+ 1
Well, yes, in a way, you could add an element called zero that you would skip and then continue looping from the second element onwards, if you mean you want to switch the index, then it all depends on the data structure, if it is something like a list there shouls be a get function, if it is an array the [index] will get you the element at that index.
+ 1
Yes, it works. I am also wrote in same way
0
But the problem with index, it skips 0 index if i did like this
0
Anyway i got the answer from bebida Roja. I need to add 1 duplicate element in 0 index.
0
Thank you everyone