diff options
author | Zhongheng Liu on Homelab <z.liu@outlook.com.gr> | 2025-03-19 09:19:11 +0200 |
---|---|---|
committer | Zhongheng Liu on Homelab <z.liu@outlook.com.gr> | 2025-03-19 09:19:11 +0200 |
commit | 556402c0fdbab1f1af0a1e9923a859d5c12618b5 (patch) | |
tree | cd9eb4ada139a9fa72e83d759f0062b3918a4f8a /notebooks/data_structures.ipynb | |
parent | ac44ac75508b72ca63e08875a623f992fe372fc2 (diff) | |
download | cs-y13-556402c0fdbab1f1af0a1e9923a859d5c12618b5.tar.gz cs-y13-556402c0fdbab1f1af0a1e9923a859d5c12618b5.tar.bz2 cs-y13-556402c0fdbab1f1af0a1e9923a859d5c12618b5.zip |
funniness
Diffstat (limited to 'notebooks/data_structures.ipynb')
-rw-r--r-- | notebooks/data_structures.ipynb | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/notebooks/data_structures.ipynb b/notebooks/data_structures.ipynb index 370c569..25de32d 100644 --- a/notebooks/data_structures.ipynb +++ b/notebooks/data_structures.ipynb @@ -11,9 +11,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, None, None, None, None, None, None, None, None, None]\n", + "[1, 2, None, None, None, None, None, None, None, None]\n", + "[1, 2, 69, None, None, None, None, None, None, None]\n", + "I popped this 69\n", + "[1, 2, None, None, None, None, None, None, None, None]\n", + "I popped this 2\n", + "[1, None, None, None, None, None, None, None, None, None]\n", + "[1, None, None, None, None, None, None, None, None, None]\n", + "I popped this 1\n", + "[None, None, None, None, None, None, None, None, None, None]\n", + "ERROR List is empty, cannot pop.\n" + ] + } + ], "source": [ "stack = [None for index in range(0,10)]\n", "basePointer = 0\n", @@ -108,7 +126,7 @@ ], "metadata": { "kernelspec": { - "display_name": ".venv", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -122,7 +140,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.8" + "version": "3.12.7" } }, "nbformat": 4, |