1. The following cells contain at least one programming bug each. For each cell add a comment to identify and explain the bug, and correct the program.
# Q. 1.1
v = sqrt(2)
# Q. 1.2
v = [1, 4, 9, 16]
v_squared = v*v
# Q. 1.3
v = [1, 4, 9, 16]
print("The last value in the list is %d"%v[4])
# Q. 1.4
if True
print("This is always true")
# Q. 1.5
# Print every even number up to 10
n = 0
while True:
if n%2==0:
print(n)
n+=1
if n==10:
break
2. A path is defined by the following list of x, y coordinate positions
[[0, 0], [1, 0], [1, 1], [2, 1], [2, 2], [3, 2], [3, 3], [4, 3], [4, 4], [5, 4], [5, 5]]
3. The data file borehole.txt (all of the data files are stored in the sub-folder data/ of this notebook library) contains measurements taken from a well in the North Sea.