forked from skulpt/skulpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
t252.trans
37 lines (37 loc) · 1.97 KB
/
t252.trans
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Module(body=[Assign(targets=[Name(id='x',
ctx=Store())],
value=BinOp(left=List(elts=[Num(n=0)],
ctx=Load()),
op=Mult(),
right=Num(n=10))),
For(target=Name(id='i',
ctx=Store()),
iter=Call(func=Name(id='range',
ctx=Load()),
args=[Num(n=10)],
keywords=[],
starargs=None,
kwargs=None),
body=[AugAssign(target=Subscript(value=Name(id='x',
ctx=Load()),
slice=Index(value=Name(id='i',
ctx=Load())),
ctx=Store()),
op=Add(),
value=Name(id='i',
ctx=Load())),
AugAssign(target=Subscript(value=Name(id='x',
ctx=Load()),
slice=Index(value=Name(id='i',
ctx=Load())),
ctx=Store()),
op=Add(),
value=BinOp(left=Name(id='i',
ctx=Load()),
op=Mult(),
right=Num(n=2)))],
orelse=[]),
Print(dest=None,
values=[Name(id='x',
ctx=Load())],
nl=True)])