How to skip index in for loop in Python?

Posted by System Matrix on Stack Overflow See other posts from Stack Overflow or by System Matrix
Published on 2010-03-15T21:24:58Z Indexed on 2010/03/15 21:29 UTC
Read the original article Hit count: 130

Filed under:
|

How to achieve following in Python?

C code:

for(i=0;i<5;i++) {
    if( i == 2 ) {
         i++;
    }
}

Basically skipping index?

© Stack Overflow or respective owner

Related posts about python

Related posts about beginner