From 10982fcfd3dfece550beea6fd7892d8b08477cbf Mon Sep 17 00:00:00 2001
From: Daniel Hoorn <d.j.vanderhoorn@student.tudelft.nl>
Date: Fri, 4 Oct 2024 13:35:13 +0200
Subject: [PATCH] A work in progress file assembling some small bugs

---
 content/Week_1_6/PA/Some_small_bugs.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 content/Week_1_6/PA/Some_small_bugs.py

diff --git a/content/Week_1_6/PA/Some_small_bugs.py b/content/Week_1_6/PA/Some_small_bugs.py
new file mode 100644
index 00000000..02f591b3
--- /dev/null
+++ b/content/Week_1_6/PA/Some_small_bugs.py
@@ -0,0 +1,17 @@
+## Some small bugs for you to find!
+import numpy as np
+import matplotlib.pylab as plt
+import pandas as pd
+
+a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
+b = np.linspace(0, 10, 11)
+
+print(a.size())
+
+for i in range(0, a.size):
+    a[i] = a[i] +a[i-1]
+
+# Does this look like a sine wave?
+plt.plot(a, np.sin(a), label='sin(a)')
+
+c = a+b
-- 
GitLab