This PR is related to the issue #762 where for loops didn't work the same way as in CPython with sequence objects. I started by adding failing tests related to the issue. Then I modified the iter() builtin function and added a SequenceIterator type to handle sequence objects in for loops. With these modifications I managed to pass the tests I created.
This PR is related to the issue #762 where for loops didn't work the same way as in CPython with sequence objects. I started by adding failing tests related to the issue. Then I modified the iter() builtin function and added a SequenceIterator type to handle sequence objects in for loops. With these modifications I managed to pass the tests I created.
PR Checklist: