diff options
Diffstat (limited to 'code-examples.py')
| -rw-r--r-- | code-examples.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/code-examples.py b/code-examples.py deleted file mode 100644 index d8d0042..0000000 --- a/code-examples.py +++ /dev/null @@ -1,24 +0,0 @@ -# test -a = 1 -b = 4 - -def addto(x, l) : - l.append({ - "n" : x, - "c": [] - }) - for it in l : - if it["n"] == 4 : - subl = it["c"] - subl.append(x) - it['c'] = subl - - -malist = [] - -malist.append({ "n" : a }) -print(malist) - -addto(b, malist) -addto(b, malist) -print(malist) |
