From c50d4c645cd3c04204106c4f9f026e5910afa3d5 Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Fri, 17 Mar 2023 13:30:46 +0200 Subject: Code tree reorganized; older implemenatations act as a start point --- code-examples.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 code-examples.py (limited to 'code-examples.py') 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) -- cgit v1.2.3