iter0.py 206 B

123456789
  1. # builtin type that is not iterable
  2. try:
  3. for i in 1:
  4. pass
  5. except TypeError:
  6. print('TypeError')
  7. # builtin type that is iterable, calling __next__ explicitly
  8. print(iter(range(4)).__next__())