From: Neil Smith Date: Sun, 7 Dec 2014 11:00:24 +0000 (+0000) Subject: Fixed typos found in presentation X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=fc01177820fbcb4d4abba6afc772786f162b5b2e;p=cas-master-teacher-training.git Fixed typos found in presentation --- diff --git a/adaptive.csv b/adaptive.csv deleted file mode 100644 index 1d8cc25..0000000 --- a/adaptive.csv +++ /dev/null @@ -1,10 +0,0 @@ -fluctuations,"['f', 'l', 'u', 'c', 't', 'u', 'a', 't', 'i', 'o', 'n', 's']","['e', 'r', 'd', 'g', 'p', 'm', 'h', 'b', 'y']",1,True -pertinent,"['p', 'e', 'r', 't', 'i', 'n', 'e', 'n', 't']","['s', 'a', 'o', 'l', 'c', 'd', 'u', 'g']",2,True -banshees,"['_', 'a', 'n', 's', '_', 'e', 'e', 's']","['i', 'r', 't', 'o', 'l', 'c', 'd', 'u', 'g', 'p']",0,False -expediter,"['e', '_', 'p', 'e', 'd', 'i', 't', 'e', 'r']","['s', 'a', 'n', 'o', 'l', 'c', 'u', 'g', 'm', 'h']",0,False -slumlords,"['s', 'l', 'u', 'm', 'l', 'o', 'r', 'd', 's']","['e', 'i', 'a', 'n', 't', 'c', 'g', 'p']",2,True -treasurers,"['t', 'r', 'e', 'a', 's', 'u', 'r', 'e', 'r', 's']","['i', 'n', 'o', 'l', 'c', 'd']",4,True -tithes,"['t', 'i', 't', '_', 'e', 's']","['a', 'r', 'n', 'o', 'l', 'c', 'd', 'u', 'g', 'p']",0,False -fabrics,"['_', 'a', '_', 'r', 'i', 'c', 's']","['e', 'n', 't', 'o', 'l', 'd', 'u', 'g', 'p', 'm']",0,False -liberalise,"['l', 'i', '_', 'e', 'r', 'a', 'l', 'i', 's', 'e']","['n', 't', 'o', 'c', 'd', 'u', 'g', 'p', 'm', 'h']",0,False -emitting,"['e', 'm', 'i', 't', 't', 'i', 'n', 'g']","['s', 'a', 'r', 'o', 'l', 'c', 'd', 'u', 'p']",1,True diff --git a/algorithms.html b/algorithms.html index 638d093..bbe92f1 100644 --- a/algorithms.html +++ b/algorithms.html @@ -411,19 +411,19 @@ Initial: ---- 0 | 1* | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... -|-|-|-|-|-|-|-|-|-|-|- -(0, 0, 0) | (1, 0, 0) | (0, 1, 0) | (0, 0, 0) | (0, 0, 0) | (0, 0, 1) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | ... +(0, 0, 0) | (1, 0, 0) | (0, 1, 0) | (1, 1, 0) | (0, 0, 0) | (0, 0, 1) | (1, 0, 1) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | ... -- ---- 0 | 1 | 2* | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... -|-|-|-|-|-|-|-|-|-|-|- -(0, 0, 0) | (1, 0, 0) | (0, 1, 0) | (1, 1, 0) | (0, 2, 0) | (0, 0, 1) | (0, 0, 0) | (0, 1, 1) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | ... +(0, 0, 0) | (1, 0, 0) | (0, 1, 0) | (1, 1, 0) | (0, 2, 0) | (0, 0, 1) | (1, 0, 1) | (0, 1, 1) | (0, 0, 0) | (0, 0, 0) | (0, 0, 0) | ... -- ---- 0 | 1 | 2 | 3* | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... -|-|-|-|-|-|-|-|-|-|-|- -(0, 0, 0) | (1, 0, 0) | (0, 1, 0) | (1, 1, 0) | (0, 2, 0) | (0, 0, 1) | (0, 0, 0) | (0, 1, 1) | (1, 1, 1) | (0, 0, 0) | (0, 0, 0) | ... +(0, 0, 0) | (1, 0, 0) | (0, 1, 0) | (1, 1, 0) | (0, 2, 0) | (0, 0, 1) | (1, 0, 1) | (0, 1, 1) | (1, 1, 1) | (0, 0, 0) | (0, 0, 0) | ... --- @@ -464,7 +464,7 @@ The computer would either answer "Yes," "No," or never stop working. This is the Halting problem. ```python -while i > 0: +while i != 0: print(i) i -= 1 ``` diff --git a/word_filter_comparison.ipynb b/word_filter_comparison.ipynb index 9f0374e..b96359e 100644 --- a/word_filter_comparison.ipynb +++ b/word_filter_comparison.ipynb @@ -1,7 +1,7 @@ { "metadata": { "name": "", - "signature": "sha256:79decad1a699da8d950a948a249c8270194d5a7efe1d66f65f37c997a74f5325" + "signature": "sha256:b1430467f492182774cf211bf9da55e45dbf53644a26cb4e401bed473b1551ed" }, "nbformat": 3, "nbformat_minor": 0, @@ -178,7 +178,7 @@ "\n", "Note the Pythonic use of \"truthiness\" values. If you try to take the Boolean value of a string, it evaluates as `False` if it's empty and `True` otherwise. Using \n", "\n", - "` if word == '':` \n", + "` if word != '':` \n", "\n", "in the first line is just as correct, but not as Pythonic." ]