The Python programming language
index. This avoids the possibility of setting an iterator to an invalid state.