diff --git a/01-intro.html b/01-intro.html index 9d7be3bca..1db2e0a0c 100644 --- a/01-intro.html +++ b/01-intro.html @@ -656,7 +656,7 @@
Creates a substring from index 1 up to (not including) the final index, effectively removing the first and last letters from ‘oxygen’
@@ -1013,7 +1013,7 @@A ‘gotcha’ with array indexing is that singleton dimensions are
dropped by default. That means A[:, 0]
is a one dimensional
@@ -1161,7 +1161,7 @@
An alternative way to achieve the same result is to use Numpy’s delete function to remove the second column of A. If you’re not sure @@ -1245,7 +1245,7 @@
Since the row axis (0) is patients, it does not make sense to get the difference between two arbitrary patients. The column axis (1) is in @@ -1280,7 +1280,7 @@
The shape will be (60, 39)
because there is one fewer
difference between columns than there are columns in the data.
By using the numpy.amax()
function after you apply the
numpy.diff()
function, you will get the largest difference
diff --git a/04-lists.html b/04-lists.html
index df15a6400..16e7bb14c 100644
--- a/04-lists.html
+++ b/04-lists.html
@@ -791,7 +791,7 @@
Use negative indices to count elements from the end of a container (such as list or string):
@@ -872,7 +872,7 @@To obtain every other character you need to provide a slice with the step size of 2:
@@ -964,7 +964,7 @@The multiplication operator *
used on a list replicates
elements of the list and concatenates them together:
The body of the loop is executed 6 times.
print_message
SyntaxError
for missing ():
at end of first
line, IndentationError
for mismatch between second and
@@ -974,7 +974,7 @@
3 NameError
s for number
being misspelled,
for message
not defined, and for a
not being
@@ -1023,7 +1023,7 @@
IndexError
; the last entry is seasons[3]
,
so seasons[4]
doesn’t make sense. A fixed version is: