I know that you can use c = cycle(['a', 'b', 'c']) to cycle through the elements using c.next() , but is it possible to get the current element of the iterator?
for example, if c.next() returns 'c' , it means the iterator has been to 'b' before. Is there a way to get 'b' without using next() ?
source share