i have a iterator in a variable which was iterated until some match was encountered. next i want to iterate it in a very different loop. before that, i want to just discard one iteration. will
edit:
i am very accustomed to programming in C where such loops step through arrays using pointers where all i would need to do between the two loops is increment the pointer. but that's not how it's done in Python. i'm drawing a blank trying to figure it out.
next(my_iterator)
do that?edit:
i am very accustomed to programming in C where such loops step through arrays using pointers where all i would need to do between the two loops is increment the pointer. but that's not how it's done in Python. i'm drawing a blank trying to figure it out.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.