Quantcast
Channel: How do I use a C-style for loop in Python? - Stack Overflow
Viewing all articles
Browse latest Browse all 11

How do I use a C-style for loop in Python?

$
0
0

I want to use the traditional C-style for loop in Python. I want to loop through characters of a string, but also know what it is, and be able to jump through characters (e.g. i =5 somewhere in the code).

for with range doesn't give me the flexibility of an actual for loop.


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images