12345678910111213141516171819202122232425262728 |
- Module(body=[Assign(targets=[Name(id='x',
- ctx=Store())],
- value=Num(n=1)),
- Assign(targets=[Name(id='t',
- ctx=Store())],
- value=Num(n=0)),
- While(test=Compare(left=Name(id='x',
- ctx=Load()),
- ops=[LtE()],
- comparators=[Num(n=5)]),
- body=[Assign(targets=[Name(id='t',
- ctx=Store())],
- value=BinOp(left=Name(id='t',
- ctx=Load()),
- op=Add(),
- right=Name(id='x',
- ctx=Load()))),
- Assign(targets=[Name(id='x',
- ctx=Store())],
- value=BinOp(left=Name(id='x',
- ctx=Load()),
- op=Add(),
- right=Num(n=1)))],
- orelse=[]),
- Print(dest=None,
- values=[Name(id='t',
- ctx=Load())],
- nl=True)])
|