t363.py 309 B

12345678910111213141516171819202122232425
  1. for x in enumerate(range(3)):
  2. print x
  3. for i, v in enumerate(range(4, 8)):
  4. print i, v
  5. for x in enumerate([14, 8, 2, "abc", -7], 2):
  6. print x
  7. print enumerate
  8. e = enumerate([4, 8, 12], -3)
  9. print e
  10. print repr(e)
  11. print e.next()
  12. d = {e: 3}
  13. print d
  14. for x in e:
  15. print x
  16. for y in e:
  17. print y