Enumerate string

Rust

#![allow(unused)]
fn main() {
for (i, ch) in s.chars().enumerate() {
}
}

Python

for i, ch in enumerate(s):
    ...