forked from Rust-related/RustPython
12 lines
136 B
Python
12 lines
136 B
Python
|
|
|
|
ls = [1, 2, 3]
|
|
|
|
i = iter(ls)
|
|
assert i.__next__() == 1
|
|
assert i.__next__() == 2
|
|
assert next(i) == 3
|
|
|
|
assert next(i, 'w00t') == 'w00t'
|
|
|