X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=word_filter_comparison.ipynb;h=b96359ea2995273ade477d94119e9cb08fbaa550;hb=fc01177820fbcb4d4abba6afc772786f162b5b2e;hp=9f0374e2899199bed5b13764b660fd2892e85fb6;hpb=ab8bb0588b519e0d03ebda2466a5b26391725283;p=cas-master-teacher-training.git 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." ]