From 32c8f4440c55ca5e07d5a52e2bbbe4fbb729b8ae Mon Sep 17 00:00:00 2001 From: Xnoe Date: Fri, 24 Jul 2020 08:30:33 +0100 Subject: [PATCH] Heh. --- 2d.py | 2 ++ calc.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 2d.py diff --git a/2d.py b/2d.py new file mode 100644 index 0000000..fa818dd --- /dev/null +++ b/2d.py @@ -0,0 +1,2 @@ +l = [[0, 1], [2, 3]] +print(l[0][0]) diff --git a/calc.py b/calc.py index 36e7b30..577c067 100644 --- a/calc.py +++ b/calc.py @@ -50,8 +50,10 @@ NEGATE_AST = 5 index = 0 +print("here") + def current (): - return tokens[index][0] + return (tokens[index])[0] def eat(token): global index