l1 = [1, 2, 3] print("__iter__" in dir(l1))
l1 = [1, 2, 3] ojb = iter(l1)
l1 = [1, 2, 3, 4] ojb = iter(l1) for i in range(2): print(next(ojb)) for i in range(1): print(next(ojb))
```python
l1 = [1, 2, 3, 4]
ojb = iter(l1)
while 1:
try:
print(next(ojb))
except StopIteration:
breakpython