t580.trans 1.1 KB

12345678910111213141516171819202122
  1. Module(body=[Assign(targets=[Name(id='lst',
  2. ctx=Store())],
  3. value=List(elts=[Num(n=2),
  4. Num(n=2),
  5. Num(n=2),
  6. Num(n=2)],
  7. ctx=Load())),
  8. Assign(targets=[Name(id='i',
  9. ctx=Store())],
  10. value=Num(n=0)),
  11. While(test=Compare(left=Subscript(value=Name(id='lst',
  12. ctx=Load()),
  13. slice=Index(value=Name(id='i',
  14. ctx=Load())),
  15. ctx=Load()),
  16. ops=[NotEq()],
  17. comparators=[Num(n=0)]),
  18. body=[AugAssign(target=Name(id='i',
  19. ctx=Store()),
  20. op=Add(),
  21. value=Num(n=2))],
  22. orelse=[])])