From 80123152c5db764747e3fbdbc6f383570e42ec36 Mon Sep 17 00:00:00 2001 From: Trevor Campbell Date: Wed, 30 Aug 2023 23:32:31 -0700 Subject: [PATCH] regenerate worksheets --- .../py_worksheet_classification1.ipynb | 616 +++++++------- .../py_worksheet_classification2.ipynb | 444 +++++----- .../py_worksheet_clustering.ipynb | 398 ++++----- .../py_worksheet_inference1.ipynb | 452 +++++----- .../py_worksheet_inference2.ipynb | 317 ++++--- py_worksheet_intro/py_worksheet_intro.ipynb | 210 ++--- .../py_worksheet_reading.ipynb | 654 +++++++------- .../py_worksheet_regression1.ipynb | 450 +++++----- .../py_worksheet_regression2.ipynb | 440 +++++----- .../py_worksheet_version_control.ipynb | 97 ++- py_worksheet_viz/py_worksheet_viz.ipynb | 804 +++++++++--------- .../py_worksheet_wrangling.ipynb | 464 +++++----- 12 files changed, 2661 insertions(+), 2685 deletions(-) diff --git a/py_worksheet_classification1/py_worksheet_classification1.ipynb b/py_worksheet_classification1/py_worksheet_classification1.ipynb index 803f430..822d4ff 100644 --- a/py_worksheet_classification1/py_worksheet_classification1.ipynb +++ b/py_worksheet_classification1/py_worksheet_classification1.ipynb @@ -129,7 +129,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "44f3d31e31a9251940ba8527c3e1df41", + "checksum": "4092c2196fe2bea1d7b662007f30ff29", "grade": true, "grade_id": "cell-5cb2c8e6177337fd", "locked": true, @@ -141,10 +141,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"20d86ca58f3a0202\").hexdigest() == \"e554c1c2e8bb55abc5bd563cb30237367c6ea4ad\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", - "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"20d86ca58f3a0202\").hexdigest() == \"09e25bb9250ebf8ad5779c8e16733c7a1b759b7f\", \"length of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"20d86ca58f3a0202\").hexdigest() == \"8893d76119a8ba1acdf927057ccb89373d34541e\", \"value of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"20d86ca58f3a0202\").hexdigest() == \"6c48fb16779ca88d0f4f6e7c95e712e8d9a1bde5\", \"correct string value of answer0_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"0922a816cf196633\").hexdigest() == \"7a7186fe1cf75dcd6de3adb41670f0725ba5325c\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", + "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"0922a816cf196633\").hexdigest() == \"42d268300fab3fd91faca73141d94be12d990d4d\", \"length of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"0922a816cf196633\").hexdigest() == \"c4290b936d27287c66cb04a4cfd5b270eea7be66\", \"value of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"0922a816cf196633\").hexdigest() == \"c577805e1b31a5a67ef1b3f2e13377d70511d06c\", \"correct string value of answer0_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -214,7 +214,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "cc57133ee0fbb711b41633b8f1a683ad", + "checksum": "1cad76525ab369bba6560ef17feac8bc", "grade": true, "grade_id": "cell-61c63c0827e2a73e", "locked": true, @@ -226,10 +226,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"23179909aec30293\").hexdigest() == \"e9e4075126d73ff4ff0bb632e3d3b18f57c33e74\", \"type of answer0_2 is not str. answer0_2 should be an str\"\n", - "assert sha1(str(len(answer0_2)).encode(\"utf-8\")+b\"23179909aec30293\").hexdigest() == \"fa97d800786c4b251a1211c0819b110dc2c0eb3e\", \"length of answer0_2 is not correct\"\n", - "assert sha1(str(answer0_2.lower()).encode(\"utf-8\")+b\"23179909aec30293\").hexdigest() == \"501ea0e1ebe78b4be49e442ad66c221769d733ca\", \"value of answer0_2 is not correct\"\n", - "assert sha1(str(answer0_2).encode(\"utf-8\")+b\"23179909aec30293\").hexdigest() == \"d5add81d55e61c21f8a4115790c0a0c36f0ac7f6\", \"correct string value of answer0_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"294ef113fd83ab9e\").hexdigest() == \"d52fa700a5d595bb563e0e6d8dbeded4fc435d6d\", \"type of answer0_2 is not str. answer0_2 should be an str\"\n", + "assert sha1(str(len(answer0_2)).encode(\"utf-8\")+b\"294ef113fd83ab9e\").hexdigest() == \"224cc912b59c462ab1a230069ee3b137f5845127\", \"length of answer0_2 is not correct\"\n", + "assert sha1(str(answer0_2.lower()).encode(\"utf-8\")+b\"294ef113fd83ab9e\").hexdigest() == \"162e498efe9cfe3cc9ab8195f434c10ea5c548bb\", \"value of answer0_2 is not correct\"\n", + "assert sha1(str(answer0_2).encode(\"utf-8\")+b\"294ef113fd83ab9e\").hexdigest() == \"ec5fbe2c6dd6097cfa08dd5a3dd4a4907ca8f4b4\", \"correct string value of answer0_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -290,7 +290,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "1a9f69d8c89d6cad28532c4550d044cf", + "checksum": "6e9264ebf17fdaad2f767597b7a8f2df", "grade": true, "grade_id": "cell-b7dada2851cb2d39", "locked": true, @@ -302,24 +302,24 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(cancer is None)).encode(\"utf-8\")+b\"3ca3428fc98bc5ae\").hexdigest() == \"56dba956d27a51924ca772034016adf0b7c54fee\", \"type of cancer is None is not bool. cancer is None should be a bool\"\n", - "assert sha1(str(cancer is None).encode(\"utf-8\")+b\"3ca3428fc98bc5ae\").hexdigest() == \"59d0d893d17f14cd620c4971a2c03bb3551efe90\", \"boolean value of cancer is None is not correct\"\n", + "assert sha1(str(type(cancer is None)).encode(\"utf-8\")+b\"3345d53c2493d8bc\").hexdigest() == \"7dead76496fa74b0076e4e8ba5e4299c332a17b5\", \"type of cancer is None is not bool. cancer is None should be a bool\"\n", + "assert sha1(str(cancer is None).encode(\"utf-8\")+b\"3345d53c2493d8bc\").hexdigest() == \"954aab458b59c3d2406aa623b7cbd1bae0a2cf60\", \"boolean value of cancer is None is not correct\"\n", "\n", - "assert sha1(str(type(cancer)).encode(\"utf-8\")+b\"8e7d5ea02fc0d355\").hexdigest() == \"f4fcc91f582bd52918fb2b28f2e33db07ff88f03\", \"type of type(cancer) is not correct\"\n", + "assert sha1(str(type(cancer)).encode(\"utf-8\")+b\"b35fba51e2036ef5\").hexdigest() == \"5adf2aa8a4f6cd0ba0a907d031eb893b6556d162\", \"type of type(cancer) is not correct\"\n", "\n", - "assert sha1(str(type(cancer.shape)).encode(\"utf-8\")+b\"4d1e81a6040d711c\").hexdigest() == \"50a2bb63023ef01d138bef5b9066d1db51585d18\", \"type of cancer.shape is not tuple. cancer.shape should be a tuple\"\n", - "assert sha1(str(len(cancer.shape)).encode(\"utf-8\")+b\"4d1e81a6040d711c\").hexdigest() == \"ee918c0f37a97518e830c146db043125c9cae7a0\", \"length of cancer.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, cancer.shape))).encode(\"utf-8\")+b\"4d1e81a6040d711c\").hexdigest() == \"aed5156f95e4006cc23e7a4435014d8e83d49c6c\", \"values of cancer.shape are not correct\"\n", - "assert sha1(str(cancer.shape).encode(\"utf-8\")+b\"4d1e81a6040d711c\").hexdigest() == \"2189062c4274f0e1847d0f43fdccb18458271fb4\", \"order of elements of cancer.shape is not correct\"\n", + "assert sha1(str(type(cancer.shape)).encode(\"utf-8\")+b\"5df59530f1b8c114\").hexdigest() == \"8ca5d074e209d153ba1ade68e78ff347e2b4eb2b\", \"type of cancer.shape is not tuple. cancer.shape should be a tuple\"\n", + "assert sha1(str(len(cancer.shape)).encode(\"utf-8\")+b\"5df59530f1b8c114\").hexdigest() == \"dc0eb374a2d5de61cbbc94bffcaab501c51d085d\", \"length of cancer.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, cancer.shape))).encode(\"utf-8\")+b\"5df59530f1b8c114\").hexdigest() == \"edc2b0d5ab522caefbb7e156b0a55dc0e7c003fb\", \"values of cancer.shape are not correct\"\n", + "assert sha1(str(cancer.shape).encode(\"utf-8\")+b\"5df59530f1b8c114\").hexdigest() == \"a59235a621dd8907bc1aeb444d503eac2b149688\", \"order of elements of cancer.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(cancer.Area))).encode(\"utf-8\")+b\"02ff8a00b8c829a4\").hexdigest() == \"69bbd530087777e40d920d3261250569c766a792\", \"type of sum(cancer.Area) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(cancer.Area), 2)).encode(\"utf-8\")+b\"02ff8a00b8c829a4\").hexdigest() == \"b557744aa2e0b503ec49f8b58c0ba5d30c0395c2\", \"value of sum(cancer.Area) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(cancer.Area))).encode(\"utf-8\")+b\"faff98a990582f3c\").hexdigest() == \"119fc937bc88ef6076993c5a3577af4c17bb5130\", \"type of sum(cancer.Area) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(cancer.Area), 2)).encode(\"utf-8\")+b\"faff98a990582f3c\").hexdigest() == \"aa7bd09472416b4719e3e4337e435ac4f59dd537\", \"value of sum(cancer.Area) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(cancer.columns.values)).encode(\"utf-8\")+b\"7c67e4225bada0a3\").hexdigest() == \"20b49a9ebf4aadadc9ff4ca4ca7271bfd3a9ea95\", \"type of cancer.columns.values is not correct\"\n", - "assert sha1(str(cancer.columns.values).encode(\"utf-8\")+b\"7c67e4225bada0a3\").hexdigest() == \"3e63a8947aac8a8dae54e6aea1abe6571db9f534\", \"value of cancer.columns.values is not correct\"\n", + "assert sha1(str(type(cancer.columns.values)).encode(\"utf-8\")+b\"48d6153fe52449fc\").hexdigest() == \"a40bb25cc12434cce5b768812d81e5609076abec\", \"type of cancer.columns.values is not correct\"\n", + "assert sha1(str(cancer.columns.values).encode(\"utf-8\")+b\"48d6153fe52449fc\").hexdigest() == \"975fcd0adee412d8a29e7f91cb61ec9924d89b3d\", \"value of cancer.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(cancer['Class'].dtype)).encode(\"utf-8\")+b\"0f8f7232fed1e195\").hexdigest() == \"14983f615aba6299e6a20bbfee4732218d4cb4f8\", \"type of cancer['Class'].dtype is not correct\"\n", - "assert sha1(str(cancer['Class'].dtype).encode(\"utf-8\")+b\"0f8f7232fed1e195\").hexdigest() == \"20eedfb763cd3653642979b4a15f0c57bce6da4a\", \"value of cancer['Class'].dtype is not correct\"\n", + "assert sha1(str(type(cancer['Class'].dtype)).encode(\"utf-8\")+b\"44a075b8fc578cf6\").hexdigest() == \"29ebae615e5458643c89b7cc233f044e060a432c\", \"type of cancer['Class'].dtype is not correct\"\n", + "assert sha1(str(cancer['Class'].dtype).encode(\"utf-8\")+b\"44a075b8fc578cf6\").hexdigest() == \"26c2bc6c5569cfd57d41ef97d72b1b0272fa940e\", \"value of cancer['Class'].dtype is not correct\"\n", "\n", "print('Success!')" ] @@ -377,7 +377,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e53caf217a5a73c150aa781e7bbb45fd", + "checksum": "4ca5dd10ac720c241738e85079207eb8", "grade": true, "grade_id": "cell-8c2ac2ec68bc2ef2", "locked": true, @@ -389,8 +389,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"80c4f03233b5e1fe\").hexdigest() == \"e2860d376d7eb33f063cd5e8deb1e053c97be26b\", \"type of answer1_1 is not bool. answer1_1 should be a bool\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"80c4f03233b5e1fe\").hexdigest() == \"6ffe9f83fd76a224e7f6a2b5b96d70293b202cff\", \"boolean value of answer1_1 is not correct\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"47e792ad3f733f74\").hexdigest() == \"b1b94a968686b1a6d222e3777769966cee244dfd\", \"type of answer1_1 is not bool. answer1_1 should be a bool\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"47e792ad3f733f74\").hexdigest() == \"a3b9cbd6c938b4a3b2ea589cba5285d780f03680\", \"boolean value of answer1_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -456,7 +456,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "dbb7ecafeac5733da7c063065f90f7cf", + "checksum": "23612a7eca993e27cf0e1711f9ce51ba", "grade": true, "grade_id": "cell-82ee9aaeac954391", "locked": true, @@ -468,35 +468,35 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(cancer_plot is None)).encode(\"utf-8\")+b\"301a5eeeb97c0bf5\").hexdigest() == \"5db3177c083b8561d8b717f90e8fa12f8af197f0\", \"type of cancer_plot is None is not bool. cancer_plot is None should be a bool\"\n", - "assert sha1(str(cancer_plot is None).encode(\"utf-8\")+b\"301a5eeeb97c0bf5\").hexdigest() == \"f5e1114c2c49aceba56ed072f2e80c8af6a0d2c0\", \"boolean value of cancer_plot is None is not correct\"\n", + "assert sha1(str(type(cancer_plot is None)).encode(\"utf-8\")+b\"c68156e9666a9559\").hexdigest() == \"1d718ed8dac5ad841fc42c61b440f2ed4943f2e0\", \"type of cancer_plot is None is not bool. cancer_plot is None should be a bool\"\n", + "assert sha1(str(cancer_plot is None).encode(\"utf-8\")+b\"c68156e9666a9559\").hexdigest() == \"50a6b81678e23768767853679282102a2165ae61\", \"boolean value of cancer_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(cancer_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"501ce732a9265354\").hexdigest() == \"3e82a534ba1441ef3aabea58fe1944c1d0f649d6\", \"type of cancer_plot.encoding.x['shorthand'] is not str. cancer_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(cancer_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"501ce732a9265354\").hexdigest() == \"9d82d99547f887956ce8eb1afbe7c96e79707f26\", \"length of cancer_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(cancer_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"501ce732a9265354\").hexdigest() == \"820bce34c3db7da6abf4cb915dcfad9925d991b0\", \"value of cancer_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(cancer_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"501ce732a9265354\").hexdigest() == \"57924648eeaed794c61a67c9a61f84700a6935be\", \"correct string value of cancer_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(cancer_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"b723dc42d985afb5\").hexdigest() == \"10dfe32c1229e6af78febea416eddb6ee80da9e9\", \"type of cancer_plot.encoding.x['shorthand'] is not str. cancer_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(cancer_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"b723dc42d985afb5\").hexdigest() == \"2b656fb988a8885e056107729ac5da56961a6d25\", \"length of cancer_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(cancer_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"b723dc42d985afb5\").hexdigest() == \"9ad4c536c4bff0e1d8810134224b2087f47c927a\", \"value of cancer_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(cancer_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"b723dc42d985afb5\").hexdigest() == \"41677e7c0bf534f46fd18eec1977c1285f94fc0d\", \"correct string value of cancer_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(cancer_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"340da00e7c7a59d0\").hexdigest() == \"8ab37953121c4ad3c6ef669860b3a7c6516fcf23\", \"type of cancer_plot.encoding.y['shorthand'] is not str. cancer_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(cancer_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"340da00e7c7a59d0\").hexdigest() == \"8516dc6f717cad7fcd7ce317027150b7aeaef1ce\", \"length of cancer_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(cancer_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"340da00e7c7a59d0\").hexdigest() == \"1f1ca247f5731105be3feab773ce9a3812207c3c\", \"value of cancer_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(cancer_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"340da00e7c7a59d0\").hexdigest() == \"0472710fb329aeae93ab295dbeb466bb45e9f176\", \"correct string value of cancer_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(cancer_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"13b66f7dd2b3128c\").hexdigest() == \"4e5506a4b09b38af366c6e6eaf51c402487da08e\", \"type of cancer_plot.encoding.y['shorthand'] is not str. cancer_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(cancer_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"13b66f7dd2b3128c\").hexdigest() == \"ecdbb2c253f76d9ded3e9fb606cfaff8654b9b3c\", \"length of cancer_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(cancer_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"13b66f7dd2b3128c\").hexdigest() == \"df57a9fe4c11f95e910c966a0f089724910316df\", \"value of cancer_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(cancer_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"13b66f7dd2b3128c\").hexdigest() == \"34fd7b476dffb451a664f2b81b861f5e8a81a81b\", \"correct string value of cancer_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(cancer_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"b8b2fbebc56d0b50\").hexdigest() == \"e0dc67d5ac956297c6bf3ae2ca634af92a5b9f53\", \"type of cancer_plot.encoding.color['shorthand'] is not str. cancer_plot.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(cancer_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"b8b2fbebc56d0b50\").hexdigest() == \"7728e74b7acf00873c9efa0ddd7d5bc8c67a7e3b\", \"length of cancer_plot.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(cancer_plot.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"b8b2fbebc56d0b50\").hexdigest() == \"b59b3498615f2a7c459df32a2de25640b4c68f11\", \"value of cancer_plot.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(cancer_plot.encoding.color['shorthand']).encode(\"utf-8\")+b\"b8b2fbebc56d0b50\").hexdigest() == \"d87a26154f26e1fdfd717b988b6d6fc2611e7992\", \"correct string value of cancer_plot.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(cancer_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"0add9a3b9dd8f509\").hexdigest() == \"ee35e5bbd8a16f85ba06b817338d0f5eb675d550\", \"type of cancer_plot.encoding.color['shorthand'] is not str. cancer_plot.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(cancer_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"0add9a3b9dd8f509\").hexdigest() == \"66d8b48ad8bca0ad669012143480bcffd10a4dc5\", \"length of cancer_plot.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(cancer_plot.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"0add9a3b9dd8f509\").hexdigest() == \"ae39e5cdbcf17509ad33debfa30c4326b5534bce\", \"value of cancer_plot.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(cancer_plot.encoding.color['shorthand']).encode(\"utf-8\")+b\"0add9a3b9dd8f509\").hexdigest() == \"1599e9f368d40a9346cc54a5bcf866e09ab7e39f\", \"correct string value of cancer_plot.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(cancer_plot.mark)).encode(\"utf-8\")+b\"a8f728f97612ae45\").hexdigest() == \"ea46de38ab5dd1207ed90ddec63771415b6ccd73\", \"type of cancer_plot.mark is not correct\"\n", - "assert sha1(str(cancer_plot.mark).encode(\"utf-8\")+b\"a8f728f97612ae45\").hexdigest() == \"8ae29155f850d7a1ab23c72af6b3a3915c26acea\", \"value of cancer_plot.mark is not correct\"\n", + "assert sha1(str(type(cancer_plot.mark)).encode(\"utf-8\")+b\"10b881dc82da953f\").hexdigest() == \"e870e4f4db2d928c1b66550a160ce69b0ffc1d5e\", \"type of cancer_plot.mark is not correct\"\n", + "assert sha1(str(cancer_plot.mark).encode(\"utf-8\")+b\"10b881dc82da953f\").hexdigest() == \"4b15ffbbfc6ccc1a282ccb26ca81c64f4ad01e86\", \"value of cancer_plot.mark is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(cancer_plot.encoding.color['title'], str))).encode(\"utf-8\")+b\"3266963d345ed4d4\").hexdigest() == \"0f1026bff69856c4d94b3870ed41eb8ad91b2028\", \"type of isinstance(cancer_plot.encoding.color['title'], str) is not bool. isinstance(cancer_plot.encoding.color['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(cancer_plot.encoding.color['title'], str)).encode(\"utf-8\")+b\"3266963d345ed4d4\").hexdigest() == \"bdad9548badee69b8a8911667b2f8b8d30d83b5a\", \"boolean value of isinstance(cancer_plot.encoding.color['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(cancer_plot.encoding.color['title'], str))).encode(\"utf-8\")+b\"b55706e808295ddd\").hexdigest() == \"1ef10d38a7189b3857ffc54ac10354434ef76ebe\", \"type of isinstance(cancer_plot.encoding.color['title'], str) is not bool. isinstance(cancer_plot.encoding.color['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(cancer_plot.encoding.color['title'], str)).encode(\"utf-8\")+b\"b55706e808295ddd\").hexdigest() == \"685c0e45cc17fba743f5530fa1e72bba07ff8012\", \"boolean value of isinstance(cancer_plot.encoding.color['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(cancer_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"c2dbf46e27e33191\").hexdigest() == \"29361cdac510c61853893f048613c285b3921822\", \"type of isinstance(cancer_plot.encoding.x['title'], str) is not bool. isinstance(cancer_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(cancer_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"c2dbf46e27e33191\").hexdigest() == \"45e6b66ce05f5ab205274196b475b2572aee4b44\", \"boolean value of isinstance(cancer_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(cancer_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"bab9a40ac336ce11\").hexdigest() == \"bfc0da5f5108797d6555f499d61ac3382f8ccd69\", \"type of isinstance(cancer_plot.encoding.x['title'], str) is not bool. isinstance(cancer_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(cancer_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"bab9a40ac336ce11\").hexdigest() == \"4a6c7a4869a4ada5504531acef499e985700063f\", \"boolean value of isinstance(cancer_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(cancer_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"9118fde5c0f8611a\").hexdigest() == \"4c38a807a234053ac234981680602eb38e66d176\", \"type of isinstance(cancer_plot.encoding.y['title'], str) is not bool. isinstance(cancer_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(cancer_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"9118fde5c0f8611a\").hexdigest() == \"490a56e62148ea3d26d786259833b6e92ec4a2cb\", \"boolean value of isinstance(cancer_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(cancer_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"79199b655fcc004b\").hexdigest() == \"9cf0401f8e1ef3d02937261c3801e1da9b946b7d\", \"type of isinstance(cancer_plot.encoding.y['title'], str) is not bool. isinstance(cancer_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(cancer_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"79199b655fcc004b\").hexdigest() == \"8bdc1b32ddbd41484a5b8c70c7aff6284b4d5290\", \"boolean value of isinstance(cancer_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -554,7 +554,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "cfa236806efb9e185fc4784fae829d27", + "checksum": "a1a81ca9b587a628540c55853aea766e", "grade": true, "grade_id": "cell-927ef1b1abe0452a", "locked": true, @@ -566,10 +566,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"96f8c508c9b9fafe\").hexdigest() == \"e730587e9fddcc745ce729b8aaf2fe0889991520\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", - "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"96f8c508c9b9fafe\").hexdigest() == \"aafed179d0bcdbb06ae1f1629cd4601ec2b12028\", \"length of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"96f8c508c9b9fafe\").hexdigest() == \"6ae04955c70e07753f0fb2b95cc85e9e7625e4d8\", \"value of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"96f8c508c9b9fafe\").hexdigest() == \"4b2ee2868a9383fa617d009b7c1b249617dcaf7f\", \"correct string value of answer1_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"31d6c4aa0e0193c0\").hexdigest() == \"34abf93d3b371e23ad1b6c05ffff99053e29a65d\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", + "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"31d6c4aa0e0193c0\").hexdigest() == \"21a94768e54ec4c3b846ec9145448cdba35bbc54\", \"length of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"31d6c4aa0e0193c0\").hexdigest() == \"2f262c00544da49ab5bce6f264c73b05707a11f1\", \"value of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"31d6c4aa0e0193c0\").hexdigest() == \"33a9af6268f7284cfe1f9710cd978ecba2c8faa0\", \"correct string value of answer1_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -656,7 +656,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c696369335abfddb517a8b7b494c21fd", + "checksum": "2c80ad383ce44a588a0e1b81ecc2e1fb", "grade": true, "grade_id": "cell-9117ab916552d6a6", "locked": true, @@ -668,17 +668,17 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(ax)).encode(\"utf-8\")+b\"6476d8f4c61d64e5\").hexdigest() == \"cf6df3dc1316b83e634a849fe1003f3869131218\", \"type of ax is not correct\"\n", - "assert sha1(str(ax).encode(\"utf-8\")+b\"6476d8f4c61d64e5\").hexdigest() == \"692cdf85aec6071f264314f8fbd28c0d75be5a70\", \"value of ax is not correct\"\n", + "assert sha1(str(type(ax)).encode(\"utf-8\")+b\"350984883bf7eb25\").hexdigest() == \"77d2f5bba8c94c0a281e8d145d2a48f493aa53f2\", \"type of ax is not correct\"\n", + "assert sha1(str(ax).encode(\"utf-8\")+b\"350984883bf7eb25\").hexdigest() == \"f6bddf3e5eadb5688750a34cd179a9e94af8dbd5\", \"value of ax is not correct\"\n", "\n", - "assert sha1(str(type(ay)).encode(\"utf-8\")+b\"5bff1d763ee8f8e9\").hexdigest() == \"bf627f32fb52e1e008561e307ef86d85fd09b2f4\", \"type of ay is not correct\"\n", - "assert sha1(str(ay).encode(\"utf-8\")+b\"5bff1d763ee8f8e9\").hexdigest() == \"12f50915b4065c392fac7b7e782a7cda1a01c07d\", \"value of ay is not correct\"\n", + "assert sha1(str(type(ay)).encode(\"utf-8\")+b\"645cae1877af771e\").hexdigest() == \"a8c66ea291a84661dba1d650d5ff267ed773a3da\", \"type of ay is not correct\"\n", + "assert sha1(str(ay).encode(\"utf-8\")+b\"645cae1877af771e\").hexdigest() == \"d39f3dbc9c4feb23a8d863c0b8bd28bbc8f02d06\", \"value of ay is not correct\"\n", "\n", - "assert sha1(str(type(bx)).encode(\"utf-8\")+b\"0511ff469bf675b5\").hexdigest() == \"f2ddedcef80ba2eab1c903808f0edf9e50a1f60d\", \"type of bx is not correct\"\n", - "assert sha1(str(bx).encode(\"utf-8\")+b\"0511ff469bf675b5\").hexdigest() == \"7806b5e890b2db37b9db7486c69da19bfb3f8daf\", \"value of bx is not correct\"\n", + "assert sha1(str(type(bx)).encode(\"utf-8\")+b\"dd07c863f264ab5c\").hexdigest() == \"d0c91f0d6049262650dbf97597508ab9572cc0c9\", \"type of bx is not correct\"\n", + "assert sha1(str(bx).encode(\"utf-8\")+b\"dd07c863f264ab5c\").hexdigest() == \"0e1b41dc0059fbd99fcf22de944fb325a5e4b099\", \"value of bx is not correct\"\n", "\n", - "assert sha1(str(type(by)).encode(\"utf-8\")+b\"f662f575df3a899a\").hexdigest() == \"20b556d4043d187f97249cdcf54fc566ef47c0b7\", \"type of by is not correct\"\n", - "assert sha1(str(by).encode(\"utf-8\")+b\"f662f575df3a899a\").hexdigest() == \"ac28690bc400be5942b4442685f05fa931d0bf2f\", \"value of by is not correct\"\n", + "assert sha1(str(type(by)).encode(\"utf-8\")+b\"31ae037efd3908cd\").hexdigest() == \"680f71b965a755f3760e6942416c07f95779fccc\", \"type of by is not correct\"\n", + "assert sha1(str(by).encode(\"utf-8\")+b\"31ae037efd3908cd\").hexdigest() == \"a1e2a6df19eb1970993763e9daeb868ddc142aac\", \"value of by is not correct\"\n", "\n", "print('Success!')" ] @@ -741,7 +741,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5d8150cfa8c80a84d6bd6bf3bdf8c19c", + "checksum": "c11b0c89e2ec556f4431ea0b68fde585", "grade": true, "grade_id": "cell-3d5f251a3d1cd4d4", "locked": true, @@ -753,8 +753,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_5)).encode(\"utf-8\")+b\"2d2839230fae86cb\").hexdigest() == \"b381d4c803aad1f15e8e6c19abcfd14cbfb9a09c\", \"type of answer1_5 is not correct\"\n", - "assert sha1(str(answer1_5).encode(\"utf-8\")+b\"2d2839230fae86cb\").hexdigest() == \"e285dacc0bf4a5b3b6f5755c4e000e80b627f325\", \"value of answer1_5 is not correct\"\n", + "assert sha1(str(type(answer1_5)).encode(\"utf-8\")+b\"dfe4868569a4a064\").hexdigest() == \"1980f143bbcb009f6f38283e491495712d4b3896\", \"type of answer1_5 is not correct\"\n", + "assert sha1(str(answer1_5).encode(\"utf-8\")+b\"dfe4868569a4a064\").hexdigest() == \"9993c9ddcf879707d33ddb3631f6d0ffddc07bc3\", \"value of answer1_5 is not correct\"\n", "\n", "print('Success!')" ] @@ -813,7 +813,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "98c620c16c11b1fab31fd19a4a8e0ec5", + "checksum": "f7cda03b5f5fd4174e5f91361c74eb09", "grade": true, "grade_id": "cell-4944fdeee6a1485f", "locked": true, @@ -825,11 +825,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(az)).encode(\"utf-8\")+b\"a3c67f23dff3ca05\").hexdigest() == \"bc85b67d76a5ac6f711204456b6cb9a1d523f32b\", \"type of az is not correct\"\n", - "assert sha1(str(az).encode(\"utf-8\")+b\"a3c67f23dff3ca05\").hexdigest() == \"70bfab63231590c6f067f3f6f2455e5769a5e2af\", \"value of az is not correct\"\n", + "assert sha1(str(type(az)).encode(\"utf-8\")+b\"0bc3057942d91fa8\").hexdigest() == \"8fcc9383ab6e619697382a63e13c1e423cd2a24c\", \"type of az is not correct\"\n", + "assert sha1(str(az).encode(\"utf-8\")+b\"0bc3057942d91fa8\").hexdigest() == \"73163dd5890cab75bc681517e063e726dc98b04e\", \"value of az is not correct\"\n", "\n", - "assert sha1(str(type(bz)).encode(\"utf-8\")+b\"b8f47306712dc484\").hexdigest() == \"2ce5462d140f788af0b4601402dbaca1b9ef13ab\", \"type of bz is not correct\"\n", - "assert sha1(str(bz).encode(\"utf-8\")+b\"b8f47306712dc484\").hexdigest() == \"4d8d0811c021095f3e1076b605d603ebe7a127fc\", \"value of bz is not correct\"\n", + "assert sha1(str(type(bz)).encode(\"utf-8\")+b\"ec6229535ca2e62b\").hexdigest() == \"4ed997edf32c603dd4d1eca97a26a113d1039b7f\", \"type of bz is not correct\"\n", + "assert sha1(str(bz).encode(\"utf-8\")+b\"ec6229535ca2e62b\").hexdigest() == \"95953c80f3d83d0c36c07f6d78a11c3bbd6e9f7b\", \"value of bz is not correct\"\n", "\n", "print('Success!')" ] @@ -888,7 +888,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "eea6a0a555d1a15eb82e9ead731e8a4a", + "checksum": "2f10657b16fde44d174d3a1d0989d16a", "grade": true, "grade_id": "cell-e5b8f9dc0531ad16", "locked": true, @@ -900,8 +900,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(round(answer1_7, 2))).encode(\"utf-8\")+b\"a9ce6ff4b8679411\").hexdigest() == \"7ae3c02bc43ff0484457e4451a4871e197fc1732\", \"type of round(answer1_7, 2) is not correct\"\n", - "assert sha1(str(round(answer1_7, 2)).encode(\"utf-8\")+b\"a9ce6ff4b8679411\").hexdigest() == \"7528e277ca6ec1865406b5de25083fed38afab61\", \"value of round(answer1_7, 2) is not correct\"\n", + "assert sha1(str(type(round(answer1_7, 2))).encode(\"utf-8\")+b\"ecddd317dba28bca\").hexdigest() == \"a2036c7fa281c9be6bca9f9a1c6012c79839c0d6\", \"type of round(answer1_7, 2) is not correct\"\n", + "assert sha1(str(round(answer1_7, 2)).encode(\"utf-8\")+b\"ecddd317dba28bca\").hexdigest() == \"e134a25a5a4a16afaf8cf82b7fa94697edfa0def\", \"value of round(answer1_7, 2) is not correct\"\n", "\n", "print('Success!')" ] @@ -968,7 +968,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0a1a6945815274ac77d514ce135ffdc7", + "checksum": "ff9236395b99712d7e37355ab7b1a04d", "grade": true, "grade_id": "cell-c20cf45fef3d389b", "locked": true, @@ -980,11 +980,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(round(sum(point_a), 2))).encode(\"utf-8\")+b\"18a3bf6138496759\").hexdigest() == \"e87cd8a3f78fd57f63a1b0b768f700da2501fa1e\", \"type of round(sum(point_a), 2) is not correct\"\n", - "assert sha1(str(round(sum(point_a), 2)).encode(\"utf-8\")+b\"18a3bf6138496759\").hexdigest() == \"52387dc82e7b5d5eabbad7db92671337368cb922\", \"value of round(sum(point_a), 2) is not correct\"\n", + "assert sha1(str(type(round(sum(point_a), 2))).encode(\"utf-8\")+b\"a59291c63648b5d5\").hexdigest() == \"73048805bb31ef97f846eb2f0ebc5b934a218519\", \"type of round(sum(point_a), 2) is not correct\"\n", + "assert sha1(str(round(sum(point_a), 2)).encode(\"utf-8\")+b\"a59291c63648b5d5\").hexdigest() == \"b7906f5275e57575a86b8a6ecbcc3f52419205dc\", \"value of round(sum(point_a), 2) is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(point_b), 2))).encode(\"utf-8\")+b\"7908f89ae4f03a1e\").hexdigest() == \"ff2ac988b47de0fbd04cb22533273a1cee0e22b6\", \"type of round(sum(point_b), 2) is not correct\"\n", - "assert sha1(str(round(sum(point_b), 2)).encode(\"utf-8\")+b\"7908f89ae4f03a1e\").hexdigest() == \"65e3b7d5c9dac9f6bc8222d4a7facd0aa08e5f49\", \"value of round(sum(point_b), 2) is not correct\"\n", + "assert sha1(str(type(round(sum(point_b), 2))).encode(\"utf-8\")+b\"18f2383163960665\").hexdigest() == \"feb551333906ed4bad1672fcb389950ff6ba1a81\", \"type of round(sum(point_b), 2) is not correct\"\n", + "assert sha1(str(round(sum(point_b), 2)).encode(\"utf-8\")+b\"18f2383163960665\").hexdigest() == \"1dcef47e5659027e457cfac45ed84fb45ebb17f4\", \"value of round(sum(point_b), 2) is not correct\"\n", "\n", "print('Success!')" ] @@ -1041,7 +1041,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7ce2f3ce7c22fce4584cb643f72d5307", + "checksum": "adb311b038aa6aaac8be2af5958716e4", "grade": true, "grade_id": "cell-fb099b82bbaac1f5", "locked": true, @@ -1053,8 +1053,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sum(dif_square))).encode(\"utf-8\")+b\"8b25b64120a6224c\").hexdigest() == \"b84ed3d38980cf4a017fc6c3f5d94e2ce8dc2658\", \"type of sum(dif_square) is not correct\"\n", - "assert sha1(str(sum(dif_square)).encode(\"utf-8\")+b\"8b25b64120a6224c\").hexdigest() == \"8cb226c0555e792fd240b0657fa4f6e9a49afad9\", \"value of sum(dif_square) is not correct\"\n", + "assert sha1(str(type(sum(dif_square))).encode(\"utf-8\")+b\"43547ef720487c14\").hexdigest() == \"e59bc16499d28470c94a4fe8f569968a7c3a4380\", \"type of sum(dif_square) is not correct\"\n", + "assert sha1(str(sum(dif_square)).encode(\"utf-8\")+b\"43547ef720487c14\").hexdigest() == \"f3845ec909a9f4a0270da3cfbcd36139f02da152\", \"value of sum(dif_square) is not correct\"\n", "\n", "print('Success!')" ] @@ -1113,7 +1113,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "81c92092ef25acbfdbeb4e01f67a565d", + "checksum": "2b4b603fc4e94364fe77661433727348", "grade": true, "grade_id": "cell-629beff90c931f51", "locked": true, @@ -1125,8 +1125,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(dif_sum)).encode(\"utf-8\")+b\"0be4a307d300f221\").hexdigest() == \"e3a29bb0a50d646c1ca21a732085cf01f13c078b\", \"type of dif_sum is not correct\"\n", - "assert sha1(str(dif_sum).encode(\"utf-8\")+b\"0be4a307d300f221\").hexdigest() == \"bdd41ae0be80b6c67abc8bf859749fc0ad8cb618\", \"value of dif_sum is not correct\"\n", + "assert sha1(str(type(dif_sum)).encode(\"utf-8\")+b\"a2f00a4de3d3eaf6\").hexdigest() == \"010668de05039ce5a12de5157d62ed17e46b86b4\", \"type of dif_sum is not correct\"\n", + "assert sha1(str(dif_sum).encode(\"utf-8\")+b\"a2f00a4de3d3eaf6\").hexdigest() == \"42c96c45a7682f183f0a27a24379af4961408537\", \"value of dif_sum is not correct\"\n", "\n", "print('Success!')" ] @@ -1183,7 +1183,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6ee3d3c47c14784f83735a6c15aa213c", + "checksum": "738459a28f79b8db76c4d8234d9d7d7b", "grade": true, "grade_id": "cell-d144868a6cbc8b3f", "locked": true, @@ -1195,8 +1195,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(root_dif_sum)).encode(\"utf-8\")+b\"4f844c00101d1e2e\").hexdigest() == \"ca34a5881aa6bd820ab9bb679372f6d95bc53fda\", \"type of root_dif_sum is not correct\"\n", - "assert sha1(str(root_dif_sum).encode(\"utf-8\")+b\"4f844c00101d1e2e\").hexdigest() == \"912269b7b5cccf17171fc41491233072d5a008d4\", \"value of root_dif_sum is not correct\"\n", + "assert sha1(str(type(root_dif_sum)).encode(\"utf-8\")+b\"464507cc52d4cc88\").hexdigest() == \"61a4238e63e64dfc2c41efbe53127e4d59654c6a\", \"type of root_dif_sum is not correct\"\n", + "assert sha1(str(root_dif_sum).encode(\"utf-8\")+b\"464507cc52d4cc88\").hexdigest() == \"5a56b33176c0c1573ea9ad2e49c4e1dc07cf87f7\", \"value of root_dif_sum is not correct\"\n", "\n", "print('Success!')" ] @@ -1261,7 +1261,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ace092a5cf84eff12d3cfff270100304", + "checksum": "137029f9d61e8572ec0a5636ccd5f027", "grade": true, "grade_id": "cell-657a6cc18a3bf8ce", "locked": true, @@ -1273,17 +1273,17 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(dist_cancer_two_rows[0, 0])).encode(\"utf-8\")+b\"8a331d5e3b3f11e2\").hexdigest() == \"72af7dbb517a9caa641d34182ccc7de3a0a6dfb1\", \"type of dist_cancer_two_rows[0, 0] is not correct\"\n", - "assert sha1(str(dist_cancer_two_rows[0, 0]).encode(\"utf-8\")+b\"8a331d5e3b3f11e2\").hexdigest() == \"63c7cf9eec5227d0f332487eee69c736022b8e0d\", \"value of dist_cancer_two_rows[0, 0] is not correct\"\n", + "assert sha1(str(type(dist_cancer_two_rows[0, 0])).encode(\"utf-8\")+b\"0f6be0e8648b9928\").hexdigest() == \"33287f775f6884d72f32046ca74ff6b0df65d03f\", \"type of dist_cancer_two_rows[0, 0] is not correct\"\n", + "assert sha1(str(dist_cancer_two_rows[0, 0]).encode(\"utf-8\")+b\"0f6be0e8648b9928\").hexdigest() == \"afa1938357948c19f60a1211d6db6268d92673a1\", \"value of dist_cancer_two_rows[0, 0] is not correct\"\n", "\n", - "assert sha1(str(type(dist_cancer_two_rows[0, 1])).encode(\"utf-8\")+b\"33924e04cb66c4b7\").hexdigest() == \"b62b4e7fa6274a69f05020845088a9e74653c711\", \"type of dist_cancer_two_rows[0, 1] is not correct\"\n", - "assert sha1(str(dist_cancer_two_rows[0, 1]).encode(\"utf-8\")+b\"33924e04cb66c4b7\").hexdigest() == \"d595e28baa6b0b4b085a1558d1b867c9590d2639\", \"value of dist_cancer_two_rows[0, 1] is not correct\"\n", + "assert sha1(str(type(dist_cancer_two_rows[0, 1])).encode(\"utf-8\")+b\"546887dd6e0d4a21\").hexdigest() == \"3933daf9b5940b42d2952804e28e267bc0b53b93\", \"type of dist_cancer_two_rows[0, 1] is not correct\"\n", + "assert sha1(str(dist_cancer_two_rows[0, 1]).encode(\"utf-8\")+b\"546887dd6e0d4a21\").hexdigest() == \"e7e1be552c69c541fcd9e24365397b255f535bf3\", \"value of dist_cancer_two_rows[0, 1] is not correct\"\n", "\n", - "assert sha1(str(type(dist_cancer_two_rows[1, 0])).encode(\"utf-8\")+b\"ee194ccb1fcb2439\").hexdigest() == \"0654dfd479d5f5ad9990a7bc47bf2f41f3bd92ec\", \"type of dist_cancer_two_rows[1, 0] is not correct\"\n", - "assert sha1(str(dist_cancer_two_rows[1, 0]).encode(\"utf-8\")+b\"ee194ccb1fcb2439\").hexdigest() == \"573526961afbdcc80c2ea7557b793b12a7820f4d\", \"value of dist_cancer_two_rows[1, 0] is not correct\"\n", + "assert sha1(str(type(dist_cancer_two_rows[1, 0])).encode(\"utf-8\")+b\"6f74c27b149d0d0d\").hexdigest() == \"6f14a8231431802784d66a8cba1087db70d2d5ef\", \"type of dist_cancer_two_rows[1, 0] is not correct\"\n", + "assert sha1(str(dist_cancer_two_rows[1, 0]).encode(\"utf-8\")+b\"6f74c27b149d0d0d\").hexdigest() == \"bc96591c9d8b3e2573c14ded58687e65460caa22\", \"value of dist_cancer_two_rows[1, 0] is not correct\"\n", "\n", - "assert sha1(str(type(dist_cancer_two_rows[1, 1])).encode(\"utf-8\")+b\"262b6ee5f5823324\").hexdigest() == \"a2e33c1770f846a4ae77e095a7dcc4005f872ba6\", \"type of dist_cancer_two_rows[1, 1] is not correct\"\n", - "assert sha1(str(dist_cancer_two_rows[1, 1]).encode(\"utf-8\")+b\"262b6ee5f5823324\").hexdigest() == \"a66eba80464e236b8157867e0d148d0c8e5c04a6\", \"value of dist_cancer_two_rows[1, 1] is not correct\"\n", + "assert sha1(str(type(dist_cancer_two_rows[1, 1])).encode(\"utf-8\")+b\"35651338e8717362\").hexdigest() == \"e3f354626a44e893ea9d8d9a3655aabba0c2b0b7\", \"type of dist_cancer_two_rows[1, 1] is not correct\"\n", + "assert sha1(str(dist_cancer_two_rows[1, 1]).encode(\"utf-8\")+b\"35651338e8717362\").hexdigest() == \"c9dc2f4bd88ea94149b198bca2837f190fa8cc8f\", \"value of dist_cancer_two_rows[1, 1] is not correct\"\n", "\n", "print('Success!')" ] @@ -1343,7 +1343,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3d815e9ce85100a5ebfeb3e845f6298f", + "checksum": "a541c10f352523e896447ff602c8dbd8", "grade": true, "grade_id": "cell-15ea031e7e016f14", "locked": true, @@ -1355,8 +1355,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_09_4)).encode(\"utf-8\")+b\"f4c65926d9c3ec9c\").hexdigest() == \"967b4f4749b8eeb2181ae6643de93c68a3bdb3fb\", \"type of answer1_09_4 is not bool. answer1_09_4 should be a bool\"\n", - "assert sha1(str(answer1_09_4).encode(\"utf-8\")+b\"f4c65926d9c3ec9c\").hexdigest() == \"ed3a8412af50fbb44817edd176c55bb6ce2a823d\", \"boolean value of answer1_09_4 is not correct\"\n", + "assert sha1(str(type(answer1_09_4)).encode(\"utf-8\")+b\"c504f1e2fd2e5074\").hexdigest() == \"f3f6af00499f5744d77703bffcc58ed57c4a0ebf\", \"type of answer1_09_4 is not bool. answer1_09_4 should be a bool\"\n", + "assert sha1(str(answer1_09_4).encode(\"utf-8\")+b\"c504f1e2fd2e5074\").hexdigest() == \"f835dab6742746098249e67ebf04fe96e82c8928\", \"boolean value of answer1_09_4 is not correct\"\n", "\n", "print('Success!')" ] @@ -1422,7 +1422,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "acb971d0830010aeefeb289f9c512d70", + "checksum": "c27615c092caa3e7e700e9d6b98ed96f", "grade": true, "grade_id": "cell-48197ca917cfaeb9", "locked": true, @@ -1435,24 +1435,24 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(small_sample is None)).encode(\"utf-8\")+b\"5eed605a1044edd0\").hexdigest() == \"7473b36b5a3f8973cc37ba997494975c4807aa03\", \"type of small_sample is None is not bool. small_sample is None should be a bool\"\n", - "assert sha1(str(small_sample is None).encode(\"utf-8\")+b\"5eed605a1044edd0\").hexdigest() == \"ccfe04d017c87432e7a057ba7d968cd870a9a6cb\", \"boolean value of small_sample is None is not correct\"\n", + "assert sha1(str(type(small_sample is None)).encode(\"utf-8\")+b\"f8a0c939c599c213\").hexdigest() == \"c2f54f99b118f2723a1788b158891e333b1a7e0e\", \"type of small_sample is None is not bool. small_sample is None should be a bool\"\n", + "assert sha1(str(small_sample is None).encode(\"utf-8\")+b\"f8a0c939c599c213\").hexdigest() == \"d80386be34bae3d6dede813efe18c1cb8c6272f7\", \"boolean value of small_sample is None is not correct\"\n", "\n", - "assert sha1(str(type(small_sample)).encode(\"utf-8\")+b\"30c94475159290a9\").hexdigest() == \"a030e28ff8a9a86243bdcbc0a5a523b79a57fba2\", \"type of type(small_sample) is not correct\"\n", + "assert sha1(str(type(small_sample)).encode(\"utf-8\")+b\"e0dfb2d53ffbda6b\").hexdigest() == \"4b61101d3e730c5b68960e7b7099bb0238dc9bd5\", \"type of type(small_sample) is not correct\"\n", "\n", - "assert sha1(str(type(small_sample.shape)).encode(\"utf-8\")+b\"d49b0a9e67106efe\").hexdigest() == \"2b88412f800e855d621e928319db6f27790bbcf4\", \"type of small_sample.shape is not tuple. small_sample.shape should be a tuple\"\n", - "assert sha1(str(len(small_sample.shape)).encode(\"utf-8\")+b\"d49b0a9e67106efe\").hexdigest() == \"96414c5218051f8d21b1edb6af3da2ec843ff73e\", \"length of small_sample.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, small_sample.shape))).encode(\"utf-8\")+b\"d49b0a9e67106efe\").hexdigest() == \"bc3d007e75fe931ddcb20e4c996538094fd73015\", \"values of small_sample.shape are not correct\"\n", - "assert sha1(str(small_sample.shape).encode(\"utf-8\")+b\"d49b0a9e67106efe\").hexdigest() == \"ca96bb2fba684326776cde425380de224c01f5b1\", \"order of elements of small_sample.shape is not correct\"\n", + "assert sha1(str(type(small_sample.shape)).encode(\"utf-8\")+b\"13098faa907155aa\").hexdigest() == \"75035a756f8f5d41398e8778b97388633d1bfaa6\", \"type of small_sample.shape is not tuple. small_sample.shape should be a tuple\"\n", + "assert sha1(str(len(small_sample.shape)).encode(\"utf-8\")+b\"13098faa907155aa\").hexdigest() == \"7ee6199946381c56adae0fa2b3f6f81b98aa0cc2\", \"length of small_sample.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, small_sample.shape))).encode(\"utf-8\")+b\"13098faa907155aa\").hexdigest() == \"285bba0a09e1b3c0a9e812371ab179c3be36ba6c\", \"values of small_sample.shape are not correct\"\n", + "assert sha1(str(small_sample.shape).encode(\"utf-8\")+b\"13098faa907155aa\").hexdigest() == \"4551f89efe9dddbf93ff6fdd3ec35c84abae4aee\", \"order of elements of small_sample.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"Symmetry\" in small_sample.columns)).encode(\"utf-8\")+b\"2476d4beb0814b34\").hexdigest() == \"9bf2c2d7a73373daa5e6e076cab63cfee8358151\", \"type of \\\"Symmetry\\\" in small_sample.columns is not bool. \\\"Symmetry\\\" in small_sample.columns should be a bool\"\n", - "assert sha1(str(\"Symmetry\" in small_sample.columns).encode(\"utf-8\")+b\"2476d4beb0814b34\").hexdigest() == \"9c6ab193cbb3b461a0ff466abf9a95b1ef498dcf\", \"boolean value of \\\"Symmetry\\\" in small_sample.columns is not correct\"\n", + "assert sha1(str(type(\"Symmetry\" in small_sample.columns)).encode(\"utf-8\")+b\"067008e0e1b9a645\").hexdigest() == \"1dbfe8ffb7672011936b03729675eeb163572236\", \"type of \\\"Symmetry\\\" in small_sample.columns is not bool. \\\"Symmetry\\\" in small_sample.columns should be a bool\"\n", + "assert sha1(str(\"Symmetry\" in small_sample.columns).encode(\"utf-8\")+b\"067008e0e1b9a645\").hexdigest() == \"f2b450f70a8a15d641a60fce8622b86ed3b53e45\", \"boolean value of \\\"Symmetry\\\" in small_sample.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"Radius\" in small_sample.columns)).encode(\"utf-8\")+b\"1a4d3e6f32434a9a\").hexdigest() == \"4908df0f87edb71ce3f3c718c5f3534ef900bfa7\", \"type of \\\"Radius\\\" in small_sample.columns is not bool. \\\"Radius\\\" in small_sample.columns should be a bool\"\n", - "assert sha1(str(\"Radius\" in small_sample.columns).encode(\"utf-8\")+b\"1a4d3e6f32434a9a\").hexdigest() == \"5ef0d669b373f483cbbf56a43f0a71c1ebfc0a47\", \"boolean value of \\\"Radius\\\" in small_sample.columns is not correct\"\n", + "assert sha1(str(type(\"Radius\" in small_sample.columns)).encode(\"utf-8\")+b\"3e22a2c2890e75fb\").hexdigest() == \"401e2d04ae8a0709d3eef22e0dfbc2ab916ae57d\", \"type of \\\"Radius\\\" in small_sample.columns is not bool. \\\"Radius\\\" in small_sample.columns should be a bool\"\n", + "assert sha1(str(\"Radius\" in small_sample.columns).encode(\"utf-8\")+b\"3e22a2c2890e75fb\").hexdigest() == \"83dd8009ea4955a26cf410117888fe9dd9185ac5\", \"boolean value of \\\"Radius\\\" in small_sample.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"Class\" in small_sample.columns)).encode(\"utf-8\")+b\"ef07e126f0aa32e2\").hexdigest() == \"9b4b61f9d2328e9ffa0ea244715d33b96df7cecb\", \"type of \\\"Class\\\" in small_sample.columns is not bool. \\\"Class\\\" in small_sample.columns should be a bool\"\n", - "assert sha1(str(\"Class\" in small_sample.columns).encode(\"utf-8\")+b\"ef07e126f0aa32e2\").hexdigest() == \"4dafa148ca1e78381e3ab92e7fea0ed147237a69\", \"boolean value of \\\"Class\\\" in small_sample.columns is not correct\"\n", + "assert sha1(str(type(\"Class\" in small_sample.columns)).encode(\"utf-8\")+b\"84e7776d3e64ffd3\").hexdigest() == \"bf155788fde591029d863a96c3640d814bab4d5a\", \"type of \\\"Class\\\" in small_sample.columns is not bool. \\\"Class\\\" in small_sample.columns should be a bool\"\n", + "assert sha1(str(\"Class\" in small_sample.columns).encode(\"utf-8\")+b\"84e7776d3e64ffd3\").hexdigest() == \"a7fab051a8d52005091db0add80cd6fa4d327917\", \"boolean value of \\\"Class\\\" in small_sample.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -1520,7 +1520,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "752922bda1303d9c3cd0091dce28734a", + "checksum": "03668440be48b407a766b2afd9b47bbb", "grade": true, "grade_id": "cell-c224b6ae53340848", "locked": true, @@ -1532,40 +1532,40 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(small_sample_plot is None)).encode(\"utf-8\")+b\"2fb88992577b55e4\").hexdigest() == \"96048847a45151bf910cbdc9aa65ebc6b235778f\", \"type of small_sample_plot is None is not bool. small_sample_plot is None should be a bool\"\n", - "assert sha1(str(small_sample_plot is None).encode(\"utf-8\")+b\"2fb88992577b55e4\").hexdigest() == \"6bcb0867908269a7bc4a72e5662fed76626bf1d4\", \"boolean value of small_sample_plot is None is not correct\"\n", + "assert sha1(str(type(small_sample_plot is None)).encode(\"utf-8\")+b\"78150ac68fcd8667\").hexdigest() == \"35ebff4db2972548ab42e6310df13fc58fb0caaf\", \"type of small_sample_plot is None is not bool. small_sample_plot is None should be a bool\"\n", + "assert sha1(str(small_sample_plot is None).encode(\"utf-8\")+b\"78150ac68fcd8667\").hexdigest() == \"4b2cb8d4d51797e41b3b86bc5ffebbdccc3fc534\", \"boolean value of small_sample_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(sum(small_sample_plot.data.Symmetry))).encode(\"utf-8\")+b\"fb0aabaec975614d\").hexdigest() == \"1d1cdebfd519e47dae53358e00e149bbda529baa\", \"type of sum(small_sample_plot.data.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(small_sample_plot.data.Symmetry), 2)).encode(\"utf-8\")+b\"fb0aabaec975614d\").hexdigest() == \"bec2cd5f80fad6fa333f1abe807118e8fb35285c\", \"value of sum(small_sample_plot.data.Symmetry) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(small_sample_plot.data.Symmetry))).encode(\"utf-8\")+b\"660c8d88d825df29\").hexdigest() == \"60ac348902f5046b527a1365c06940cbb8922284\", \"type of sum(small_sample_plot.data.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(small_sample_plot.data.Symmetry), 2)).encode(\"utf-8\")+b\"660c8d88d825df29\").hexdigest() == \"b5ebee3e76e8a7e947558283c639897995b50e32\", \"value of sum(small_sample_plot.data.Symmetry) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(small_sample_plot.mark)).encode(\"utf-8\")+b\"ccef36b7be6131c7\").hexdigest() == \"86f41467f2605a7aa6f59e134894ab63b49baff3\", \"type of small_sample_plot.mark is not str. small_sample_plot.mark should be an str\"\n", - "assert sha1(str(len(small_sample_plot.mark)).encode(\"utf-8\")+b\"ccef36b7be6131c7\").hexdigest() == \"d14eebb69055dcfc6c7790d13f11d40de0e08a25\", \"length of small_sample_plot.mark is not correct\"\n", - "assert sha1(str(small_sample_plot.mark.lower()).encode(\"utf-8\")+b\"ccef36b7be6131c7\").hexdigest() == \"d34d6bd3c2413e91f2db8d304bf4c1a5b627e399\", \"value of small_sample_plot.mark is not correct\"\n", - "assert sha1(str(small_sample_plot.mark).encode(\"utf-8\")+b\"ccef36b7be6131c7\").hexdigest() == \"d34d6bd3c2413e91f2db8d304bf4c1a5b627e399\", \"correct string value of small_sample_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(small_sample_plot.mark)).encode(\"utf-8\")+b\"d1fa06f135c2f859\").hexdigest() == \"d1d567b12ca7f77b00bae67b718d77163be6acb9\", \"type of small_sample_plot.mark is not str. small_sample_plot.mark should be an str\"\n", + "assert sha1(str(len(small_sample_plot.mark)).encode(\"utf-8\")+b\"d1fa06f135c2f859\").hexdigest() == \"feb199f58baf5d1b511751811c3d717d7a1bacb4\", \"length of small_sample_plot.mark is not correct\"\n", + "assert sha1(str(small_sample_plot.mark.lower()).encode(\"utf-8\")+b\"d1fa06f135c2f859\").hexdigest() == \"29d409db8567e1c77f5510e95558014f9fb94285\", \"value of small_sample_plot.mark is not correct\"\n", + "assert sha1(str(small_sample_plot.mark).encode(\"utf-8\")+b\"d1fa06f135c2f859\").hexdigest() == \"29d409db8567e1c77f5510e95558014f9fb94285\", \"correct string value of small_sample_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(small_sample_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"555b58adf05e5180\").hexdigest() == \"8ff88aecaaf2fcc2faaab8c57023517d5a894ffe\", \"type of small_sample_plot.encoding.color['shorthand'] is not str. small_sample_plot.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(small_sample_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"555b58adf05e5180\").hexdigest() == \"85db948b9bddf70222aad8785ed6cc5cb0b90056\", \"length of small_sample_plot.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(small_sample_plot.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"555b58adf05e5180\").hexdigest() == \"aba16970fffa847e6c0ba7838893ef7d91077740\", \"value of small_sample_plot.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(small_sample_plot.encoding.color['shorthand']).encode(\"utf-8\")+b\"555b58adf05e5180\").hexdigest() == \"057504c9f60313d642ee15f14311d7861e7f3fe4\", \"correct string value of small_sample_plot.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(small_sample_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"b01a46f746b8cdbf\").hexdigest() == \"79a740bacf0da66828426c60882ed31acc0e7b1f\", \"type of small_sample_plot.encoding.color['shorthand'] is not str. small_sample_plot.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(small_sample_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"b01a46f746b8cdbf\").hexdigest() == \"267d534f42308f8d0900d0718b02dc0d5039c065\", \"length of small_sample_plot.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(small_sample_plot.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"b01a46f746b8cdbf\").hexdigest() == \"93c0be0eeab0bb3114a3f5d1fee1f40ba7b1af7b\", \"value of small_sample_plot.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(small_sample_plot.encoding.color['shorthand']).encode(\"utf-8\")+b\"b01a46f746b8cdbf\").hexdigest() == \"8c7e3eb118fe4b5d14b933b471ea64d4b1954e30\", \"correct string value of small_sample_plot.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(small_sample_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ff17209be04402a0\").hexdigest() == \"bbc93c9977d6f9a5432bc4fdb1032ff598195ab6\", \"type of small_sample_plot.encoding.x['shorthand'] is not str. small_sample_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(small_sample_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ff17209be04402a0\").hexdigest() == \"99423ccda2e84c5211f9b4e1de25ac2d624ea040\", \"length of small_sample_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(small_sample_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"ff17209be04402a0\").hexdigest() == \"355aef1c8d216e20f15461d1b776c2138323b9c1\", \"value of small_sample_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(small_sample_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"ff17209be04402a0\").hexdigest() == \"28d51f9f8b5b48c4149c6f2febd6be372434cd33\", \"correct string value of small_sample_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(small_sample_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"5ffee55317901fb5\").hexdigest() == \"0c3147fd6f5cc58d0a8df4c46837d5828ab213fc\", \"type of small_sample_plot.encoding.x['shorthand'] is not str. small_sample_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(small_sample_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"5ffee55317901fb5\").hexdigest() == \"1ae8d080b44c84a2c5b1a764563e4aa88a5c5561\", \"length of small_sample_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(small_sample_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"5ffee55317901fb5\").hexdigest() == \"205844d9f49897ca4516d034be9b945f62742613\", \"value of small_sample_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(small_sample_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"5ffee55317901fb5\").hexdigest() == \"f223a3cb7928bb6595585f49746031726e893336\", \"correct string value of small_sample_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(small_sample_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a8d820f48ac11b9e\").hexdigest() == \"2cfc3fae9e9a4a6f21d137161f1f3b934c4e0f26\", \"type of small_sample_plot.encoding.y['shorthand'] is not str. small_sample_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(small_sample_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a8d820f48ac11b9e\").hexdigest() == \"c184f84c75e8a57b7cdb4effd56bf7346c8ca9e8\", \"length of small_sample_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(small_sample_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"a8d820f48ac11b9e\").hexdigest() == \"f372af99b0527b1aa2f39b06238638e6ec1cb749\", \"value of small_sample_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(small_sample_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"a8d820f48ac11b9e\").hexdigest() == \"c5629b84e9c3cc9a26104c7cc0b7b370117408e7\", \"correct string value of small_sample_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(small_sample_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"07eded4a2d1e5530\").hexdigest() == \"9e0472a9f384af80df0251bea47220c1a8f93006\", \"type of small_sample_plot.encoding.y['shorthand'] is not str. small_sample_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(small_sample_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"07eded4a2d1e5530\").hexdigest() == \"6a2a2ede8534a14be265231a9d015bf62d8dcbce\", \"length of small_sample_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(small_sample_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"07eded4a2d1e5530\").hexdigest() == \"fd2cedd3b132e2eb820c193e5aa2e3f3359968d5\", \"value of small_sample_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(small_sample_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"07eded4a2d1e5530\").hexdigest() == \"e85de9a68545bb16b8b7efee601bc4ccca6c6a56\", \"correct string value of small_sample_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(small_sample_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"90613bf45fad7b7f\").hexdigest() == \"0934f49b0e604b0b1ea06259ea99c294d267b47a\", \"type of isinstance(small_sample_plot.encoding.x['title'], str) is not bool. isinstance(small_sample_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(small_sample_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"90613bf45fad7b7f\").hexdigest() == \"42762b7308aac01724f2c28e046a21f94df50482\", \"boolean value of isinstance(small_sample_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(small_sample_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"a27f59cf45d3d99c\").hexdigest() == \"c18dfd7b0b908f9c4a7d608cc0fef52587398bce\", \"type of isinstance(small_sample_plot.encoding.x['title'], str) is not bool. isinstance(small_sample_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(small_sample_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"a27f59cf45d3d99c\").hexdigest() == \"64a1c96c70fc8dc9d0edf1a677082ad84ee9c4b0\", \"boolean value of isinstance(small_sample_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(small_sample_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"890615714c6e2558\").hexdigest() == \"49981bacf9239c42a7facef6d444b393c6c5f4d7\", \"type of isinstance(small_sample_plot.encoding.y['title'], str) is not bool. isinstance(small_sample_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(small_sample_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"890615714c6e2558\").hexdigest() == \"f5579154baa44334ce2c65ca0bf316dafd39ecf8\", \"boolean value of isinstance(small_sample_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(small_sample_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"c72622c7e7894118\").hexdigest() == \"4dd96231b2c674b49cbf45d2d581cb1c78af4562\", \"type of isinstance(small_sample_plot.encoding.y['title'], str) is not bool. isinstance(small_sample_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(small_sample_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"c72622c7e7894118\").hexdigest() == \"464a81eb3be94f71331ce0a7eb6fe8fac0dd47b7\", \"boolean value of isinstance(small_sample_plot.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(small_sample_plot.encoding.color['title'], str))).encode(\"utf-8\")+b\"455aa4cc162909dc\").hexdigest() == \"921977479931264a3ab89ff43c5df7f56f4343cd\", \"type of isinstance(small_sample_plot.encoding.color['title'], str) is not bool. isinstance(small_sample_plot.encoding.color['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(small_sample_plot.encoding.color['title'], str)).encode(\"utf-8\")+b\"455aa4cc162909dc\").hexdigest() == \"0c8cb4d24b95260489df2d013569a2f88ed9c3d7\", \"boolean value of isinstance(small_sample_plot.encoding.color['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(small_sample_plot.encoding.color['title'], str))).encode(\"utf-8\")+b\"562c978cec8b204b\").hexdigest() == \"06cc44d0c4c517d42022062545b96cc1f9140d4c\", \"type of isinstance(small_sample_plot.encoding.color['title'], str) is not bool. isinstance(small_sample_plot.encoding.color['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(small_sample_plot.encoding.color['title'], str)).encode(\"utf-8\")+b\"562c978cec8b204b\").hexdigest() == \"71af9ffd426cc0449d408c40d1311545f1b4e4f2\", \"boolean value of isinstance(small_sample_plot.encoding.color['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1629,7 +1629,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "29fbb29c672a1c09999347f471ea66a4", + "checksum": "c5fbd287c24ae8ea862aa9be602aa076", "grade": true, "grade_id": "cell-136ec7a4a7af2698", "locked": true, @@ -1641,26 +1641,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(updated_sample is None)).encode(\"utf-8\")+b\"1d6e4d4f076972eb\").hexdigest() == \"33657d227c2eb6d1df4e9abbb60a042b7fa73f28\", \"type of updated_sample is None is not bool. updated_sample is None should be a bool\"\n", - "assert sha1(str(updated_sample is None).encode(\"utf-8\")+b\"1d6e4d4f076972eb\").hexdigest() == \"7b05ecc0caa12f512fbec556eb2b180190eca83e\", \"boolean value of updated_sample is None is not correct\"\n", + "assert sha1(str(type(updated_sample is None)).encode(\"utf-8\")+b\"b87f9fffa76a078e\").hexdigest() == \"3b440d13f0632d48cd6fa0ec1070b527692756a0\", \"type of updated_sample is None is not bool. updated_sample is None should be a bool\"\n", + "assert sha1(str(updated_sample is None).encode(\"utf-8\")+b\"b87f9fffa76a078e\").hexdigest() == \"2e16cfdaca5a7281f8133e51cdf8f92b215b973b\", \"boolean value of updated_sample is None is not correct\"\n", "\n", - "assert sha1(str(type(updated_sample)).encode(\"utf-8\")+b\"f9ffcbaa07bdc093\").hexdigest() == \"9c9e152236f5eeb1ba8acd8f68028f3ccc0b78b6\", \"type of type(updated_sample) is not correct\"\n", + "assert sha1(str(type(updated_sample)).encode(\"utf-8\")+b\"14c7c93f5334aec0\").hexdigest() == \"1bbd0731017ed3dd662e955957099973c9db49b5\", \"type of type(updated_sample) is not correct\"\n", "\n", - "assert sha1(str(type(updated_sample.Class[5])).encode(\"utf-8\")+b\"1c06cb5fbb0abfab\").hexdigest() == \"2ec9d031784a0f9fd25601f1574171b979b8df91\", \"type of updated_sample.Class[5] is not str. updated_sample.Class[5] should be an str\"\n", - "assert sha1(str(len(updated_sample.Class[5])).encode(\"utf-8\")+b\"1c06cb5fbb0abfab\").hexdigest() == \"4246ec7a0de7664657b5a77333a953bc9267e25c\", \"length of updated_sample.Class[5] is not correct\"\n", - "assert sha1(str(updated_sample.Class[5].lower()).encode(\"utf-8\")+b\"1c06cb5fbb0abfab\").hexdigest() == \"1136f372795c2cc9b95fd42e4909d3456d510028\", \"value of updated_sample.Class[5] is not correct\"\n", - "assert sha1(str(updated_sample.Class[5]).encode(\"utf-8\")+b\"1c06cb5fbb0abfab\").hexdigest() == \"1136f372795c2cc9b95fd42e4909d3456d510028\", \"correct string value of updated_sample.Class[5] but incorrect case of letters\"\n", + "assert sha1(str(type(updated_sample.Class[5])).encode(\"utf-8\")+b\"9f5e51c66d646e1f\").hexdigest() == \"22a173f8bde3ef610ea30b34ff55dc27b14a311d\", \"type of updated_sample.Class[5] is not str. updated_sample.Class[5] should be an str\"\n", + "assert sha1(str(len(updated_sample.Class[5])).encode(\"utf-8\")+b\"9f5e51c66d646e1f\").hexdigest() == \"ba795dab8cbdca71be8ec0db2eeaafa240796465\", \"length of updated_sample.Class[5] is not correct\"\n", + "assert sha1(str(updated_sample.Class[5].lower()).encode(\"utf-8\")+b\"9f5e51c66d646e1f\").hexdigest() == \"eaa8a80d1ee18c18885e981943aba4907534bd48\", \"value of updated_sample.Class[5] is not correct\"\n", + "assert sha1(str(updated_sample.Class[5]).encode(\"utf-8\")+b\"9f5e51c66d646e1f\").hexdigest() == \"eaa8a80d1ee18c18885e981943aba4907534bd48\", \"correct string value of updated_sample.Class[5] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(updated_sample.shape)).encode(\"utf-8\")+b\"5b6d754dad298436\").hexdigest() == \"b11f1c9672ca0e141a75c7af7422374c6a681ec2\", \"type of updated_sample.shape is not tuple. updated_sample.shape should be a tuple\"\n", - "assert sha1(str(len(updated_sample.shape)).encode(\"utf-8\")+b\"5b6d754dad298436\").hexdigest() == \"e2e80663c1f2b876aa9e4c4a032ec668da449724\", \"length of updated_sample.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, updated_sample.shape))).encode(\"utf-8\")+b\"5b6d754dad298436\").hexdigest() == \"42c1bec82b6aa03f5d735578aa3282ab8375de41\", \"values of updated_sample.shape are not correct\"\n", - "assert sha1(str(updated_sample.shape).encode(\"utf-8\")+b\"5b6d754dad298436\").hexdigest() == \"821c12cb65793d6e222fe4c03649ee24951264da\", \"order of elements of updated_sample.shape is not correct\"\n", + "assert sha1(str(type(updated_sample.shape)).encode(\"utf-8\")+b\"9ef5dc780ea68165\").hexdigest() == \"848d04e9f453e71c27508e1d6c2bbd066a6f68d2\", \"type of updated_sample.shape is not tuple. updated_sample.shape should be a tuple\"\n", + "assert sha1(str(len(updated_sample.shape)).encode(\"utf-8\")+b\"9ef5dc780ea68165\").hexdigest() == \"ad741f60d42a5fbd7326beab62d726ba7e1c5778\", \"length of updated_sample.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, updated_sample.shape))).encode(\"utf-8\")+b\"9ef5dc780ea68165\").hexdigest() == \"fd9791e35f5dac904291a1588197e140c5c02cc6\", \"values of updated_sample.shape are not correct\"\n", + "assert sha1(str(updated_sample.shape).encode(\"utf-8\")+b\"9ef5dc780ea68165\").hexdigest() == \"6b6a17121164f6ffc58821fa32fc0e92b75681c4\", \"order of elements of updated_sample.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(updated_sample.Radius))).encode(\"utf-8\")+b\"8a4b2368ff83377a\").hexdigest() == \"e52658044ceef2ddf17e2f09f72149d8aa797f4b\", \"type of sum(updated_sample.Radius) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(updated_sample.Radius), 2)).encode(\"utf-8\")+b\"8a4b2368ff83377a\").hexdigest() == \"e9625dd39e9f9be43fdbaffda2c5c772816cdb90\", \"value of sum(updated_sample.Radius) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(updated_sample.Radius))).encode(\"utf-8\")+b\"6e5ed160fdbcb30b\").hexdigest() == \"4c4ad4480b5332a130538b1a8619692a4054388d\", \"type of sum(updated_sample.Radius) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(updated_sample.Radius), 2)).encode(\"utf-8\")+b\"6e5ed160fdbcb30b\").hexdigest() == \"2094b7f4c2c87a3402640c49c1f91473cb424bc7\", \"value of sum(updated_sample.Radius) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(updated_sample.Symmetry))).encode(\"utf-8\")+b\"cf5f0f72d5314679\").hexdigest() == \"6ccf1effb5018cc5be07e2705cedc3122aabd56f\", \"type of sum(updated_sample.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(updated_sample.Symmetry), 2)).encode(\"utf-8\")+b\"cf5f0f72d5314679\").hexdigest() == \"06a2c3efbbc7c6763aceb5de02132b55b0531389\", \"value of sum(updated_sample.Symmetry) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(updated_sample.Symmetry))).encode(\"utf-8\")+b\"39f16cb4eede5076\").hexdigest() == \"71fa607cc3f52e2430caf50185a37809b67e5964\", \"type of sum(updated_sample.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(updated_sample.Symmetry), 2)).encode(\"utf-8\")+b\"39f16cb4eede5076\").hexdigest() == \"1ec9817830cac2804dad451e4fe9d167230ecec9\", \"value of sum(updated_sample.Symmetry) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1722,7 +1722,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "585eba350005c16b1321b5083cfc4571", + "checksum": "ba23362eef82c2034375981f71562bf7", "grade": true, "grade_id": "cell-a8cd3d77bfcea0b0", "locked": true, @@ -1734,27 +1734,27 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(dist_matrix is None)).encode(\"utf-8\")+b\"c23dd61c7a1d8336\").hexdigest() == \"4366b9a2f412e76e78c1e7a4017c6f0dbba6733b\", \"type of dist_matrix is None is not bool. dist_matrix is None should be a bool\"\n", - "assert sha1(str(dist_matrix is None).encode(\"utf-8\")+b\"c23dd61c7a1d8336\").hexdigest() == \"45fabbd4c717bd4fc5197b66717b1fed80b238f3\", \"boolean value of dist_matrix is None is not correct\"\n", + "assert sha1(str(type(dist_matrix is None)).encode(\"utf-8\")+b\"09334fbb8b4119cf\").hexdigest() == \"e1a9748fea222d6cff35677851c848dd61c237db\", \"type of dist_matrix is None is not bool. dist_matrix is None should be a bool\"\n", + "assert sha1(str(dist_matrix is None).encode(\"utf-8\")+b\"09334fbb8b4119cf\").hexdigest() == \"d6bb9f04436ce753f37eb4fdcd9fe2b47e72daa5\", \"boolean value of dist_matrix is None is not correct\"\n", "\n", - "assert sha1(str(type(dist_matrix)).encode(\"utf-8\")+b\"a667436a557d6bbf\").hexdigest() == \"7d5f93828ca9d5fe0739353753ee30d0a41875aa\", \"type of type(dist_matrix) is not correct\"\n", + "assert sha1(str(type(dist_matrix)).encode(\"utf-8\")+b\"31c81951d0934643\").hexdigest() == \"ace9c89e31883dbc601dd7f03ec43b0aea4fc593\", \"type of type(dist_matrix) is not correct\"\n", "\n", - "assert sha1(str(type(dist_matrix.shape)).encode(\"utf-8\")+b\"a539c749d6735278\").hexdigest() == \"49a4994aabecb0b23d7cfe8bcd584ffb95cefcb5\", \"type of dist_matrix.shape is not tuple. dist_matrix.shape should be a tuple\"\n", - "assert sha1(str(len(dist_matrix.shape)).encode(\"utf-8\")+b\"a539c749d6735278\").hexdigest() == \"2e0c37a802a2c7429d5bbc456e11f67d167d5238\", \"length of dist_matrix.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, dist_matrix.shape))).encode(\"utf-8\")+b\"a539c749d6735278\").hexdigest() == \"b4332eb7d05f32f8e25af7d3528a84cf76b63a76\", \"values of dist_matrix.shape are not correct\"\n", - "assert sha1(str(dist_matrix.shape).encode(\"utf-8\")+b\"a539c749d6735278\").hexdigest() == \"ebba1cbeccc28ebc99792dd27690207e1b5e902d\", \"order of elements of dist_matrix.shape is not correct\"\n", + "assert sha1(str(type(dist_matrix.shape)).encode(\"utf-8\")+b\"7173b67f29c40c21\").hexdigest() == \"d183ad8941ca1b099b8ccde12a1bbd9cdb828525\", \"type of dist_matrix.shape is not tuple. dist_matrix.shape should be a tuple\"\n", + "assert sha1(str(len(dist_matrix.shape)).encode(\"utf-8\")+b\"7173b67f29c40c21\").hexdigest() == \"a05cc9cd373c43847e41843aa21c36d2f8ae68c6\", \"length of dist_matrix.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, dist_matrix.shape))).encode(\"utf-8\")+b\"7173b67f29c40c21\").hexdigest() == \"c48854e2027660707dc5029dca38f67552d93392\", \"values of dist_matrix.shape are not correct\"\n", + "assert sha1(str(dist_matrix.shape).encode(\"utf-8\")+b\"7173b67f29c40c21\").hexdigest() == \"953b25b6d9dd95327e29ae1c1ff90d08c2e52c7d\", \"order of elements of dist_matrix.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(dist_matrix.iloc[0]))).encode(\"utf-8\")+b\"f00eb7c213719082\").hexdigest() == \"0d40b14ad45bc3022f5257f516caad58ce7461eb\", \"type of sum(dist_matrix.iloc[0]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(dist_matrix.iloc[0]), 2)).encode(\"utf-8\")+b\"f00eb7c213719082\").hexdigest() == \"15f57ccca6c1aabb0799ce5debd9ecdede06ab02\", \"value of sum(dist_matrix.iloc[0]) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(dist_matrix.iloc[0]))).encode(\"utf-8\")+b\"28ec6ae118431279\").hexdigest() == \"51f88702fb604a70bba9a991a996da38ab5443b2\", \"type of sum(dist_matrix.iloc[0]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(dist_matrix.iloc[0]), 2)).encode(\"utf-8\")+b\"28ec6ae118431279\").hexdigest() == \"3802d973d0ff7de969d20ca4812c98531bae7c8e\", \"value of sum(dist_matrix.iloc[0]) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(dist_matrix.iloc[1]))).encode(\"utf-8\")+b\"1fe16a66dc153c72\").hexdigest() == \"7488fc0ef4272327c5f8aeb3ad516c9d0683b071\", \"type of sum(dist_matrix.iloc[1]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(dist_matrix.iloc[1]), 2)).encode(\"utf-8\")+b\"1fe16a66dc153c72\").hexdigest() == \"9daaddf6860acaacad477971b6e0c19f7fca7b04\", \"value of sum(dist_matrix.iloc[1]) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(dist_matrix.iloc[1]))).encode(\"utf-8\")+b\"e937ee92e10d9f05\").hexdigest() == \"01d553ea33678cce11a53627bbdd4068d78fd2f8\", \"type of sum(dist_matrix.iloc[1]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(dist_matrix.iloc[1]), 2)).encode(\"utf-8\")+b\"e937ee92e10d9f05\").hexdigest() == \"3c3141fc0711e5f47bf2660cbc0b84c620e7e42c\", \"value of sum(dist_matrix.iloc[1]) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(dist_matrix.iloc[4]))).encode(\"utf-8\")+b\"5a34f71a3f2cc329\").hexdigest() == \"4d91a2d0af1b1e5c8732f655fc0520bb337df9e2\", \"type of sum(dist_matrix.iloc[4]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(dist_matrix.iloc[4]), 2)).encode(\"utf-8\")+b\"5a34f71a3f2cc329\").hexdigest() == \"5d907888382136ebc359de2729c79aef80bf7877\", \"value of sum(dist_matrix.iloc[4]) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(dist_matrix.iloc[4]))).encode(\"utf-8\")+b\"185cd7e990bd0f45\").hexdigest() == \"520393bd775c1d5c0a0c7db6c5906c982e2fab5a\", \"type of sum(dist_matrix.iloc[4]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(dist_matrix.iloc[4]), 2)).encode(\"utf-8\")+b\"185cd7e990bd0f45\").hexdigest() == \"4b23a7bfa116fe447d6f27dec29e2481a08001c1\", \"value of sum(dist_matrix.iloc[4]) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(dist_matrix.iloc[5]))).encode(\"utf-8\")+b\"806b606d559a7571\").hexdigest() == \"f73d1b681364a161256f56a0a2c9321dbbb1e1a7\", \"type of sum(dist_matrix.iloc[5]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(dist_matrix.iloc[5]), 2)).encode(\"utf-8\")+b\"806b606d559a7571\").hexdigest() == \"e259fa97d1515bdfa6021c7cae03c56f3c3c1a2f\", \"value of sum(dist_matrix.iloc[5]) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(dist_matrix.iloc[5]))).encode(\"utf-8\")+b\"7c66c4c43edc6793\").hexdigest() == \"df4770327ce1ae53acadebb1d99fb3ef6bbfde6c\", \"type of sum(dist_matrix.iloc[5]) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(dist_matrix.iloc[5]), 2)).encode(\"utf-8\")+b\"7c66c4c43edc6793\").hexdigest() == \"cd176dd33fbeac0b414794082f5c422d380f6c2b\", \"value of sum(dist_matrix.iloc[5]) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1816,7 +1816,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "28a89e4a8ba228f8a23693dc1fe6c1f9", + "checksum": "21ff71e2d9d7f085664ac14708562e1e", "grade": true, "grade_id": "cell-371a2959d06316e2", "locked": true, @@ -1828,8 +1828,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"72de121a4494051d\").hexdigest() == \"737d2ca3fbe0ef343d03400b7ab7f47673431a9d\", \"type of answer2_3 is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"72de121a4494051d\").hexdigest() == \"e1f4ef17a78cf714020c08e3513a6c44d1188b2f\", \"value of answer2_3 is not correct\"\n", + "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"ac79f11262afc8ec\").hexdigest() == \"a6f41123d087ff5ce9b5b3b6ea7c80021da0c6b7\", \"type of answer2_3 is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"ac79f11262afc8ec\").hexdigest() == \"d2209bd659f0ac5301c3029ada55710cbe57dda7\", \"value of answer2_3 is not correct\"\n", "\n", "print('Success!')" ] @@ -1887,7 +1887,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "9a36fa465bfd0da5487e18555ee9d560", + "checksum": "4d395cdc7d2a682654493f6847294cd0", "grade": true, "grade_id": "cell-bf715d3502c96d7e", "locked": true, @@ -1899,10 +1899,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_4)).encode(\"utf-8\")+b\"0c704a7ef3bc4f23\").hexdigest() == \"a3397fd4a84e06c977b37092de15685d510f85c1\", \"type of answer2_4 is not str. answer2_4 should be an str\"\n", - "assert sha1(str(len(answer2_4)).encode(\"utf-8\")+b\"0c704a7ef3bc4f23\").hexdigest() == \"6961339ab135f0511e1eddbeba9315c2d1e5507d\", \"length of answer2_4 is not correct\"\n", - "assert sha1(str(answer2_4.lower()).encode(\"utf-8\")+b\"0c704a7ef3bc4f23\").hexdigest() == \"d5aea46d8cf550da52ca83120480058904a93254\", \"value of answer2_4 is not correct\"\n", - "assert sha1(str(answer2_4).encode(\"utf-8\")+b\"0c704a7ef3bc4f23\").hexdigest() == \"5bd4eadb32675066f0f53fdae5dd5db3d889ae02\", \"correct string value of answer2_4 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_4)).encode(\"utf-8\")+b\"52023d14a47a9ea4\").hexdigest() == \"ea1e2969a2634ffdefde49b16e260aa2b8ff739d\", \"type of answer2_4 is not str. answer2_4 should be an str\"\n", + "assert sha1(str(len(answer2_4)).encode(\"utf-8\")+b\"52023d14a47a9ea4\").hexdigest() == \"d6c1ea6d7b5d167423b0bd1087b6285ad91ce518\", \"length of answer2_4 is not correct\"\n", + "assert sha1(str(answer2_4.lower()).encode(\"utf-8\")+b\"52023d14a47a9ea4\").hexdigest() == \"800fbf361cd5a8d4f90a71f888e0f94f55b25a3c\", \"value of answer2_4 is not correct\"\n", + "assert sha1(str(answer2_4).encode(\"utf-8\")+b\"52023d14a47a9ea4\").hexdigest() == \"7e616a50e279bac96ffaefba5a0b00eca89bd639\", \"correct string value of answer2_4 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1968,7 +1968,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "fecb03ff696f3cad05411f43009985a1", + "checksum": "845e5649afabf4fb17624a4983bb1fa1", "grade": true, "grade_id": "cell-377f6fc0e8af55a9", "locked": true, @@ -1980,10 +1980,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_5)).encode(\"utf-8\")+b\"7d4656f45ea2b0c7\").hexdigest() == \"65042c3095eb1ac9a428e955c23256c495b96509\", \"type of answer2_5 is not str. answer2_5 should be an str\"\n", - "assert sha1(str(len(answer2_5)).encode(\"utf-8\")+b\"7d4656f45ea2b0c7\").hexdigest() == \"baa43a0655a217211dcd9d74a0a09770596e1f5b\", \"length of answer2_5 is not correct\"\n", - "assert sha1(str(answer2_5.lower()).encode(\"utf-8\")+b\"7d4656f45ea2b0c7\").hexdigest() == \"1eb9a50b5788378ea74b5353d9414562c1ffb1f5\", \"value of answer2_5 is not correct\"\n", - "assert sha1(str(answer2_5).encode(\"utf-8\")+b\"7d4656f45ea2b0c7\").hexdigest() == \"279ae08811e47c686ba641da17d2abf0c781723d\", \"correct string value of answer2_5 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_5)).encode(\"utf-8\")+b\"13edee2d960886ca\").hexdigest() == \"bd9afbe299fb2039ae153d5dc9d0cf4fd71e29ca\", \"type of answer2_5 is not str. answer2_5 should be an str\"\n", + "assert sha1(str(len(answer2_5)).encode(\"utf-8\")+b\"13edee2d960886ca\").hexdigest() == \"7067fdc350c70e87d9bd3876e88c3c27f5f34543\", \"length of answer2_5 is not correct\"\n", + "assert sha1(str(answer2_5.lower()).encode(\"utf-8\")+b\"13edee2d960886ca\").hexdigest() == \"5b69ef5a51e74350aa1a63da70d661bbe5de2931\", \"value of answer2_5 is not correct\"\n", + "assert sha1(str(answer2_5).encode(\"utf-8\")+b\"13edee2d960886ca\").hexdigest() == \"fc088971811449ec2d13c79a82963bc107f54cce\", \"correct string value of answer2_5 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2041,7 +2041,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7d1e66d3973eb28ab25a3fb34b7a62c1", + "checksum": "c458d8c94bdad1c30bc0a952b2b4b588", "grade": true, "grade_id": "cell-2a8fd7a3457fb02a", "locked": true, @@ -2053,10 +2053,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"471d3e965329c7ea\").hexdigest() == \"1b046ba63839f15d605e94a5002fcc6f8c980bb1\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", - "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"471d3e965329c7ea\").hexdigest() == \"0098e5cfb2db0e13e18677e35d3012139192a3f1\", \"length of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"471d3e965329c7ea\").hexdigest() == \"d62cee4bcb114eaefcf3cd4d6e6117e5bf76449c\", \"value of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"471d3e965329c7ea\").hexdigest() == \"ad2a976f32db397d9d22518d454fd227fde8de10\", \"correct string value of answer2_6 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"9355780c1b7ed976\").hexdigest() == \"1f2251a1bbaa86f89b2dfc54f01b3baf1caf5507\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", + "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"9355780c1b7ed976\").hexdigest() == \"ff28f011dc040f105cd96380a3f3a777e68be412\", \"length of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"9355780c1b7ed976\").hexdigest() == \"60b7ce7671576b608bda567b7839797bc53df4c3\", \"value of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"9355780c1b7ed976\").hexdigest() == \"44701250f76783d2f48125b56f407e5d0c2b5909\", \"correct string value of answer2_6 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2114,7 +2114,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7e331f738bbe2f4d4066f1f9ad1473f0", + "checksum": "9fa2f0a592ff507c0ea45259c124c4a4", "grade": true, "grade_id": "cell-067dc96bdc43046c", "locked": true, @@ -2126,10 +2126,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_7)).encode(\"utf-8\")+b\"5bf4499ce0e3bd8d\").hexdigest() == \"6c96be631c14537115db01b9f4064ed80c0dbdf4\", \"type of answer2_7 is not str. answer2_7 should be an str\"\n", - "assert sha1(str(len(answer2_7)).encode(\"utf-8\")+b\"5bf4499ce0e3bd8d\").hexdigest() == \"d4547a58e8f47a9fe9367965c636bd95e88e3adb\", \"length of answer2_7 is not correct\"\n", - "assert sha1(str(answer2_7.lower()).encode(\"utf-8\")+b\"5bf4499ce0e3bd8d\").hexdigest() == \"790bc8dde04f8b159c417780b00e3578cb48a46a\", \"value of answer2_7 is not correct\"\n", - "assert sha1(str(answer2_7).encode(\"utf-8\")+b\"5bf4499ce0e3bd8d\").hexdigest() == \"790bc8dde04f8b159c417780b00e3578cb48a46a\", \"correct string value of answer2_7 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_7)).encode(\"utf-8\")+b\"f5c97bd490a76695\").hexdigest() == \"d45603d07e08add222fcff2fade55f622fb88b0b\", \"type of answer2_7 is not str. answer2_7 should be an str\"\n", + "assert sha1(str(len(answer2_7)).encode(\"utf-8\")+b\"f5c97bd490a76695\").hexdigest() == \"de24194f1ce13b69d158dee2315ae1e82919d50a\", \"length of answer2_7 is not correct\"\n", + "assert sha1(str(answer2_7.lower()).encode(\"utf-8\")+b\"f5c97bd490a76695\").hexdigest() == \"e6f3c12893dcbc709595f809630c6ae1810dec1c\", \"value of answer2_7 is not correct\"\n", + "assert sha1(str(answer2_7).encode(\"utf-8\")+b\"f5c97bd490a76695\").hexdigest() == \"e6f3c12893dcbc709595f809630c6ae1810dec1c\", \"correct string value of answer2_7 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2238,7 +2238,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e836038b6056300058bede0b4a8bed7e", + "checksum": "93494df1011263e417a3fc47e18927f8", "grade": true, "grade_id": "cell-685a4e4330f23a90", "locked": true, @@ -2250,16 +2250,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_spec is None)).encode(\"utf-8\")+b\"8cf23bb6396cd042\").hexdigest() == \"ef9a4ac28ed98333e3dd0be69d0fbb305f14f2b3\", \"type of knn_spec is None is not bool. knn_spec is None should be a bool\"\n", - "assert sha1(str(knn_spec is None).encode(\"utf-8\")+b\"8cf23bb6396cd042\").hexdigest() == \"8685b81dc73779e0e337c53ffe9526bc76159167\", \"boolean value of knn_spec is None is not correct\"\n", + "assert sha1(str(type(knn_spec is None)).encode(\"utf-8\")+b\"59b5ca95ca461ed7\").hexdigest() == \"8fcd86e8245321a29f425394fb42ec199638f756\", \"type of knn_spec is None is not bool. knn_spec is None should be a bool\"\n", + "assert sha1(str(knn_spec is None).encode(\"utf-8\")+b\"59b5ca95ca461ed7\").hexdigest() == \"59be28fb621fa0665728329335fb64f9cee3b58c\", \"boolean value of knn_spec is None is not correct\"\n", "\n", - "assert sha1(str(type(knn_spec.n_neighbors)).encode(\"utf-8\")+b\"b0cf8b886fa89316\").hexdigest() == \"dd0bfc604d1e8af1e2f074d5866b7baf2c60326a\", \"type of knn_spec.n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(knn_spec.n_neighbors).encode(\"utf-8\")+b\"b0cf8b886fa89316\").hexdigest() == \"7d1f1435eda831c4b686559541645a08c02af572\", \"value of knn_spec.n_neighbors is not correct\"\n", + "assert sha1(str(type(knn_spec.n_neighbors)).encode(\"utf-8\")+b\"2490056517d0398f\").hexdigest() == \"ce3485dff53b472b5eb15c6f800ccfb64d158319\", \"type of knn_spec.n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(knn_spec.n_neighbors).encode(\"utf-8\")+b\"2490056517d0398f\").hexdigest() == \"a629a2b496bc6cb4d67e20bde52f7b05856664af\", \"value of knn_spec.n_neighbors is not correct\"\n", "\n", - "assert sha1(str(type(knn_spec.algorithm)).encode(\"utf-8\")+b\"b85ff604728ad5ac\").hexdigest() == \"2ef667b29b320b446cd09b33c995224ecedc36e0\", \"type of knn_spec.algorithm is not str. knn_spec.algorithm should be an str\"\n", - "assert sha1(str(len(knn_spec.algorithm)).encode(\"utf-8\")+b\"b85ff604728ad5ac\").hexdigest() == \"0ecc1fe20fa170a49fafe49fc680275cb978fbd4\", \"length of knn_spec.algorithm is not correct\"\n", - "assert sha1(str(knn_spec.algorithm.lower()).encode(\"utf-8\")+b\"b85ff604728ad5ac\").hexdigest() == \"f67ca9a03fa8a208f79b7cb57178907ea0939d97\", \"value of knn_spec.algorithm is not correct\"\n", - "assert sha1(str(knn_spec.algorithm).encode(\"utf-8\")+b\"b85ff604728ad5ac\").hexdigest() == \"f67ca9a03fa8a208f79b7cb57178907ea0939d97\", \"correct string value of knn_spec.algorithm but incorrect case of letters\"\n", + "assert sha1(str(type(knn_spec.algorithm)).encode(\"utf-8\")+b\"ae4813992b08fa51\").hexdigest() == \"f1272247d9022ea5b2a4bef1cb7d7146bbefcb76\", \"type of knn_spec.algorithm is not str. knn_spec.algorithm should be an str\"\n", + "assert sha1(str(len(knn_spec.algorithm)).encode(\"utf-8\")+b\"ae4813992b08fa51\").hexdigest() == \"0b85084c5b209b84ce58e350210f6f2dcba5596a\", \"length of knn_spec.algorithm is not correct\"\n", + "assert sha1(str(knn_spec.algorithm.lower()).encode(\"utf-8\")+b\"ae4813992b08fa51\").hexdigest() == \"45639c5b8d2bc186846bc976b4848c5bf804360b\", \"value of knn_spec.algorithm is not correct\"\n", + "assert sha1(str(knn_spec.algorithm).encode(\"utf-8\")+b\"ae4813992b08fa51\").hexdigest() == \"45639c5b8d2bc186846bc976b4848c5bf804360b\", \"correct string value of knn_spec.algorithm but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2320,7 +2320,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e47a043223c4912b9d26a551dacf03b1", + "checksum": "f10b9f6c56d8ed2eebc29ddc30d82ab5", "grade": true, "grade_id": "cell-f99ed1dee272d06a", "locked": true, @@ -2332,36 +2332,36 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_fit is None)).encode(\"utf-8\")+b\"a6cce66644077895\").hexdigest() == \"4dafd473af89553abd3b7103b7878e406379fb3f\", \"type of knn_fit is None is not bool. knn_fit is None should be a bool\"\n", - "assert sha1(str(knn_fit is None).encode(\"utf-8\")+b\"a6cce66644077895\").hexdigest() == \"e871ef49f1286832f336a1d405acccc5801c92ae\", \"boolean value of knn_fit is None is not correct\"\n", + "assert sha1(str(type(knn_fit is None)).encode(\"utf-8\")+b\"0d144c682ca9ee59\").hexdigest() == \"eb14afcf2f290fcfba0b4546dbb14a058b64a9af\", \"type of knn_fit is None is not bool. knn_fit is None should be a bool\"\n", + "assert sha1(str(knn_fit is None).encode(\"utf-8\")+b\"0d144c682ca9ee59\").hexdigest() == \"206b31bb8495ad5aa145013df2c7ce87133c28dc\", \"boolean value of knn_fit is None is not correct\"\n", "\n", - "assert sha1(str(type(type(knn_fit))).encode(\"utf-8\")+b\"91ccb6b721191661\").hexdigest() == \"5518ee3a87dcd52e150888ee106f7e79a55a0d67\", \"type of type(knn_fit) is not correct\"\n", - "assert sha1(str(type(knn_fit)).encode(\"utf-8\")+b\"91ccb6b721191661\").hexdigest() == \"8234681cefd1320cd4f680a1e79234fb2b22e5c6\", \"value of type(knn_fit) is not correct\"\n", + "assert sha1(str(type(type(knn_fit))).encode(\"utf-8\")+b\"e6e4f32ce7c8781b\").hexdigest() == \"10c8ad09e24c85c72b18f8a21077240b60c7e41b\", \"type of type(knn_fit) is not correct\"\n", + "assert sha1(str(type(knn_fit)).encode(\"utf-8\")+b\"e6e4f32ce7c8781b\").hexdigest() == \"7200c6361c5ca1b9d19e28dd47b9bfc32dab1300\", \"value of type(knn_fit) is not correct\"\n", "\n", - "assert sha1(str(type(knn_fit.classes_)).encode(\"utf-8\")+b\"c33c1e0b78de5ac5\").hexdigest() == \"c2714947bf0d8ade77b3bda13128a370054fe6ba\", \"type of knn_fit.classes_ is not correct\"\n", - "assert sha1(str(knn_fit.classes_).encode(\"utf-8\")+b\"c33c1e0b78de5ac5\").hexdigest() == \"a97a52598c21fd028381293899c3d4e664f515c3\", \"value of knn_fit.classes_ is not correct\"\n", + "assert sha1(str(type(knn_fit.classes_)).encode(\"utf-8\")+b\"15f37663b41bebb4\").hexdigest() == \"33c537c8b3791080d08378af69bcb157c1bce04a\", \"type of knn_fit.classes_ is not correct\"\n", + "assert sha1(str(knn_fit.classes_).encode(\"utf-8\")+b\"15f37663b41bebb4\").hexdigest() == \"5efe58dd3c6fdeae14a37af0ff0e2deceb5e7d50\", \"value of knn_fit.classes_ is not correct\"\n", "\n", - "assert sha1(str(type(knn_fit.effective_metric_)).encode(\"utf-8\")+b\"601f9136a7f89aa1\").hexdigest() == \"70d042271907fa295e57a6c627f66e4d7f380a58\", \"type of knn_fit.effective_metric_ is not str. knn_fit.effective_metric_ should be an str\"\n", - "assert sha1(str(len(knn_fit.effective_metric_)).encode(\"utf-8\")+b\"601f9136a7f89aa1\").hexdigest() == \"cb3a69a99d930c6d7cc8abb2547ef619e314fe9b\", \"length of knn_fit.effective_metric_ is not correct\"\n", - "assert sha1(str(knn_fit.effective_metric_.lower()).encode(\"utf-8\")+b\"601f9136a7f89aa1\").hexdigest() == \"6a1c3c00650b049b66af247fe00583b8c7e79d98\", \"value of knn_fit.effective_metric_ is not correct\"\n", - "assert sha1(str(knn_fit.effective_metric_).encode(\"utf-8\")+b\"601f9136a7f89aa1\").hexdigest() == \"6a1c3c00650b049b66af247fe00583b8c7e79d98\", \"correct string value of knn_fit.effective_metric_ but incorrect case of letters\"\n", + "assert sha1(str(type(knn_fit.effective_metric_)).encode(\"utf-8\")+b\"5a392e71762c14bd\").hexdigest() == \"e2b6d61489d8aeab98594fed13143caba47ff815\", \"type of knn_fit.effective_metric_ is not str. knn_fit.effective_metric_ should be an str\"\n", + "assert sha1(str(len(knn_fit.effective_metric_)).encode(\"utf-8\")+b\"5a392e71762c14bd\").hexdigest() == \"fe1c2e5ec56b5cd08f338eb3748e649f287518b0\", \"length of knn_fit.effective_metric_ is not correct\"\n", + "assert sha1(str(knn_fit.effective_metric_.lower()).encode(\"utf-8\")+b\"5a392e71762c14bd\").hexdigest() == \"51284b4b45f37b8bc64aa4229e93674989792b6c\", \"value of knn_fit.effective_metric_ is not correct\"\n", + "assert sha1(str(knn_fit.effective_metric_).encode(\"utf-8\")+b\"5a392e71762c14bd\").hexdigest() == \"51284b4b45f37b8bc64aa4229e93674989792b6c\", \"correct string value of knn_fit.effective_metric_ but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(knn_fit.n_features_in_)).encode(\"utf-8\")+b\"70e2fe5338133020\").hexdigest() == \"5cf68e7a3f5b4ee661101347a6616c65ff13b860\", \"type of knn_fit.n_features_in_ is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(knn_fit.n_features_in_).encode(\"utf-8\")+b\"70e2fe5338133020\").hexdigest() == \"4a89e3589f1322937fe2c5e9eb02a076effd9ad8\", \"value of knn_fit.n_features_in_ is not correct\"\n", + "assert sha1(str(type(knn_fit.n_features_in_)).encode(\"utf-8\")+b\"f8c892bf034159ed\").hexdigest() == \"5f44359b80be7f488918fc333dbfbdb938982a67\", \"type of knn_fit.n_features_in_ is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(knn_fit.n_features_in_).encode(\"utf-8\")+b\"f8c892bf034159ed\").hexdigest() == \"784d85c02fa36d3002a07f331f3548b608295969\", \"value of knn_fit.n_features_in_ is not correct\"\n", "\n", - "assert sha1(str(type(X.columns.values)).encode(\"utf-8\")+b\"51494cedc13d1f8b\").hexdigest() == \"6b698fa9d01b2674952139664d5120fc14771ac5\", \"type of X.columns.values is not correct\"\n", - "assert sha1(str(X.columns.values).encode(\"utf-8\")+b\"51494cedc13d1f8b\").hexdigest() == \"e95a13bbfa1818bb3ad8eaeb2653814c62acfaa5\", \"value of X.columns.values is not correct\"\n", + "assert sha1(str(type(X.columns.values)).encode(\"utf-8\")+b\"1fc655a29096e480\").hexdigest() == \"c7dd41a77bb83e7f5679cdb2edcdb608d13075b0\", \"type of X.columns.values is not correct\"\n", + "assert sha1(str(X.columns.values).encode(\"utf-8\")+b\"1fc655a29096e480\").hexdigest() == \"3782356f3cfc197d71f99ddb001615d327db0ec9\", \"value of X.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(y.name)).encode(\"utf-8\")+b\"187937a5d2e9e933\").hexdigest() == \"9b9d8aa38e381affb5bc1742a1962e714b543a15\", \"type of y.name is not str. y.name should be an str\"\n", - "assert sha1(str(len(y.name)).encode(\"utf-8\")+b\"187937a5d2e9e933\").hexdigest() == \"af700d091598dfbebe685cf685cf1feeb3b379ff\", \"length of y.name is not correct\"\n", - "assert sha1(str(y.name.lower()).encode(\"utf-8\")+b\"187937a5d2e9e933\").hexdigest() == \"ac5c64da52f7d093de32da05cbdaeb4ad3e7eca0\", \"value of y.name is not correct\"\n", - "assert sha1(str(y.name).encode(\"utf-8\")+b\"187937a5d2e9e933\").hexdigest() == \"7ba5bf2497c384b97621c71d5ae981f39115f6ad\", \"correct string value of y.name but incorrect case of letters\"\n", + "assert sha1(str(type(y.name)).encode(\"utf-8\")+b\"0aecc345bf240ecd\").hexdigest() == \"acb0183863b27b3384cbf29daef3010dbe01b8ed\", \"type of y.name is not str. y.name should be an str\"\n", + "assert sha1(str(len(y.name)).encode(\"utf-8\")+b\"0aecc345bf240ecd\").hexdigest() == \"17fd1d71da0b024459484422aca34a2a1083e041\", \"length of y.name is not correct\"\n", + "assert sha1(str(y.name.lower()).encode(\"utf-8\")+b\"0aecc345bf240ecd\").hexdigest() == \"11615b32315f7dc738b4bd2a693d1411ce1f9b49\", \"value of y.name is not correct\"\n", + "assert sha1(str(y.name).encode(\"utf-8\")+b\"0aecc345bf240ecd\").hexdigest() == \"754d30a23808f985bf4a6fa1e2827fa3150a88a4\", \"correct string value of y.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sum(X.Symmetry))).encode(\"utf-8\")+b\"eb1409e943774ab4\").hexdigest() == \"37b85ed972c48b397371157b67b7d9d7a64fe70d\", \"type of sum(X.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(X.Symmetry), 2)).encode(\"utf-8\")+b\"eb1409e943774ab4\").hexdigest() == \"34a6f545e0664ca9e05842b3d6b481f393e00758\", \"value of sum(X.Symmetry) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(X.Symmetry))).encode(\"utf-8\")+b\"22f8306a324a08d1\").hexdigest() == \"3fcede9e0c48d8011d693e9245686c61b43a87a4\", \"type of sum(X.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(X.Symmetry), 2)).encode(\"utf-8\")+b\"22f8306a324a08d1\").hexdigest() == \"a325eb25dbe4d341d231d757bca56c7cc9aa14f0\", \"value of sum(X.Symmetry) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(X.Radius))).encode(\"utf-8\")+b\"0b522d766fc8495b\").hexdigest() == \"a06359f1eee9ee1499c2993047d18e798db750d5\", \"type of sum(X.Radius) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(X.Radius), 2)).encode(\"utf-8\")+b\"0b522d766fc8495b\").hexdigest() == \"b60d7def311aa7e1577328701b031308e98defc7\", \"value of sum(X.Radius) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(X.Radius))).encode(\"utf-8\")+b\"ef94f3175027af5a\").hexdigest() == \"5e9849b87d513ff5fec499eccb81fca30bbea543\", \"type of sum(X.Radius) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(X.Radius), 2)).encode(\"utf-8\")+b\"ef94f3175027af5a\").hexdigest() == \"19a29a51286e947d49364b8136a1969cc9845ded\", \"value of sum(X.Radius) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -2423,7 +2423,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "43b05357a856e72d38eee108ca1d1dd1", + "checksum": "647c185ab6e07d98066c742cc8af0f4d", "grade": true, "grade_id": "cell-8ccf0ef821e9d0de", "locked": true, @@ -2436,22 +2436,22 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(new_obs is None)).encode(\"utf-8\")+b\"f23df5404b588c94\").hexdigest() == \"974d6e0ffb13cf23b3862d38c57d49415303b5a1\", \"type of new_obs is None is not bool. new_obs is None should be a bool\"\n", - "assert sha1(str(new_obs is None).encode(\"utf-8\")+b\"f23df5404b588c94\").hexdigest() == \"f571d3e6c58906caa2c055bdface936df374d119\", \"boolean value of new_obs is None is not correct\"\n", + "assert sha1(str(type(new_obs is None)).encode(\"utf-8\")+b\"6a0466f4c150ace4\").hexdigest() == \"cd8d4e2a9143bf140c068cf60e25b491159a330d\", \"type of new_obs is None is not bool. new_obs is None should be a bool\"\n", + "assert sha1(str(new_obs is None).encode(\"utf-8\")+b\"6a0466f4c150ace4\").hexdigest() == \"060d9ee2f5285f4cf9c35ccdd6f002a79d9db21a\", \"boolean value of new_obs is None is not correct\"\n", "\n", - "assert sha1(str(type(new_obs)).encode(\"utf-8\")+b\"ad8190321963344e\").hexdigest() == \"646b82e5564216380212a5b78847b6b7f00db3f9\", \"type of type(new_obs) is not correct\"\n", + "assert sha1(str(type(new_obs)).encode(\"utf-8\")+b\"698ac803d315bdb8\").hexdigest() == \"3e2993a894ccff7781253aa360e43a5629aa8722\", \"type of type(new_obs) is not correct\"\n", "\n", - "assert sha1(str(type(new_obs.Symmetry.values)).encode(\"utf-8\")+b\"303da4254d14439b\").hexdigest() == \"10e05f9efeee52d6d760d87038de5542ab817e7c\", \"type of new_obs.Symmetry.values is not correct\"\n", - "assert sha1(str(new_obs.Symmetry.values).encode(\"utf-8\")+b\"303da4254d14439b\").hexdigest() == \"3d4f6a667ab7a1c119ce0677c5c22c50b647ecf6\", \"value of new_obs.Symmetry.values is not correct\"\n", + "assert sha1(str(type(new_obs.Symmetry.values)).encode(\"utf-8\")+b\"f0cee03744477c3b\").hexdigest() == \"cfc966dc6a0362f9feebed72ac2817057572ab72\", \"type of new_obs.Symmetry.values is not correct\"\n", + "assert sha1(str(new_obs.Symmetry.values).encode(\"utf-8\")+b\"f0cee03744477c3b\").hexdigest() == \"7be8ca0b0092accf2c765237f55b9e760e483374\", \"value of new_obs.Symmetry.values is not correct\"\n", "\n", - "assert sha1(str(type(new_obs.Radius.values)).encode(\"utf-8\")+b\"57d6a68ef1e22287\").hexdigest() == \"3e5a175dedf2d356ec3943449b97d5fb5e6e0634\", \"type of new_obs.Radius.values is not correct\"\n", - "assert sha1(str(new_obs.Radius.values).encode(\"utf-8\")+b\"57d6a68ef1e22287\").hexdigest() == \"61d85e27c2c2a79deccec2adb38231dd66bb07d3\", \"value of new_obs.Radius.values is not correct\"\n", + "assert sha1(str(type(new_obs.Radius.values)).encode(\"utf-8\")+b\"ff304a0533f0fd3f\").hexdigest() == \"e71883d4c161c423a62c352cb3bf1812aacfc70e\", \"type of new_obs.Radius.values is not correct\"\n", + "assert sha1(str(new_obs.Radius.values).encode(\"utf-8\")+b\"ff304a0533f0fd3f\").hexdigest() == \"7ed1e31f686d41f91122065d94b74ad254ce59d6\", \"value of new_obs.Radius.values is not correct\"\n", "\n", - "assert sha1(str(type(class_prediction is None)).encode(\"utf-8\")+b\"8a5f65601a6318f0\").hexdigest() == \"2c5390544dc1caed1b8c1fe3ff4cc48f8b6365e6\", \"type of class_prediction is None is not bool. class_prediction is None should be a bool\"\n", - "assert sha1(str(class_prediction is None).encode(\"utf-8\")+b\"8a5f65601a6318f0\").hexdigest() == \"e6398c57c6de1072ec94803b541c29bd76b3d4fa\", \"boolean value of class_prediction is None is not correct\"\n", + "assert sha1(str(type(class_prediction is None)).encode(\"utf-8\")+b\"2eca4145d1c57f7f\").hexdigest() == \"b92bbf895b3945cd17b8dbc9686f8a6522b9d031\", \"type of class_prediction is None is not bool. class_prediction is None should be a bool\"\n", + "assert sha1(str(class_prediction is None).encode(\"utf-8\")+b\"2eca4145d1c57f7f\").hexdigest() == \"4bd434233c1b2c2e425cf8ff5e7b3d394de2bb52\", \"boolean value of class_prediction is None is not correct\"\n", "\n", - "assert sha1(str(type(class_prediction)).encode(\"utf-8\")+b\"8b3e081b7e50d84d\").hexdigest() == \"9e8b87b06f87c104a3ff6184625b844e827d730e\", \"type of class_prediction is not correct\"\n", - "assert sha1(str(class_prediction).encode(\"utf-8\")+b\"8b3e081b7e50d84d\").hexdigest() == \"c034482e7e03724f2481f475b154cfe17573b19b\", \"value of class_prediction is not correct\"\n", + "assert sha1(str(type(class_prediction)).encode(\"utf-8\")+b\"a24cb8f3c3640627\").hexdigest() == \"4eafdee43e345add5604a1592a5c6cd66641d3e4\", \"type of class_prediction is not correct\"\n", + "assert sha1(str(class_prediction).encode(\"utf-8\")+b\"a24cb8f3c3640627\").hexdigest() == \"d588f240d98c9b5019413121f2742543e1279f11\", \"value of class_prediction is not correct\"\n", "\n", "print('Success!')" ] @@ -2512,7 +2512,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "82000636333ced75b0955c2e198b22ce", + "checksum": "89f0c159ca95707ab806b0cc4cf6b775", "grade": true, "grade_id": "cell-ae8bad16e80bdfef", "locked": true, @@ -2524,62 +2524,62 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_fit_2 is None)).encode(\"utf-8\")+b\"19c821719b9a2701\").hexdigest() == \"35443a71500a378a804b9df5f1fd8624b2c77162\", \"type of knn_fit_2 is None is not bool. knn_fit_2 is None should be a bool\"\n", - "assert sha1(str(knn_fit_2 is None).encode(\"utf-8\")+b\"19c821719b9a2701\").hexdigest() == \"b595401b725d36211acb2f95b6d56934c4417e91\", \"boolean value of knn_fit_2 is None is not correct\"\n", + "assert sha1(str(type(knn_fit_2 is None)).encode(\"utf-8\")+b\"188e847439d7cc67\").hexdigest() == \"6620c81d13e9f4159b3ee9f604b291a500018efb\", \"type of knn_fit_2 is None is not bool. knn_fit_2 is None should be a bool\"\n", + "assert sha1(str(knn_fit_2 is None).encode(\"utf-8\")+b\"188e847439d7cc67\").hexdigest() == \"f707cc299eaee0b82cf3e9929350700702bd4537\", \"boolean value of knn_fit_2 is None is not correct\"\n", "\n", - "assert sha1(str(type(knn_fit_2.kneighbors)).encode(\"utf-8\")+b\"705d983108257b6c\").hexdigest() == \"efb5a4dac959dc560e143cf0abbc0976a527590e\", \"type of knn_fit_2.kneighbors is not correct\"\n", - "assert sha1(str(knn_fit_2.kneighbors).encode(\"utf-8\")+b\"705d983108257b6c\").hexdigest() == \"58d462cba8b039ab4ec73f622da1709d4e447606\", \"value of knn_fit_2.kneighbors is not correct\"\n", + "assert sha1(str(type(knn_fit_2.kneighbors)).encode(\"utf-8\")+b\"972b5aa5ace0521e\").hexdigest() == \"831e84a462261dd8acbe59e9ab4cc04a93fc79a6\", \"type of knn_fit_2.kneighbors is not correct\"\n", + "assert sha1(str(knn_fit_2.kneighbors).encode(\"utf-8\")+b\"972b5aa5ace0521e\").hexdigest() == \"044f4bc38d6e2fd94c593768c22fdf8d614cd5a1\", \"value of knn_fit_2.kneighbors is not correct\"\n", "\n", - "assert sha1(str(type(knn_fit_2.effective_metric_)).encode(\"utf-8\")+b\"220d19d3248415dd\").hexdigest() == \"65ac79b492aedcd5e5d768c4602a0cee8bc2d54b\", \"type of knn_fit_2.effective_metric_ is not str. knn_fit_2.effective_metric_ should be an str\"\n", - "assert sha1(str(len(knn_fit_2.effective_metric_)).encode(\"utf-8\")+b\"220d19d3248415dd\").hexdigest() == \"654884f3df17a61734cacf349ace9ba25670fc3c\", \"length of knn_fit_2.effective_metric_ is not correct\"\n", - "assert sha1(str(knn_fit_2.effective_metric_.lower()).encode(\"utf-8\")+b\"220d19d3248415dd\").hexdigest() == \"e2c709faf2f701d537b2313b4394e4b3a20f3149\", \"value of knn_fit_2.effective_metric_ is not correct\"\n", - "assert sha1(str(knn_fit_2.effective_metric_).encode(\"utf-8\")+b\"220d19d3248415dd\").hexdigest() == \"e2c709faf2f701d537b2313b4394e4b3a20f3149\", \"correct string value of knn_fit_2.effective_metric_ but incorrect case of letters\"\n", + "assert sha1(str(type(knn_fit_2.effective_metric_)).encode(\"utf-8\")+b\"beb0ae69a9a4622b\").hexdigest() == \"9e291c5efa4223ef2df8ef26764843ae679f4a29\", \"type of knn_fit_2.effective_metric_ is not str. knn_fit_2.effective_metric_ should be an str\"\n", + "assert sha1(str(len(knn_fit_2.effective_metric_)).encode(\"utf-8\")+b\"beb0ae69a9a4622b\").hexdigest() == \"204967c27e6bcc289c398b1a4e4eaaa7f2627c9f\", \"length of knn_fit_2.effective_metric_ is not correct\"\n", + "assert sha1(str(knn_fit_2.effective_metric_.lower()).encode(\"utf-8\")+b\"beb0ae69a9a4622b\").hexdigest() == \"5698f499a9b07773db7a737da5fdb6a290aa3174\", \"value of knn_fit_2.effective_metric_ is not correct\"\n", + "assert sha1(str(knn_fit_2.effective_metric_).encode(\"utf-8\")+b\"beb0ae69a9a4622b\").hexdigest() == \"5698f499a9b07773db7a737da5fdb6a290aa3174\", \"correct string value of knn_fit_2.effective_metric_ but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(type(knn_fit_2))).encode(\"utf-8\")+b\"91eae26c25ffb187\").hexdigest() == \"313a4f247a8146602397e4fb1c4ac2ea73ddcb9b\", \"type of type(knn_fit_2) is not correct\"\n", - "assert sha1(str(type(knn_fit_2)).encode(\"utf-8\")+b\"91eae26c25ffb187\").hexdigest() == \"8d49fb7e109ec073930705d28d1e43ff4c7f1360\", \"value of type(knn_fit_2) is not correct\"\n", + "assert sha1(str(type(type(knn_fit_2))).encode(\"utf-8\")+b\"4d34e2c5129dc231\").hexdigest() == \"095e494b4098fb8646cee988f4bbc1777a785a29\", \"type of type(knn_fit_2) is not correct\"\n", + "assert sha1(str(type(knn_fit_2)).encode(\"utf-8\")+b\"4d34e2c5129dc231\").hexdigest() == \"264b891694a2db9a262332709d9fe03fe9ed9705\", \"value of type(knn_fit_2) is not correct\"\n", "\n", - "assert sha1(str(type(knn_fit_2.n_features_in_)).encode(\"utf-8\")+b\"1cef78df413a0e65\").hexdigest() == \"f434772836f7a3ebcef1536f50c1a2b22c2c0223\", \"type of knn_fit_2.n_features_in_ is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(knn_fit_2.n_features_in_).encode(\"utf-8\")+b\"1cef78df413a0e65\").hexdigest() == \"fd5c339a17db4e0b3bda41f4dc1bbe141165b57d\", \"value of knn_fit_2.n_features_in_ is not correct\"\n", + "assert sha1(str(type(knn_fit_2.n_features_in_)).encode(\"utf-8\")+b\"6ea6243cf55ada9b\").hexdigest() == \"2112741d6ee6d98b0fe3d842470020c2829c09b2\", \"type of knn_fit_2.n_features_in_ is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(knn_fit_2.n_features_in_).encode(\"utf-8\")+b\"6ea6243cf55ada9b\").hexdigest() == \"ff6202c9411c863da33fbd45b06eabb354e5bb05\", \"value of knn_fit_2.n_features_in_ is not correct\"\n", "\n", - "assert sha1(str(type(X_2.columns.values)).encode(\"utf-8\")+b\"09527936c93eb624\").hexdigest() == \"495fa04723d16513c8e78a3f33201e5964b807d5\", \"type of X_2.columns.values is not correct\"\n", - "assert sha1(str(X_2.columns.values).encode(\"utf-8\")+b\"09527936c93eb624\").hexdigest() == \"ece8957730c3a8bfd4f5963a80b45959db9d8a34\", \"value of X_2.columns.values is not correct\"\n", + "assert sha1(str(type(X_2.columns.values)).encode(\"utf-8\")+b\"fb6b84dd1a9b40e0\").hexdigest() == \"3d4d87a751a37eb48f0fc4bbef02fc892c923c48\", \"type of X_2.columns.values is not correct\"\n", + "assert sha1(str(X_2.columns.values).encode(\"utf-8\")+b\"fb6b84dd1a9b40e0\").hexdigest() == \"41adbc71447965911bf99782db4afa6a12384d9a\", \"value of X_2.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(y_2.name)).encode(\"utf-8\")+b\"246dce87d2054562\").hexdigest() == \"94196ccd97cf8b8bba752082d7e453f9e696f429\", \"type of y_2.name is not str. y_2.name should be an str\"\n", - "assert sha1(str(len(y_2.name)).encode(\"utf-8\")+b\"246dce87d2054562\").hexdigest() == \"efac7c0c78d79caba25f711270e1a856a4eb7913\", \"length of y_2.name is not correct\"\n", - "assert sha1(str(y_2.name.lower()).encode(\"utf-8\")+b\"246dce87d2054562\").hexdigest() == \"51442711b036c8751db6b8603a8d3c01d1f5cd96\", \"value of y_2.name is not correct\"\n", - "assert sha1(str(y_2.name).encode(\"utf-8\")+b\"246dce87d2054562\").hexdigest() == \"078c7105e4692df756267c93ee942bfbab7954a5\", \"correct string value of y_2.name but incorrect case of letters\"\n", + "assert sha1(str(type(y_2.name)).encode(\"utf-8\")+b\"b308ff77cf42f39c\").hexdigest() == \"190e76a5f1e0bf56d95466f903146c91d91b8fa6\", \"type of y_2.name is not str. y_2.name should be an str\"\n", + "assert sha1(str(len(y_2.name)).encode(\"utf-8\")+b\"b308ff77cf42f39c\").hexdigest() == \"6ec82bc71a6098293f0f4d3437f8f52dbb59be5f\", \"length of y_2.name is not correct\"\n", + "assert sha1(str(y_2.name.lower()).encode(\"utf-8\")+b\"b308ff77cf42f39c\").hexdigest() == \"f4e5d8b48a3db7226cdec4e5baf6872a428cac32\", \"value of y_2.name is not correct\"\n", + "assert sha1(str(y_2.name).encode(\"utf-8\")+b\"b308ff77cf42f39c\").hexdigest() == \"1e9354603f5164471a6142f4dcbfb7bfc3f13e50\", \"correct string value of y_2.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(y_2.values)).encode(\"utf-8\")+b\"0fb7684f22b61a78\").hexdigest() == \"d45a3b78173b1d12e3114f9b43c52f68d4e0497a\", \"type of y_2.values is not correct\"\n", - "assert sha1(str(y_2.values).encode(\"utf-8\")+b\"0fb7684f22b61a78\").hexdigest() == \"b8df9c7b6c051b2a77c0d3ec5795fcc467839277\", \"value of y_2.values is not correct\"\n", + "assert sha1(str(type(y_2.values)).encode(\"utf-8\")+b\"f63cb9766badf2bb\").hexdigest() == \"687813a0f0c53b0bd4e2f56a407ec02ddeea568b\", \"type of y_2.values is not correct\"\n", + "assert sha1(str(y_2.values).encode(\"utf-8\")+b\"f63cb9766badf2bb\").hexdigest() == \"4bfc87a5095a62560f16e8d10caa5833a092b329\", \"value of y_2.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(X_2.Symmetry))).encode(\"utf-8\")+b\"84edddfad875b13c\").hexdigest() == \"b316587218aa3da86526334a15fcdf0c781abd4a\", \"type of sum(X_2.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(X_2.Symmetry), 2)).encode(\"utf-8\")+b\"84edddfad875b13c\").hexdigest() == \"6900ef79cb74eca9838a7c6d9332c0220f981dcb\", \"value of sum(X_2.Symmetry) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(X_2.Symmetry))).encode(\"utf-8\")+b\"a2b057d5374f4731\").hexdigest() == \"dfbbf0a9cb58cccff2d06ec8a71cce4b6ecf2e2d\", \"type of sum(X_2.Symmetry) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(X_2.Symmetry), 2)).encode(\"utf-8\")+b\"a2b057d5374f4731\").hexdigest() == \"7de598c1c1d61f80415b5a08e206ed71de0b2074\", \"value of sum(X_2.Symmetry) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(X_2.Radius))).encode(\"utf-8\")+b\"d0e702c12221c5a9\").hexdigest() == \"5df9cb5f1c0e2f6bf04d6d768f1973b8db1ca84d\", \"type of sum(X_2.Radius) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(X_2.Radius), 2)).encode(\"utf-8\")+b\"d0e702c12221c5a9\").hexdigest() == \"9c6915855adfa72bac2d4c0e65cfd391e464d7cd\", \"value of sum(X_2.Radius) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(X_2.Radius))).encode(\"utf-8\")+b\"747bc7f25a7f64b2\").hexdigest() == \"e838dc528ed522f23c26423a4a5854133f65bca3\", \"type of sum(X_2.Radius) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(X_2.Radius), 2)).encode(\"utf-8\")+b\"747bc7f25a7f64b2\").hexdigest() == \"6bd3556bfaa4160bb73cfcaaa58cec1333d45735\", \"value of sum(X_2.Radius) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(X_2.Concavity))).encode(\"utf-8\")+b\"d100b4915f2e479b\").hexdigest() == \"d839584893e37e657f8c3253af449e2312c95e0c\", \"type of sum(X_2.Concavity) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(X_2.Concavity), 2)).encode(\"utf-8\")+b\"d100b4915f2e479b\").hexdigest() == \"a02f5207fa8a39940b7baa24bb76e513420173c2\", \"value of sum(X_2.Concavity) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(X_2.Concavity))).encode(\"utf-8\")+b\"7ee9b0dbea089ece\").hexdigest() == \"931a2fb797e63e3a9cf9cad62739c41f260f4433\", \"type of sum(X_2.Concavity) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(X_2.Concavity), 2)).encode(\"utf-8\")+b\"7ee9b0dbea089ece\").hexdigest() == \"7b6120d7c77a74a152ab3b380f41479513342b6b\", \"value of sum(X_2.Concavity) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(new_obs_2 is None)).encode(\"utf-8\")+b\"d8bbeb3d3afd54f3\").hexdigest() == \"4b02768141b0d289025a61617f1327f9253fc0ca\", \"type of new_obs_2 is None is not bool. new_obs_2 is None should be a bool\"\n", - "assert sha1(str(new_obs_2 is None).encode(\"utf-8\")+b\"d8bbeb3d3afd54f3\").hexdigest() == \"1b283f048e4de9864b65ab66bbc7d79e9ca89de0\", \"boolean value of new_obs_2 is None is not correct\"\n", + "assert sha1(str(type(new_obs_2 is None)).encode(\"utf-8\")+b\"108418493b726b87\").hexdigest() == \"9752647819333d62d1021817bbe14be63a64a870\", \"type of new_obs_2 is None is not bool. new_obs_2 is None should be a bool\"\n", + "assert sha1(str(new_obs_2 is None).encode(\"utf-8\")+b\"108418493b726b87\").hexdigest() == \"59ffb82f93200dd8e34a72ade893a5c2ed9561ec\", \"boolean value of new_obs_2 is None is not correct\"\n", "\n", - "assert sha1(str(type(new_obs_2)).encode(\"utf-8\")+b\"797caf0c25bddbe7\").hexdigest() == \"971d6d22cb869ec3051ac66905317131b4519312\", \"type of type(new_obs_2) is not correct\"\n", + "assert sha1(str(type(new_obs_2)).encode(\"utf-8\")+b\"32470812fb5ba48b\").hexdigest() == \"a2587b7b2a024fbca5b722e9d36a28da5f7a6139\", \"type of type(new_obs_2) is not correct\"\n", "\n", - "assert sha1(str(type(new_obs_2.Symmetry.values)).encode(\"utf-8\")+b\"319e59fb2d59cb37\").hexdigest() == \"75fdb72ddc061393fd73fd0f2c5953692c3535f9\", \"type of new_obs_2.Symmetry.values is not correct\"\n", - "assert sha1(str(new_obs_2.Symmetry.values).encode(\"utf-8\")+b\"319e59fb2d59cb37\").hexdigest() == \"1d499f713f2404c2ca83ba1a50dc452105a633f6\", \"value of new_obs_2.Symmetry.values is not correct\"\n", + "assert sha1(str(type(new_obs_2.Symmetry.values)).encode(\"utf-8\")+b\"bf3e375ee179df5e\").hexdigest() == \"7a26842481000ee5936cd33ce9b8fa9a696ab199\", \"type of new_obs_2.Symmetry.values is not correct\"\n", + "assert sha1(str(new_obs_2.Symmetry.values).encode(\"utf-8\")+b\"bf3e375ee179df5e\").hexdigest() == \"9136694b15a055431c2d3de225cbdf29ca5e31d2\", \"value of new_obs_2.Symmetry.values is not correct\"\n", "\n", - "assert sha1(str(type(new_obs_2.Radius.values)).encode(\"utf-8\")+b\"a6580eef0cec5898\").hexdigest() == \"b7c617ea98809b8812c6250a68a743d1f1051556\", \"type of new_obs_2.Radius.values is not correct\"\n", - "assert sha1(str(new_obs_2.Radius.values).encode(\"utf-8\")+b\"a6580eef0cec5898\").hexdigest() == \"f8142759fdf4925fe6f61cf8d1702a5d6214d09e\", \"value of new_obs_2.Radius.values is not correct\"\n", + "assert sha1(str(type(new_obs_2.Radius.values)).encode(\"utf-8\")+b\"bcb41476a727b484\").hexdigest() == \"a49d6d21d0c8e374ad736ca3eed40c54f68e67a9\", \"type of new_obs_2.Radius.values is not correct\"\n", + "assert sha1(str(new_obs_2.Radius.values).encode(\"utf-8\")+b\"bcb41476a727b484\").hexdigest() == \"a4b0a3bd4066b69f7ff9d435c795fd0271216a42\", \"value of new_obs_2.Radius.values is not correct\"\n", "\n", - "assert sha1(str(type(new_obs_2.Concavity.values)).encode(\"utf-8\")+b\"e6cf012d6845896e\").hexdigest() == \"c72b670451bbd82a3db7d1142a8140d0338815b3\", \"type of new_obs_2.Concavity.values is not correct\"\n", - "assert sha1(str(new_obs_2.Concavity.values).encode(\"utf-8\")+b\"e6cf012d6845896e\").hexdigest() == \"1a7bd3691c0e9771f2f3567e9a763e2483f6a23f\", \"value of new_obs_2.Concavity.values is not correct\"\n", + "assert sha1(str(type(new_obs_2.Concavity.values)).encode(\"utf-8\")+b\"edfa4d828982871a\").hexdigest() == \"33f2db6f19a4413d7852ef6b688075acc4300570\", \"type of new_obs_2.Concavity.values is not correct\"\n", + "assert sha1(str(new_obs_2.Concavity.values).encode(\"utf-8\")+b\"edfa4d828982871a\").hexdigest() == \"1b6ac39d470b01c407f339c46f16961aaaa2e6f8\", \"value of new_obs_2.Concavity.values is not correct\"\n", "\n", - "assert sha1(str(type(class_prediction_2 is None)).encode(\"utf-8\")+b\"0fad66d3d1161334\").hexdigest() == \"67b046226a7e4f2933ac1fba8e0e32dc3ed4c459\", \"type of class_prediction_2 is None is not bool. class_prediction_2 is None should be a bool\"\n", - "assert sha1(str(class_prediction_2 is None).encode(\"utf-8\")+b\"0fad66d3d1161334\").hexdigest() == \"db1ae1e1e2dfc13b70f2387540e6a42d5ebe1383\", \"boolean value of class_prediction_2 is None is not correct\"\n", + "assert sha1(str(type(class_prediction_2 is None)).encode(\"utf-8\")+b\"d506eb77ec3ac2ee\").hexdigest() == \"35cd8da6ccc0ed33bfe01a263286e91adc715f7b\", \"type of class_prediction_2 is None is not bool. class_prediction_2 is None should be a bool\"\n", + "assert sha1(str(class_prediction_2 is None).encode(\"utf-8\")+b\"d506eb77ec3ac2ee\").hexdigest() == \"673397f866f1404a27e7fac6d99b9fd99f64337b\", \"boolean value of class_prediction_2 is None is not correct\"\n", "\n", - "assert sha1(str(type(class_prediction_2)).encode(\"utf-8\")+b\"df0e837f9e871af8\").hexdigest() == \"b95b483d6864254ae7cd6acca5effe1a431b8fb2\", \"type of class_prediction_2 is not correct\"\n", - "assert sha1(str(class_prediction_2).encode(\"utf-8\")+b\"df0e837f9e871af8\").hexdigest() == \"adf60eba68a6bf88c8d9c71403be64f67e959109\", \"value of class_prediction_2 is not correct\"\n", + "assert sha1(str(type(class_prediction_2)).encode(\"utf-8\")+b\"639f90a14d5ce563\").hexdigest() == \"5c9d76fe3746e26f099c7d7df10f756ad5629748\", \"type of class_prediction_2 is not correct\"\n", + "assert sha1(str(class_prediction_2).encode(\"utf-8\")+b\"639f90a14d5ce563\").hexdigest() == \"72d00de34c02decbef1d21a147d19d3620af3f34\", \"value of class_prediction_2 is not correct\"\n", "\n", "print('Success!')" ] @@ -2647,7 +2647,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2016153b2ec6222a5ea2b6e652817ed7", + "checksum": "06726069d195a7a0088d437fa68ee774", "grade": true, "grade_id": "cell-c6b6f36644c1de32", "locked": true, @@ -2660,14 +2660,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_preprocessor is None)).encode(\"utf-8\")+b\"1a20985b04bb92eb\").hexdigest() == \"b6e3deaefbfa71f889fba4289ee99fb7e27b02e7\", \"type of knn_preprocessor is None is not bool. knn_preprocessor is None should be a bool\"\n", - "assert sha1(str(knn_preprocessor is None).encode(\"utf-8\")+b\"1a20985b04bb92eb\").hexdigest() == \"228702d57b25c0b5898c116bece308a6ff6084ea\", \"boolean value of knn_preprocessor is None is not correct\"\n", + "assert sha1(str(type(knn_preprocessor is None)).encode(\"utf-8\")+b\"d129ef9e5ccf4c5c\").hexdigest() == \"33984d6f3a9b94c56cd5ace96adbda1fd84a2b29\", \"type of knn_preprocessor is None is not bool. knn_preprocessor is None should be a bool\"\n", + "assert sha1(str(knn_preprocessor is None).encode(\"utf-8\")+b\"d129ef9e5ccf4c5c\").hexdigest() == \"96d2c90624e477637692adef9c3e4ebc42a0747c\", \"boolean value of knn_preprocessor is None is not correct\"\n", "\n", - "assert sha1(str(type(type(knn_preprocessor))).encode(\"utf-8\")+b\"5385f634cb29459f\").hexdigest() == \"4286617a1e005629684766055882ef3fcdc85a93\", \"type of type(knn_preprocessor) is not correct\"\n", - "assert sha1(str(type(knn_preprocessor)).encode(\"utf-8\")+b\"5385f634cb29459f\").hexdigest() == \"dff8c996355163738a76d4b5c8b55b86aa8269bf\", \"value of type(knn_preprocessor) is not correct\"\n", + "assert sha1(str(type(type(knn_preprocessor))).encode(\"utf-8\")+b\"cf447305939461eb\").hexdigest() == \"643bfd3d023177c83d69627fcaa5dec112f7cc62\", \"type of type(knn_preprocessor) is not correct\"\n", + "assert sha1(str(type(knn_preprocessor)).encode(\"utf-8\")+b\"cf447305939461eb\").hexdigest() == \"3910413219ef0008361855d74945dbdbae93b55f\", \"value of type(knn_preprocessor) is not correct\"\n", "\n", - "assert sha1(str(type(knn_preprocessor.get_feature_names_out)).encode(\"utf-8\")+b\"3913fa1bbdf16398\").hexdigest() == \"0fed4424123f33c3a7aaa5d92b36433237739490\", \"type of knn_preprocessor.get_feature_names_out is not correct\"\n", - "assert sha1(str(knn_preprocessor.get_feature_names_out).encode(\"utf-8\")+b\"3913fa1bbdf16398\").hexdigest() == \"fe1ff56a08da0d6a5b6e999b21d8f111e4d7045e\", \"value of knn_preprocessor.get_feature_names_out is not correct\"\n", + "assert sha1(str(type(knn_preprocessor.get_feature_names_out)).encode(\"utf-8\")+b\"c853aba1b49bca96\").hexdigest() == \"d48a7e3e2fdcdffe8dfc5aae848dd992f2f6a920\", \"type of knn_preprocessor.get_feature_names_out is not correct\"\n", + "assert sha1(str(knn_preprocessor.get_feature_names_out).encode(\"utf-8\")+b\"c853aba1b49bca96\").hexdigest() == \"7a39338e216f80f4e73d11f55e32b399ecd76550\", \"value of knn_preprocessor.get_feature_names_out is not correct\"\n", "\n", "print('Success!')" ] @@ -2728,7 +2728,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "86c3f857fcfe34fa331a08e56b5cc617", + "checksum": "5d8162313ca204f904eff7a8bad4b58a", "grade": true, "grade_id": "cell-a091b39308a96640", "locked": true, @@ -2741,14 +2741,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_pipeline is None)).encode(\"utf-8\")+b\"5c612f11a58b5a03\").hexdigest() == \"94bafa09035adf77ca5b1d8943ad3fa6a2ca4234\", \"type of knn_pipeline is None is not bool. knn_pipeline is None should be a bool\"\n", - "assert sha1(str(knn_pipeline is None).encode(\"utf-8\")+b\"5c612f11a58b5a03\").hexdigest() == \"7d0a38e8122aff03d81079c2e59533077f8f5048\", \"boolean value of knn_pipeline is None is not correct\"\n", + "assert sha1(str(type(knn_pipeline is None)).encode(\"utf-8\")+b\"9b68513415814880\").hexdigest() == \"abdfd9b4539270df3e1cba6824af5da8ce681f51\", \"type of knn_pipeline is None is not bool. knn_pipeline is None should be a bool\"\n", + "assert sha1(str(knn_pipeline is None).encode(\"utf-8\")+b\"9b68513415814880\").hexdigest() == \"46a4a29727dbc26b4d0672fa6a0412f19c984de4\", \"boolean value of knn_pipeline is None is not correct\"\n", "\n", - "assert sha1(str(type(type(knn_pipeline))).encode(\"utf-8\")+b\"4d50e3ce6e64cbd9\").hexdigest() == \"c10e05957feac91cc4b62c6b50df69897a1771fa\", \"type of type(knn_pipeline) is not correct\"\n", - "assert sha1(str(type(knn_pipeline)).encode(\"utf-8\")+b\"4d50e3ce6e64cbd9\").hexdigest() == \"a47a3fc7831bef20d977e1ed10405bd65a070f90\", \"value of type(knn_pipeline) is not correct\"\n", + "assert sha1(str(type(type(knn_pipeline))).encode(\"utf-8\")+b\"ce06bf60195b746b\").hexdigest() == \"8f852e6e55ed178d37bc9940abf6d91e1418f788\", \"type of type(knn_pipeline) is not correct\"\n", + "assert sha1(str(type(knn_pipeline)).encode(\"utf-8\")+b\"ce06bf60195b746b\").hexdigest() == \"006b756e683212a6c9ac8b0ba1b804fffa7b70f1\", \"value of type(knn_pipeline) is not correct\"\n", "\n", - "assert sha1(str(type(knn_pipeline.named_steps.kneighborsclassifier.n_neighbors)).encode(\"utf-8\")+b\"ea0e9aa4b02a0f34\").hexdigest() == \"cfd59430455fa25d36cab1f80d9f0d26234d8549\", \"type of knn_pipeline.named_steps.kneighborsclassifier.n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(knn_pipeline.named_steps.kneighborsclassifier.n_neighbors).encode(\"utf-8\")+b\"ea0e9aa4b02a0f34\").hexdigest() == \"b5b22b6aba90aa211df475b23594ce353449e162\", \"value of knn_pipeline.named_steps.kneighborsclassifier.n_neighbors is not correct\"\n", + "assert sha1(str(type(knn_pipeline.named_steps.kneighborsclassifier.n_neighbors)).encode(\"utf-8\")+b\"4b6c7aa52c5c4d09\").hexdigest() == \"59eb1cac12a2a26bd4476593b1fcd2ec8754613a\", \"type of knn_pipeline.named_steps.kneighborsclassifier.n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(knn_pipeline.named_steps.kneighborsclassifier.n_neighbors).encode(\"utf-8\")+b\"4b6c7aa52c5c4d09\").hexdigest() == \"65afafcafd88be2d1ca6ac2ed215f2c8df54d363\", \"value of knn_pipeline.named_steps.kneighborsclassifier.n_neighbors is not correct\"\n", "\n", "print('Success!')" ] @@ -2827,7 +2827,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ca475b03e2eace6078bea9ce99281fb9", + "checksum": "787a16ffaaa252d70cfeec493894fbaa", "grade": true, "grade_id": "cell-036a77a7a92f0c3d", "locked": true, @@ -2839,8 +2839,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(class_prediction_all)).encode(\"utf-8\")+b\"08bf90942c7e7025\").hexdigest() == \"2535d77f1eaa165187e70f17a357da3110aa4d0d\", \"type of class_prediction_all is not correct\"\n", - "assert sha1(str(class_prediction_all).encode(\"utf-8\")+b\"08bf90942c7e7025\").hexdigest() == \"cadc955ada0e2a6486a855865fcef2c1769ad785\", \"value of class_prediction_all is not correct\"\n", + "assert sha1(str(type(class_prediction_all)).encode(\"utf-8\")+b\"c237ed494e185f75\").hexdigest() == \"7de8ee712e5a5432052bc277539822ff62a21052\", \"type of class_prediction_all is not correct\"\n", + "assert sha1(str(class_prediction_all).encode(\"utf-8\")+b\"c237ed494e185f75\").hexdigest() == \"329c503b0bb3b6ccff670e06f144bd5f671a6fd1\", \"value of class_prediction_all is not correct\"\n", "\n", "print('Success!')" ] @@ -2928,7 +2928,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3b1a03a00be2628698ac5048390205be", + "checksum": "4844cf24e13ab3b11ec09a9d52250ce1", "grade": true, "grade_id": "cell-437eb5f41aed17bc", "locked": true, @@ -2940,10 +2940,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4_0)).encode(\"utf-8\")+b\"90b1617b020ff336\").hexdigest() == \"9af3615af16a8feaff5563769d155a7f2f1b9048\", \"type of answer4_0 is not str. answer4_0 should be an str\"\n", - "assert sha1(str(len(answer4_0)).encode(\"utf-8\")+b\"90b1617b020ff336\").hexdigest() == \"d97967d0431d5a4e0bcea26ac7cd9d7306967f49\", \"length of answer4_0 is not correct\"\n", - "assert sha1(str(answer4_0.lower()).encode(\"utf-8\")+b\"90b1617b020ff336\").hexdigest() == \"fa9150a150997aec8fc328e23ce14a5a94f7b25f\", \"value of answer4_0 is not correct\"\n", - "assert sha1(str(answer4_0).encode(\"utf-8\")+b\"90b1617b020ff336\").hexdigest() == \"8c891cf1a1b53ace0cf6c9b5ae696ff5226060ac\", \"correct string value of answer4_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer4_0)).encode(\"utf-8\")+b\"ce6775d36a269265\").hexdigest() == \"26fa7d615b1baa3c198d43644d18d061630a5437\", \"type of answer4_0 is not str. answer4_0 should be an str\"\n", + "assert sha1(str(len(answer4_0)).encode(\"utf-8\")+b\"ce6775d36a269265\").hexdigest() == \"33ba0346defc95da049b724d57d52d87b9107c09\", \"length of answer4_0 is not correct\"\n", + "assert sha1(str(answer4_0.lower()).encode(\"utf-8\")+b\"ce6775d36a269265\").hexdigest() == \"4a6de4d5352feed155e47dedc3137885495e2271\", \"value of answer4_0 is not correct\"\n", + "assert sha1(str(answer4_0).encode(\"utf-8\")+b\"ce6775d36a269265\").hexdigest() == \"cb0bb6b08f9b5ba0c819f80d5a6e8d485d9d4d2a\", \"correct string value of answer4_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3008,7 +3008,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "163e6192a97c89b4a83d8e71aa472460", + "checksum": "1316497ec281e10a64ae0965b56b9413", "grade": true, "grade_id": "cell-303f4a3bd9b343f2", "locked": true, @@ -3020,10 +3020,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4_1)).encode(\"utf-8\")+b\"8a78d2356e35700a\").hexdigest() == \"86cfc5848118f0d6507fb4fc7f72872dc0153d9d\", \"type of answer4_1 is not str. answer4_1 should be an str\"\n", - "assert sha1(str(len(answer4_1)).encode(\"utf-8\")+b\"8a78d2356e35700a\").hexdigest() == \"fbda6cd6ba4203c0a62cd02846e05038a666f0c1\", \"length of answer4_1 is not correct\"\n", - "assert sha1(str(answer4_1.lower()).encode(\"utf-8\")+b\"8a78d2356e35700a\").hexdigest() == \"1d553a8b2059b0cd3ac22beaf94cb248220a3efe\", \"value of answer4_1 is not correct\"\n", - "assert sha1(str(answer4_1).encode(\"utf-8\")+b\"8a78d2356e35700a\").hexdigest() == \"d46f32e3a9f552795c749ec3909d077014003418\", \"correct string value of answer4_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer4_1)).encode(\"utf-8\")+b\"9d54192e6936d81d\").hexdigest() == \"81425d9d8f9cd61f89ccde83cc751c9cacfb498d\", \"type of answer4_1 is not str. answer4_1 should be an str\"\n", + "assert sha1(str(len(answer4_1)).encode(\"utf-8\")+b\"9d54192e6936d81d\").hexdigest() == \"cb684a531f168d8ed86a2e60a6fe58e0cc35c04d\", \"length of answer4_1 is not correct\"\n", + "assert sha1(str(answer4_1.lower()).encode(\"utf-8\")+b\"9d54192e6936d81d\").hexdigest() == \"b23ed1f675d094797aeeac0ceb18ff87d45ade89\", \"value of answer4_1 is not correct\"\n", + "assert sha1(str(answer4_1).encode(\"utf-8\")+b\"9d54192e6936d81d\").hexdigest() == \"96e4a285225180ab278329026112f3cde3f15895\", \"correct string value of answer4_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_classification2/py_worksheet_classification2.ipynb b/py_worksheet_classification2/py_worksheet_classification2.ipynb index a25c71f..6dea864 100644 --- a/py_worksheet_classification2/py_worksheet_classification2.ipynb +++ b/py_worksheet_classification2/py_worksheet_classification2.ipynb @@ -137,7 +137,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ab8eac0ebd949abf3e5d53117eb9b3da", + "checksum": "58af77a50195afe81b393346608fdee1", "grade": true, "grade_id": "cell-3f57245c4f46b1d0", "locked": true, @@ -150,10 +150,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"c4e6c868b56f6134\").hexdigest() == \"f8b9d4acd2ca35e7febd7caf0958dfb451eb4df3\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", - "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"c4e6c868b56f6134\").hexdigest() == \"1b148f9e3d462924c1c4f44694d9c2a6410d353b\", \"length of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"c4e6c868b56f6134\").hexdigest() == \"e988777ed908aaddce7b8fb859472b8aae00c101\", \"value of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"c4e6c868b56f6134\").hexdigest() == \"b3a45bbef71162c1bc7ec8010d00b8b33c250493\", \"correct string value of answer0_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"94d054390c043034\").hexdigest() == \"8e42b3e50a43811db424033c861f9c72b0171269\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", + "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"94d054390c043034\").hexdigest() == \"9000c952cdcd26cdbc2a6bf3ff09378463e975e2\", \"length of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"94d054390c043034\").hexdigest() == \"80c8d58ecf2b8d29a2f992f7c4545d7e3123453b\", \"value of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"94d054390c043034\").hexdigest() == \"91290eec9bae00fc340ef6efb33f505556d38fa7\", \"correct string value of answer0_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -214,7 +214,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3aa906362f76304e9c4a8c92faa9ceda", + "checksum": "eb06eaec0ea6b4ce667059b64992a63f", "grade": true, "grade_id": "cell-03b586646cc9ea74", "locked": true, @@ -227,16 +227,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_data is None)).encode(\"utf-8\")+b\"3b194255ef08660a\").hexdigest() == \"fe574649e9832636a8ee4aa4a641b91003a9f8b5\", \"type of fruit_data is None is not bool. fruit_data is None should be a bool\"\n", - "assert sha1(str(fruit_data is None).encode(\"utf-8\")+b\"3b194255ef08660a\").hexdigest() == \"3319b9bb59fde6e482bb5469357961031dba935c\", \"boolean value of fruit_data is None is not correct\"\n", + "assert sha1(str(type(fruit_data is None)).encode(\"utf-8\")+b\"c02fd8f5969c1a15\").hexdigest() == \"1e552628e1ea86fd9d2b07fda232d27de24a265b\", \"type of fruit_data is None is not bool. fruit_data is None should be a bool\"\n", + "assert sha1(str(fruit_data is None).encode(\"utf-8\")+b\"c02fd8f5969c1a15\").hexdigest() == \"1db6ced3ad5aafecef65c432a5694ad5408901d5\", \"boolean value of fruit_data is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_data.shape)).encode(\"utf-8\")+b\"3a04cb82dcaf023c\").hexdigest() == \"4709da702b7a768a334bf1e3c7cc72491bfbede6\", \"type of fruit_data.shape is not tuple. fruit_data.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_data.shape)).encode(\"utf-8\")+b\"3a04cb82dcaf023c\").hexdigest() == \"bf536a227ca1a5ba97603a75c63962aee934c404\", \"length of fruit_data.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_data.shape))).encode(\"utf-8\")+b\"3a04cb82dcaf023c\").hexdigest() == \"259226cc3727a5af10227bfe703cab2315ee228a\", \"values of fruit_data.shape are not correct\"\n", - "assert sha1(str(fruit_data.shape).encode(\"utf-8\")+b\"3a04cb82dcaf023c\").hexdigest() == \"fa64d7a903116d8702b174e927b903d29bde00ba\", \"order of elements of fruit_data.shape is not correct\"\n", + "assert sha1(str(type(fruit_data.shape)).encode(\"utf-8\")+b\"7c6158b4d7cb9aa1\").hexdigest() == \"350fc2e02ec7de678e155b64dd03b8125e8adcad\", \"type of fruit_data.shape is not tuple. fruit_data.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_data.shape)).encode(\"utf-8\")+b\"7c6158b4d7cb9aa1\").hexdigest() == \"156ba1887aa8ec073a5a4912dfd4648b8dc4d0fc\", \"length of fruit_data.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_data.shape))).encode(\"utf-8\")+b\"7c6158b4d7cb9aa1\").hexdigest() == \"c1faac9cb54d00b7c55eade87c1da689ddbcc711\", \"values of fruit_data.shape are not correct\"\n", + "assert sha1(str(fruit_data.shape).encode(\"utf-8\")+b\"7c6158b4d7cb9aa1\").hexdigest() == \"0202ba5c2215f671aeb4125223d8f3b6d00b416a\", \"order of elements of fruit_data.shape is not correct\"\n", "\n", - "assert sha1(str(type(fruit_data.fruit_name.dtype)).encode(\"utf-8\")+b\"46341806a8fb0b73\").hexdigest() == \"28d91c35bc79e38b79f391ca3a1f32d2dc24ceba\", \"type of fruit_data.fruit_name.dtype is not correct\"\n", - "assert sha1(str(fruit_data.fruit_name.dtype).encode(\"utf-8\")+b\"46341806a8fb0b73\").hexdigest() == \"eb1b2e9cce2a4018f890f3391abbdaea0af0db4c\", \"value of fruit_data.fruit_name.dtype is not correct\"\n", + "assert sha1(str(type(fruit_data.fruit_name.dtype)).encode(\"utf-8\")+b\"98b239eb5a3396de\").hexdigest() == \"fcca0c36d1ece4cbc804fea0ca06c92cd246bd00\", \"type of fruit_data.fruit_name.dtype is not correct\"\n", + "assert sha1(str(fruit_data.fruit_name.dtype).encode(\"utf-8\")+b\"98b239eb5a3396de\").hexdigest() == \"7d9f72daeeb477aea4febab084a4d783b13cccb2\", \"value of fruit_data.fruit_name.dtype is not correct\"\n", "\n", "print('Success!')" ] @@ -405,7 +405,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3212ba1f8fad43e7fff82ce04061a6a2", + "checksum": "6fb5642c437718d0c39d014ef247be0b", "grade": true, "grade_id": "cell-3d469d43b37c3c40", "locked": true, @@ -418,10 +418,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"7abd4bf8465e1625\").hexdigest() == \"58a9855cc897d9590e5d49ca4d1cb81b54713eef\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", - "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"7abd4bf8465e1625\").hexdigest() == \"f8a2ba94b8c2e59ef91e0d6a1de5d8421df9900b\", \"length of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"7abd4bf8465e1625\").hexdigest() == \"305cc78a46b45d6379a593841940a627c9aecab7\", \"value of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"7abd4bf8465e1625\").hexdigest() == \"ba2476c4cffe9778b9d0c72af099801088a7b623\", \"correct string value of answer1_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"a6884b4e9568c336\").hexdigest() == \"323b35234c4aee666c81031129c58547f225da90\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", + "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"a6884b4e9568c336\").hexdigest() == \"6e1631aef38b9bb509f606c086e46617ab91def0\", \"length of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"a6884b4e9568c336\").hexdigest() == \"f4d8802375db62f06d96ba1e9749ffe7c0f1814a\", \"value of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"a6884b4e9568c336\").hexdigest() == \"5b0bfcab8e256fe2d9312856a772e43c9aff80ca\", \"correct string value of answer1_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -486,7 +486,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "43145f498de7b326653a6a919d937d7b", + "checksum": "5025c527b68c96da6b4967aeb56aeb20", "grade": true, "grade_id": "cell-b985ee138ab89218", "locked": true, @@ -499,8 +499,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_dist_2)).encode(\"utf-8\")+b\"c800fef3748e6b09\").hexdigest() == \"b8cc3042e50c86921048bab5f56ac7cfc78de6c6\", \"type of fruit_dist_2 is not correct\"\n", - "assert sha1(str(fruit_dist_2).encode(\"utf-8\")+b\"c800fef3748e6b09\").hexdigest() == \"a75cfc965843a5132139a9a70e3063575861b4db\", \"value of fruit_dist_2 is not correct\"\n", + "assert sha1(str(type(fruit_dist_2)).encode(\"utf-8\")+b\"55f501d1d0040e0d\").hexdigest() == \"908775688c2fd82d12162aff8dffd436d1afb22e\", \"type of fruit_dist_2 is not correct\"\n", + "assert sha1(str(fruit_dist_2).encode(\"utf-8\")+b\"55f501d1d0040e0d\").hexdigest() == \"3f3b9190dbe86f486451b55a1a1f22b50f41a693\", \"value of fruit_dist_2 is not correct\"\n", "\n", "print('Success!')" ] @@ -561,7 +561,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f3843016b7c3c530b6099d214cf0bd09", + "checksum": "af50513b0e3fe3fa65291098a9952b6f", "grade": true, "grade_id": "cell-34cfcd13bb1f5097", "locked": true, @@ -574,8 +574,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_dist_44)).encode(\"utf-8\")+b\"12796f9f94b96106\").hexdigest() == \"1de0febc561ad82f2683767f9d9ad762296cad22\", \"type of fruit_dist_44 is not correct\"\n", - "assert sha1(str(fruit_dist_44).encode(\"utf-8\")+b\"12796f9f94b96106\").hexdigest() == \"dc82e468e9333a47b63a3d37568b8fb37da20522\", \"value of fruit_dist_44 is not correct\"\n", + "assert sha1(str(type(fruit_dist_44)).encode(\"utf-8\")+b\"8fe65ecb7fa0747f\").hexdigest() == \"2d0e062cdae6c63fa41e66bddff788f82d0ab325\", \"type of fruit_dist_44 is not correct\"\n", + "assert sha1(str(fruit_dist_44).encode(\"utf-8\")+b\"8fe65ecb7fa0747f\").hexdigest() == \"ebe8af759153293119141781ca71de14af9f378d\", \"value of fruit_dist_44 is not correct\"\n", "\n", "print('Success!')" ] @@ -698,7 +698,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "dbc7f4ef1893e1ad9754305d133bd544", + "checksum": "48a0575f2ba898bd25030aa1f09d8ed0", "grade": true, "grade_id": "cell-89c07cb539498da4", "locked": true, @@ -711,10 +711,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_4)).encode(\"utf-8\")+b\"9745ae5230c878d9\").hexdigest() == \"f012eb87b0d5c62dc31e2d35433ede564c1d2180\", \"type of answer1_4 is not str. answer1_4 should be an str\"\n", - "assert sha1(str(len(answer1_4)).encode(\"utf-8\")+b\"9745ae5230c878d9\").hexdigest() == \"27691af6774a470ad82493bd32039561a6122f48\", \"length of answer1_4 is not correct\"\n", - "assert sha1(str(answer1_4.lower()).encode(\"utf-8\")+b\"9745ae5230c878d9\").hexdigest() == \"445dcd90c7da2206cde0537a4c383b0f984c39da\", \"value of answer1_4 is not correct\"\n", - "assert sha1(str(answer1_4).encode(\"utf-8\")+b\"9745ae5230c878d9\").hexdigest() == \"aba2b4ff813bedcfb086b8df89b88064448a9638\", \"correct string value of answer1_4 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_4)).encode(\"utf-8\")+b\"4c840f2f8c7e2ecc\").hexdigest() == \"8d747569f3410014cbe1e93f3aac961e6daacb20\", \"type of answer1_4 is not str. answer1_4 should be an str\"\n", + "assert sha1(str(len(answer1_4)).encode(\"utf-8\")+b\"4c840f2f8c7e2ecc\").hexdigest() == \"019a2fd8949918ffc77b122412eae0e90f95716a\", \"length of answer1_4 is not correct\"\n", + "assert sha1(str(answer1_4.lower()).encode(\"utf-8\")+b\"4c840f2f8c7e2ecc\").hexdigest() == \"5ad901d90db7946bd30a2589ab7c1d6cbcac3cf3\", \"value of answer1_4 is not correct\"\n", + "assert sha1(str(answer1_4).encode(\"utf-8\")+b\"4c840f2f8c7e2ecc\").hexdigest() == \"f0cd4d398aaa46c0154955477ce62b3c46dc153a\", \"correct string value of answer1_4 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -786,7 +786,7 @@ "lines_to_next_cell": 2, "nbgrader": { "cell_type": "code", - "checksum": "642917256166870f7770e4354cafc663", + "checksum": "cd4005040ff79c021614728bffa40467", "grade": true, "grade_id": "cell-1897bc0107b67ecc", "locked": true, @@ -799,48 +799,48 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_data_scaled is None)).encode(\"utf-8\")+b\"e5c73cd12b5895f7\").hexdigest() == \"a96dc8995cac014b0a6cef7cd1f7bf7fb184a2a7\", \"type of fruit_data_scaled is None is not bool. fruit_data_scaled is None should be a bool\"\n", - "assert sha1(str(fruit_data_scaled is None).encode(\"utf-8\")+b\"e5c73cd12b5895f7\").hexdigest() == \"40506ea1c3e73f28c97e417b92f9fe52f2540806\", \"boolean value of fruit_data_scaled is None is not correct\"\n", + "assert sha1(str(type(fruit_data_scaled is None)).encode(\"utf-8\")+b\"335d9c06fbd9d8ad\").hexdigest() == \"3f73c3e9f48dc9cc05dfc4007f63f9abea0f0f53\", \"type of fruit_data_scaled is None is not bool. fruit_data_scaled is None should be a bool\"\n", + "assert sha1(str(fruit_data_scaled is None).encode(\"utf-8\")+b\"335d9c06fbd9d8ad\").hexdigest() == \"81d8bc987fa226de6fb0b34a13f1f71a780e8ef1\", \"boolean value of fruit_data_scaled is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_data_scaled.shape)).encode(\"utf-8\")+b\"02af27da26fee728\").hexdigest() == \"320020431b6e57edcfe096a87ba6ad10c646fbe8\", \"type of fruit_data_scaled.shape is not tuple. fruit_data_scaled.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_data_scaled.shape)).encode(\"utf-8\")+b\"02af27da26fee728\").hexdigest() == \"8cca7688bd0a459ca38afd3e95594b8c615592f4\", \"length of fruit_data_scaled.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_data_scaled.shape))).encode(\"utf-8\")+b\"02af27da26fee728\").hexdigest() == \"c0022bc43a05a304f94eb3ad779d228f1e4d1006\", \"values of fruit_data_scaled.shape are not correct\"\n", - "assert sha1(str(fruit_data_scaled.shape).encode(\"utf-8\")+b\"02af27da26fee728\").hexdigest() == \"d1456ecfe94cb82d5e7b370f1e455698d1ce15cb\", \"order of elements of fruit_data_scaled.shape is not correct\"\n", + "assert sha1(str(type(fruit_data_scaled.shape)).encode(\"utf-8\")+b\"b84e13a83eacce58\").hexdigest() == \"1b6adf18ca101c60e9e31011f144c31539de5433\", \"type of fruit_data_scaled.shape is not tuple. fruit_data_scaled.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_data_scaled.shape)).encode(\"utf-8\")+b\"b84e13a83eacce58\").hexdigest() == \"e85999eab51a47313915baddb00c3ff3b754c2f0\", \"length of fruit_data_scaled.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_data_scaled.shape))).encode(\"utf-8\")+b\"b84e13a83eacce58\").hexdigest() == \"d4b92462378b2348c777b01a78f59566909afbaa\", \"values of fruit_data_scaled.shape are not correct\"\n", + "assert sha1(str(fruit_data_scaled.shape).encode(\"utf-8\")+b\"b84e13a83eacce58\").hexdigest() == \"4c7064e30c4abe180696604c9dc78586b2fd8b50\", \"order of elements of fruit_data_scaled.shape is not correct\"\n", "\n", - "assert sha1(str(type(fruit_data_scaled.fruit_name.dtype)).encode(\"utf-8\")+b\"8abbfc6a1111f31a\").hexdigest() == \"9bfe419c3b7b99c4cb125307c94aa6a49be3b968\", \"type of fruit_data_scaled.fruit_name.dtype is not correct\"\n", - "assert sha1(str(fruit_data_scaled.fruit_name.dtype).encode(\"utf-8\")+b\"8abbfc6a1111f31a\").hexdigest() == \"1a0f1d96dbe3ce802268e5b6db9baa338db6c4e5\", \"value of fruit_data_scaled.fruit_name.dtype is not correct\"\n", + "assert sha1(str(type(fruit_data_scaled.fruit_name.dtype)).encode(\"utf-8\")+b\"acde151bb6541ce1\").hexdigest() == \"4e36f874a3f2ba4fa8be553811b77edf81582c1c\", \"type of fruit_data_scaled.fruit_name.dtype is not correct\"\n", + "assert sha1(str(fruit_data_scaled.fruit_name.dtype).encode(\"utf-8\")+b\"acde151bb6541ce1\").hexdigest() == \"0ebba7f85d49467655ea11525b92744bcbcfc21f\", \"value of fruit_data_scaled.fruit_name.dtype is not correct\"\n", "\n", - "assert sha1(str(type(np.mean(fruit_data_scaled.mass.dropna()))).encode(\"utf-8\")+b\"33a1a8f956af1e12\").hexdigest() == \"82c455fe3dbf54dd0b081863a085dfe581c14064\", \"type of np.mean(fruit_data_scaled.mass.dropna()) is not correct\"\n", - "assert sha1(str(np.mean(fruit_data_scaled.mass.dropna())).encode(\"utf-8\")+b\"33a1a8f956af1e12\").hexdigest() == \"1be8f92352f126a1cf245ffce9836de79f75e021\", \"value of np.mean(fruit_data_scaled.mass.dropna()) is not correct\"\n", + "assert sha1(str(type(np.mean(fruit_data_scaled.mass.dropna()))).encode(\"utf-8\")+b\"83625941ae7f5d67\").hexdigest() == \"b9568758dcd23e2ecbae067007a66155d884826e\", \"type of np.mean(fruit_data_scaled.mass.dropna()) is not correct\"\n", + "assert sha1(str(np.mean(fruit_data_scaled.mass.dropna())).encode(\"utf-8\")+b\"83625941ae7f5d67\").hexdigest() == \"ec266f33b3b04846efff5c5e2d5bb576226a18b7\", \"value of np.mean(fruit_data_scaled.mass.dropna()) is not correct\"\n", "\n", - "assert sha1(str(type(np.mean(fruit_data_scaled.height.dropna()))).encode(\"utf-8\")+b\"c2c3984573c11958\").hexdigest() == \"2c65b5df912158243661e5b46b8e7ab68a511905\", \"type of np.mean(fruit_data_scaled.height.dropna()) is not correct\"\n", - "assert sha1(str(np.mean(fruit_data_scaled.height.dropna())).encode(\"utf-8\")+b\"c2c3984573c11958\").hexdigest() == \"b9970ac475f7083a0d43552d6a2560094343ee71\", \"value of np.mean(fruit_data_scaled.height.dropna()) is not correct\"\n", + "assert sha1(str(type(np.mean(fruit_data_scaled.height.dropna()))).encode(\"utf-8\")+b\"e92db8446096557d\").hexdigest() == \"e3e8da42f5a9797deafbff97feb10a26f11dce10\", \"type of np.mean(fruit_data_scaled.height.dropna()) is not correct\"\n", + "assert sha1(str(np.mean(fruit_data_scaled.height.dropna())).encode(\"utf-8\")+b\"e92db8446096557d\").hexdigest() == \"69a167c8cb79808943f579974a959f42e1c65372\", \"value of np.mean(fruit_data_scaled.height.dropna()) is not correct\"\n", "\n", - "assert sha1(str(type(np.mean(fruit_data_scaled.width.dropna()))).encode(\"utf-8\")+b\"ddb95c3de102596a\").hexdigest() == \"712d483f8ebb9cbba4882505945336bf9fbefc72\", \"type of np.mean(fruit_data_scaled.width.dropna()) is not correct\"\n", - "assert sha1(str(np.mean(fruit_data_scaled.width.dropna())).encode(\"utf-8\")+b\"ddb95c3de102596a\").hexdigest() == \"20d5ea675f4de35d654d51560df90b9666145326\", \"value of np.mean(fruit_data_scaled.width.dropna()) is not correct\"\n", + "assert sha1(str(type(np.mean(fruit_data_scaled.width.dropna()))).encode(\"utf-8\")+b\"a46e68060c97aa3e\").hexdigest() == \"4ae9a7d44f937d4b662abda9de4d4b858eee729e\", \"type of np.mean(fruit_data_scaled.width.dropna()) is not correct\"\n", + "assert sha1(str(np.mean(fruit_data_scaled.width.dropna())).encode(\"utf-8\")+b\"a46e68060c97aa3e\").hexdigest() == \"bf057696429ecb6063c44f5d355319591650cfaf\", \"value of np.mean(fruit_data_scaled.width.dropna()) is not correct\"\n", "\n", - "assert sha1(str(type(np.mean(fruit_data_scaled.color_score.dropna()))).encode(\"utf-8\")+b\"a44fd5a211115d31\").hexdigest() == \"518e4dc642e9137526838c73d7fc1720df721fba\", \"type of np.mean(fruit_data_scaled.color_score.dropna()) is not correct\"\n", - "assert sha1(str(np.mean(fruit_data_scaled.color_score.dropna())).encode(\"utf-8\")+b\"a44fd5a211115d31\").hexdigest() == \"7106e97c9c828041e3bf9015081284c8fbaa2009\", \"value of np.mean(fruit_data_scaled.color_score.dropna()) is not correct\"\n", + "assert sha1(str(type(np.mean(fruit_data_scaled.color_score.dropna()))).encode(\"utf-8\")+b\"87a200924ab10707\").hexdigest() == \"b39ebd54400334f2bfd04f156a231d79b5755aac\", \"type of np.mean(fruit_data_scaled.color_score.dropna()) is not correct\"\n", + "assert sha1(str(np.mean(fruit_data_scaled.color_score.dropna())).encode(\"utf-8\")+b\"87a200924ab10707\").hexdigest() == \"eb693a3fdb7c1da732708d05d63e775758a50adc\", \"value of np.mean(fruit_data_scaled.color_score.dropna()) is not correct\"\n", "\n", - "assert sha1(str(type(np.std(fruit_data_scaled.mass.dropna()))).encode(\"utf-8\")+b\"393022ca525c2308\").hexdigest() == \"96e9d22319bbde78cf5e06dbf2e190c574ac0664\", \"type of np.std(fruit_data_scaled.mass.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(np.std(fruit_data_scaled.mass.dropna()), 2)).encode(\"utf-8\")+b\"393022ca525c2308\").hexdigest() == \"18cbdabdd499f4a9185c1efd27de96f75de7df91\", \"value of np.std(fruit_data_scaled.mass.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(np.std(fruit_data_scaled.mass.dropna()))).encode(\"utf-8\")+b\"9ba7ebb5e32d0577\").hexdigest() == \"e3808885a14785cd9fc3d5fc72b7336f0f51aea9\", \"type of np.std(fruit_data_scaled.mass.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(np.std(fruit_data_scaled.mass.dropna()), 2)).encode(\"utf-8\")+b\"9ba7ebb5e32d0577\").hexdigest() == \"ac78a864fe74cf5f387cdbf7f6aa38482eb8fdd1\", \"value of np.std(fruit_data_scaled.mass.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(np.std(fruit_data_scaled.height.dropna()))).encode(\"utf-8\")+b\"db4c1b4fc67bddd7\").hexdigest() == \"b4b6aeb884bda6bdd2b08dac7a9b1e0bb480d927\", \"type of np.std(fruit_data_scaled.height.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(np.std(fruit_data_scaled.height.dropna()), 2)).encode(\"utf-8\")+b\"db4c1b4fc67bddd7\").hexdigest() == \"11f20ed4470fabb5b1f077f130e954cf109daaef\", \"value of np.std(fruit_data_scaled.height.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(np.std(fruit_data_scaled.height.dropna()))).encode(\"utf-8\")+b\"e1f6f56efee33b3d\").hexdigest() == \"37de2552874a12fc78316065e9526a29d6418b8f\", \"type of np.std(fruit_data_scaled.height.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(np.std(fruit_data_scaled.height.dropna()), 2)).encode(\"utf-8\")+b\"e1f6f56efee33b3d\").hexdigest() == \"0f16ce12f1736b9ecc863650451165cee16f65dc\", \"value of np.std(fruit_data_scaled.height.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(np.std(fruit_data_scaled.width.dropna()))).encode(\"utf-8\")+b\"0b3737eae218638b\").hexdigest() == \"6b03965f042cc5b413d58508227ef8853f464c18\", \"type of np.std(fruit_data_scaled.width.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(np.std(fruit_data_scaled.width.dropna()), 2)).encode(\"utf-8\")+b\"0b3737eae218638b\").hexdigest() == \"7d3fd17e366d6417799faa81a027f0f4b4cc3975\", \"value of np.std(fruit_data_scaled.width.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(np.std(fruit_data_scaled.width.dropna()))).encode(\"utf-8\")+b\"3b91da2697165d74\").hexdigest() == \"2c29db3fed17b5e493bed3d2bd3a790e9a4aa356\", \"type of np.std(fruit_data_scaled.width.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(np.std(fruit_data_scaled.width.dropna()), 2)).encode(\"utf-8\")+b\"3b91da2697165d74\").hexdigest() == \"6624cfea1bbe347dfae99bff332914d32bc1d362\", \"value of np.std(fruit_data_scaled.width.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(np.std(fruit_data_scaled.color_score.dropna()))).encode(\"utf-8\")+b\"475a7cabdb502ef6\").hexdigest() == \"1ed48605e0f548d7dd9ceed0c4c5d3acc4430c61\", \"type of np.std(fruit_data_scaled.color_score.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(np.std(fruit_data_scaled.color_score.dropna()), 2)).encode(\"utf-8\")+b\"475a7cabdb502ef6\").hexdigest() == \"487f448daebb663d621175107fbd7e5d39980dc6\", \"value of np.std(fruit_data_scaled.color_score.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(np.std(fruit_data_scaled.color_score.dropna()))).encode(\"utf-8\")+b\"8c28c0eab4710b65\").hexdigest() == \"d467f0d7f745fc12391ea02eb10494b5c4553b1a\", \"type of np.std(fruit_data_scaled.color_score.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(np.std(fruit_data_scaled.color_score.dropna()), 2)).encode(\"utf-8\")+b\"8c28c0eab4710b65\").hexdigest() == \"3c4e50b418f8586e3c69fecf90bab4dc8548b451\", \"value of np.std(fruit_data_scaled.color_score.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(fruit_data_preprocessor is None)).encode(\"utf-8\")+b\"0a2ea9c5cbe3201a\").hexdigest() == \"9f9d4e5cf13c03fb320b8acf8d8ed160330304db\", \"type of fruit_data_preprocessor is None is not bool. fruit_data_preprocessor is None should be a bool\"\n", - "assert sha1(str(fruit_data_preprocessor is None).encode(\"utf-8\")+b\"0a2ea9c5cbe3201a\").hexdigest() == \"f4282f5b6d0c1d3b132f1f810cfaaacde70c04ce\", \"boolean value of fruit_data_preprocessor is None is not correct\"\n", + "assert sha1(str(type(fruit_data_preprocessor is None)).encode(\"utf-8\")+b\"31e30d515edaa809\").hexdigest() == \"e447a328fe94bafa9b4588cae36fb9a4db3304ae\", \"type of fruit_data_preprocessor is None is not bool. fruit_data_preprocessor is None should be a bool\"\n", + "assert sha1(str(fruit_data_preprocessor is None).encode(\"utf-8\")+b\"31e30d515edaa809\").hexdigest() == \"5b658ebdfeccf5440cd48c39927e19299918a74b\", \"boolean value of fruit_data_preprocessor is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_data_preprocessor.transformers_[1][2])).encode(\"utf-8\")+b\"f37c0e6b332bb9a5\").hexdigest() == \"287c70bda3a688dfc188464eb0cf6fa8bbeec59a\", \"type of fruit_data_preprocessor.transformers_[1][2] is not list. fruit_data_preprocessor.transformers_[1][2] should be a list\"\n", - "assert sha1(str(len(fruit_data_preprocessor.transformers_[1][2])).encode(\"utf-8\")+b\"f37c0e6b332bb9a5\").hexdigest() == \"8fd5a68b4835f44ea46490c03974d48bb9db33ab\", \"length of fruit_data_preprocessor.transformers_[1][2] is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_data_preprocessor.transformers_[1][2]))).encode(\"utf-8\")+b\"f37c0e6b332bb9a5\").hexdigest() == \"18eaee03e8263dbb5c383ea09692475a666e4a0f\", \"values of fruit_data_preprocessor.transformers_[1][2] are not correct\"\n", - "assert sha1(str(fruit_data_preprocessor.transformers_[1][2]).encode(\"utf-8\")+b\"f37c0e6b332bb9a5\").hexdigest() == \"5758a068b946d26576a50bf79ae014e8fcff52d5\", \"order of elements of fruit_data_preprocessor.transformers_[1][2] is not correct\"\n", + "assert sha1(str(type(fruit_data_preprocessor.transformers_[1][2])).encode(\"utf-8\")+b\"5bb8d93cae37abca\").hexdigest() == \"927325026578f8a2ad91a7d6ddd219dab2d17104\", \"type of fruit_data_preprocessor.transformers_[1][2] is not list. fruit_data_preprocessor.transformers_[1][2] should be a list\"\n", + "assert sha1(str(len(fruit_data_preprocessor.transformers_[1][2])).encode(\"utf-8\")+b\"5bb8d93cae37abca\").hexdigest() == \"89d40589f970b9e9cdeacbeac3d6b306e394a41a\", \"length of fruit_data_preprocessor.transformers_[1][2] is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_data_preprocessor.transformers_[1][2]))).encode(\"utf-8\")+b\"5bb8d93cae37abca\").hexdigest() == \"6ba71057226ce114fd2a97a2d44fecef69ff6335\", \"values of fruit_data_preprocessor.transformers_[1][2] are not correct\"\n", + "assert sha1(str(fruit_data_preprocessor.transformers_[1][2]).encode(\"utf-8\")+b\"5bb8d93cae37abca\").hexdigest() == \"6116d4eb2eee9c3e4d73ecd588e9b2d27add4d52\", \"order of elements of fruit_data_preprocessor.transformers_[1][2] is not correct\"\n", "\n", "print('Success!')" ] @@ -907,7 +907,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d0c2530f32ee70a2345e664fb6440581", + "checksum": "dcf07e79a27605225351979df6e13b0f", "grade": true, "grade_id": "cell-7316457bcda1bf40", "locked": true, @@ -920,21 +920,21 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(distance_2 is None)).encode(\"utf-8\")+b\"54596d681b6ff5bd\").hexdigest() == \"e61255536d4e6508504739f38f38e92bdfbe9120\", \"type of distance_2 is None is not bool. distance_2 is None should be a bool\"\n", - "assert sha1(str(distance_2 is None).encode(\"utf-8\")+b\"54596d681b6ff5bd\").hexdigest() == \"ef3348717dd19706ede349459f2d898fe89867f0\", \"boolean value of distance_2 is None is not correct\"\n", + "assert sha1(str(type(distance_2 is None)).encode(\"utf-8\")+b\"0ea80747a2598e5d\").hexdigest() == \"8c99a4740301f868363024cf1b10a34edcaea1e8\", \"type of distance_2 is None is not bool. distance_2 is None should be a bool\"\n", + "assert sha1(str(distance_2 is None).encode(\"utf-8\")+b\"0ea80747a2598e5d\").hexdigest() == \"3d4fa147bde5aefabee1abd4194cd2d10e4b5c4b\", \"boolean value of distance_2 is None is not correct\"\n", "\n", - "assert sha1(str(type(distance_44 is None)).encode(\"utf-8\")+b\"22678086779e359f\").hexdigest() == \"4c2851a8b6931f218fca6472d77fae213f00126f\", \"type of distance_44 is None is not bool. distance_44 is None should be a bool\"\n", - "assert sha1(str(distance_44 is None).encode(\"utf-8\")+b\"22678086779e359f\").hexdigest() == \"08d3de83842bb7a6896e5f9f103e422817f4f480\", \"boolean value of distance_44 is None is not correct\"\n", + "assert sha1(str(type(distance_44 is None)).encode(\"utf-8\")+b\"7cea975e2dfcccf6\").hexdigest() == \"e75701b4cd5b7ac845b9140942c7bf5f51c2ec44\", \"type of distance_44 is None is not bool. distance_44 is None should be a bool\"\n", + "assert sha1(str(distance_44 is None).encode(\"utf-8\")+b\"7cea975e2dfcccf6\").hexdigest() == \"92180fbe3803a5dc0d8423ccb1cc6870b2e13738\", \"boolean value of distance_44 is None is not correct\"\n", "\n", - "assert sha1(str(type(distance_2)).encode(\"utf-8\")+b\"d4f3bd664cf80ede\").hexdigest() == \"f180d0292aee8e7b5f552c2370d874bdce9f3aad\", \"type of type(distance_2) is not correct\"\n", + "assert sha1(str(type(distance_2)).encode(\"utf-8\")+b\"04568ab9de664a1e\").hexdigest() == \"2bf8c7bd116212891edd664264fb1eeb7a5c0082\", \"type of type(distance_2) is not correct\"\n", "\n", - "assert sha1(str(type(distance_44)).encode(\"utf-8\")+b\"2711b66d167b622d\").hexdigest() == \"1d26b9b90a691109c2c616eb90d14a9cac39c34a\", \"type of type(distance_44) is not correct\"\n", + "assert sha1(str(type(distance_44)).encode(\"utf-8\")+b\"835565244bdae132\").hexdigest() == \"f29a10b6a1386b21a0639449afa9e87398d0a13a\", \"type of type(distance_44) is not correct\"\n", "\n", - "assert sha1(str(type(distance_2)).encode(\"utf-8\")+b\"d5ae27a36a2c2538\").hexdigest() == \"6fc9a2c39ea144bfd3482f65b28922fc90ebd9f4\", \"type of distance_2 is not correct\"\n", - "assert sha1(str(distance_2).encode(\"utf-8\")+b\"d5ae27a36a2c2538\").hexdigest() == \"afc7c533244e9a68fc7032ac6be823fb53245bb4\", \"value of distance_2 is not correct\"\n", + "assert sha1(str(type(distance_2)).encode(\"utf-8\")+b\"db8259fee5b956eb\").hexdigest() == \"634a51b4fc9c9d4fa1c3806b72cf5c80fbbac6f4\", \"type of distance_2 is not correct\"\n", + "assert sha1(str(distance_2).encode(\"utf-8\")+b\"db8259fee5b956eb\").hexdigest() == \"69f2bdb3f28c99ff05121d76ebdace214856192d\", \"value of distance_2 is not correct\"\n", "\n", - "assert sha1(str(type(distance_44)).encode(\"utf-8\")+b\"15ab4dd22d431b44\").hexdigest() == \"b0944c3a7a68e0cea20d6364d3818356cc667997\", \"type of distance_44 is not correct\"\n", - "assert sha1(str(distance_44).encode(\"utf-8\")+b\"15ab4dd22d431b44\").hexdigest() == \"c0173f290f1af04fab1299676e61f52323eedc47\", \"value of distance_44 is not correct\"\n", + "assert sha1(str(type(distance_44)).encode(\"utf-8\")+b\"1861c601909daeb8\").hexdigest() == \"aa97dd085fc92f0ef926baa4acb875e1d8d83db9\", \"type of distance_44 is not correct\"\n", + "assert sha1(str(distance_44).encode(\"utf-8\")+b\"1861c601909daeb8\").hexdigest() == \"20f4ac66462deed4e2847f8598af7217d316b767\", \"value of distance_44 is not correct\"\n", "\n", "print('Success!')" ] @@ -1034,7 +1034,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "906324641ba9989d7a0351d6b090eadf", + "checksum": "08d4dee9b560f5117eadd62a4e1dfe58", "grade": true, "grade_id": "cell-7432078031e563b8", "locked": true, @@ -1046,27 +1046,27 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_train is None)).encode(\"utf-8\")+b\"24342867dfcccaf2\").hexdigest() == \"811adc7c9ebdc4344c54e6ec9ec3f832094594af\", \"type of fruit_train is None is not bool. fruit_train is None should be a bool\"\n", - "assert sha1(str(fruit_train is None).encode(\"utf-8\")+b\"24342867dfcccaf2\").hexdigest() == \"68c963a77b2c5c8da57f644f744cc1d56ed2861e\", \"boolean value of fruit_train is None is not correct\"\n", + "assert sha1(str(type(fruit_train is None)).encode(\"utf-8\")+b\"01bdb9326dd0c6db\").hexdigest() == \"fe7df01077d8132ab457af18d81dac2694110e9c\", \"type of fruit_train is None is not bool. fruit_train is None should be a bool\"\n", + "assert sha1(str(fruit_train is None).encode(\"utf-8\")+b\"01bdb9326dd0c6db\").hexdigest() == \"0896557e60d618d842cfc35bedd779928e63edbc\", \"boolean value of fruit_train is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_test is None)).encode(\"utf-8\")+b\"e0cddf4c66a72569\").hexdigest() == \"7805dab51d5c0e7bbb5fba81014f88494c997500\", \"type of fruit_test is None is not bool. fruit_test is None should be a bool\"\n", - "assert sha1(str(fruit_test is None).encode(\"utf-8\")+b\"e0cddf4c66a72569\").hexdigest() == \"2312d407ddb9218bba7db39f37d8499a5cd6f13b\", \"boolean value of fruit_test is None is not correct\"\n", + "assert sha1(str(type(fruit_test is None)).encode(\"utf-8\")+b\"d83f89fbda208926\").hexdigest() == \"b065b6aa1430ba62a4f70922a629f03cf53e14c3\", \"type of fruit_test is None is not bool. fruit_test is None should be a bool\"\n", + "assert sha1(str(fruit_test is None).encode(\"utf-8\")+b\"d83f89fbda208926\").hexdigest() == \"4d602038582e415547820554a9eaa8c3ba44b149\", \"boolean value of fruit_test is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_train.shape)).encode(\"utf-8\")+b\"06402b6d100e7cbc\").hexdigest() == \"238abb079d66ebf1fcb2399b7d6c51c421655f60\", \"type of fruit_train.shape is not tuple. fruit_train.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_train.shape)).encode(\"utf-8\")+b\"06402b6d100e7cbc\").hexdigest() == \"e1e0a8763752ced476e396729d9b0024c3815955\", \"length of fruit_train.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_train.shape))).encode(\"utf-8\")+b\"06402b6d100e7cbc\").hexdigest() == \"6bf53eb079bf913c8f61d86cd95c09a2464baaaf\", \"values of fruit_train.shape are not correct\"\n", - "assert sha1(str(fruit_train.shape).encode(\"utf-8\")+b\"06402b6d100e7cbc\").hexdigest() == \"e6c7ca053d7df65ed13d9bf936158d3c2ec62ed7\", \"order of elements of fruit_train.shape is not correct\"\n", + "assert sha1(str(type(fruit_train.shape)).encode(\"utf-8\")+b\"e9fbc8b10be080b5\").hexdigest() == \"2cc5ea275061feb765bf1ca382536750c981894a\", \"type of fruit_train.shape is not tuple. fruit_train.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_train.shape)).encode(\"utf-8\")+b\"e9fbc8b10be080b5\").hexdigest() == \"c67e8d5c1c6f6109debc5f2e849182f8783b885f\", \"length of fruit_train.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_train.shape))).encode(\"utf-8\")+b\"e9fbc8b10be080b5\").hexdigest() == \"db919a59697d584a12481cc32bd5608734110811\", \"values of fruit_train.shape are not correct\"\n", + "assert sha1(str(fruit_train.shape).encode(\"utf-8\")+b\"e9fbc8b10be080b5\").hexdigest() == \"a55271fac4e27d4510dc3b6b9c5f83230b4c0c28\", \"order of elements of fruit_train.shape is not correct\"\n", "\n", - "assert sha1(str(type(fruit_test.shape)).encode(\"utf-8\")+b\"b2f74b2b72f872c9\").hexdigest() == \"0a70a6054198839631fabd3d6c1b918cb28704ff\", \"type of fruit_test.shape is not tuple. fruit_test.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_test.shape)).encode(\"utf-8\")+b\"b2f74b2b72f872c9\").hexdigest() == \"a743342bb1a06c20d0a777e9eda5d9c0028aa7d3\", \"length of fruit_test.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_test.shape))).encode(\"utf-8\")+b\"b2f74b2b72f872c9\").hexdigest() == \"be8acd28c2b38762710860ed7bc85e915bca0d4e\", \"values of fruit_test.shape are not correct\"\n", - "assert sha1(str(fruit_test.shape).encode(\"utf-8\")+b\"b2f74b2b72f872c9\").hexdigest() == \"4777aaad92b6f528358048442826dc1e4bfaecd3\", \"order of elements of fruit_test.shape is not correct\"\n", + "assert sha1(str(type(fruit_test.shape)).encode(\"utf-8\")+b\"4299f6f2ce6b20da\").hexdigest() == \"ba06b361268521470e933f171e95bc56fd3d9e86\", \"type of fruit_test.shape is not tuple. fruit_test.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_test.shape)).encode(\"utf-8\")+b\"4299f6f2ce6b20da\").hexdigest() == \"66534ae8938c8a2944b260a00b38ddff191e9970\", \"length of fruit_test.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_test.shape))).encode(\"utf-8\")+b\"4299f6f2ce6b20da\").hexdigest() == \"f49b10ca38d6b7961942155dab92abec964336fe\", \"values of fruit_test.shape are not correct\"\n", + "assert sha1(str(fruit_test.shape).encode(\"utf-8\")+b\"4299f6f2ce6b20da\").hexdigest() == \"411c7f7a06bb04e157efb087dc29787f7eae4a5a\", \"order of elements of fruit_test.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(fruit_train.mass))).encode(\"utf-8\")+b\"c2c3f915ae2d2c54\").hexdigest() == \"2516cb8e7c0f530dc941ffcce939feca9b22798e\", \"type of sum(fruit_train.mass) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(fruit_train.mass)).encode(\"utf-8\")+b\"c2c3f915ae2d2c54\").hexdigest() == \"741bb248fa1065262793ac10529ec0d0cec514c5\", \"value of sum(fruit_train.mass) is not correct\"\n", + "assert sha1(str(type(sum(fruit_train.mass))).encode(\"utf-8\")+b\"26738db12aaccfee\").hexdigest() == \"59f2ca45ef332ff18e4cc8d37f19306d75d1396a\", \"type of sum(fruit_train.mass) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(fruit_train.mass)).encode(\"utf-8\")+b\"26738db12aaccfee\").hexdigest() == \"bac1b0c190bde404b7f8f6e5198f4b4b2f092990\", \"value of sum(fruit_train.mass) is not correct\"\n", "\n", - "assert sha1(str(type(sum(fruit_test.mass))).encode(\"utf-8\")+b\"b5ebf28d54866727\").hexdigest() == \"738ad299f2b7387e05b7405f657af12b10f003b5\", \"type of sum(fruit_test.mass) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(fruit_test.mass)).encode(\"utf-8\")+b\"b5ebf28d54866727\").hexdigest() == \"6f423d9c24961ca0d42d6661946e263ad973bc9b\", \"value of sum(fruit_test.mass) is not correct\"\n", + "assert sha1(str(type(sum(fruit_test.mass))).encode(\"utf-8\")+b\"1b937fa25c88692e\").hexdigest() == \"f60dfb2e97d2b56173655cb18aecb83d9ae0e303\", \"type of sum(fruit_test.mass) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(fruit_test.mass)).encode(\"utf-8\")+b\"1b937fa25c88692e\").hexdigest() == \"a1c7ca0db9eb78a4efe06c231591b905ede85057\", \"value of sum(fruit_test.mass) is not correct\"\n", "\n", "print('Success!')" ] @@ -1136,7 +1136,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "44022e47752296eab70314ce512697ca", + "checksum": "61a8f641fe49c20941b724861c304513", "grade": true, "grade_id": "cell-2453aaa31ba794b6", "locked": true, @@ -1149,21 +1149,21 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_preprocessor is None)).encode(\"utf-8\")+b\"d42b3095d77fb519\").hexdigest() == \"16561b615f488024931605c5d086b606c92e2d08\", \"type of fruit_preprocessor is None is not bool. fruit_preprocessor is None should be a bool\"\n", - "assert sha1(str(fruit_preprocessor is None).encode(\"utf-8\")+b\"d42b3095d77fb519\").hexdigest() == \"cdc1965d0bc271fed44d95ec60b1218be509b29e\", \"boolean value of fruit_preprocessor is None is not correct\"\n", + "assert sha1(str(type(fruit_preprocessor is None)).encode(\"utf-8\")+b\"5d0ef2e2cf875127\").hexdigest() == \"5f56262cf89d0456e09f2d338e4538c677c71996\", \"type of fruit_preprocessor is None is not bool. fruit_preprocessor is None should be a bool\"\n", + "assert sha1(str(fruit_preprocessor is None).encode(\"utf-8\")+b\"5d0ef2e2cf875127\").hexdigest() == \"9634cadf7fbcc8f4475073094fc2df002b0e042f\", \"boolean value of fruit_preprocessor is None is not correct\"\n", "\n", - "assert sha1(str(type(type(fruit_preprocessor))).encode(\"utf-8\")+b\"8194df6623dc9099\").hexdigest() == \"3aef8cf41a81932797549a6491ca4bfee5ee1d03\", \"type of type(fruit_preprocessor) is not correct\"\n", - "assert sha1(str(type(fruit_preprocessor)).encode(\"utf-8\")+b\"8194df6623dc9099\").hexdigest() == \"a601aa849359aace6a9847de17305b3b51cd839b\", \"value of type(fruit_preprocessor) is not correct\"\n", + "assert sha1(str(type(type(fruit_preprocessor))).encode(\"utf-8\")+b\"680ee3df6cbf17b4\").hexdigest() == \"4319caa783e20845a1c937c8f14a440ec8d91161\", \"type of type(fruit_preprocessor) is not correct\"\n", + "assert sha1(str(type(fruit_preprocessor)).encode(\"utf-8\")+b\"680ee3df6cbf17b4\").hexdigest() == \"8a672c542e3f5a8278448ec6ebfe03f59dedbb5a\", \"value of type(fruit_preprocessor) is not correct\"\n", "\n", - "assert sha1(str(type(fruit_preprocessor.transformers[0][0])).encode(\"utf-8\")+b\"e5902732ea198293\").hexdigest() == \"710faa6cfa91e1624f140333e5c66f34998699dd\", \"type of fruit_preprocessor.transformers[0][0] is not str. fruit_preprocessor.transformers[0][0] should be an str\"\n", - "assert sha1(str(len(fruit_preprocessor.transformers[0][0])).encode(\"utf-8\")+b\"e5902732ea198293\").hexdigest() == \"8b1047d9df29f11d68250a99c4f95e55ca774b30\", \"length of fruit_preprocessor.transformers[0][0] is not correct\"\n", - "assert sha1(str(fruit_preprocessor.transformers[0][0].lower()).encode(\"utf-8\")+b\"e5902732ea198293\").hexdigest() == \"fcde4c10e3d8b29733786a13b2ab6e736647f301\", \"value of fruit_preprocessor.transformers[0][0] is not correct\"\n", - "assert sha1(str(fruit_preprocessor.transformers[0][0]).encode(\"utf-8\")+b\"e5902732ea198293\").hexdigest() == \"fcde4c10e3d8b29733786a13b2ab6e736647f301\", \"correct string value of fruit_preprocessor.transformers[0][0] but incorrect case of letters\"\n", + "assert sha1(str(type(fruit_preprocessor.transformers[0][0])).encode(\"utf-8\")+b\"8e11ca949e6e5f1d\").hexdigest() == \"545868f3aab6db008e6a19ab6ec4331d033d3a36\", \"type of fruit_preprocessor.transformers[0][0] is not str. fruit_preprocessor.transformers[0][0] should be an str\"\n", + "assert sha1(str(len(fruit_preprocessor.transformers[0][0])).encode(\"utf-8\")+b\"8e11ca949e6e5f1d\").hexdigest() == \"59d8b6259b916beac9e090f125b7002014fff7bb\", \"length of fruit_preprocessor.transformers[0][0] is not correct\"\n", + "assert sha1(str(fruit_preprocessor.transformers[0][0].lower()).encode(\"utf-8\")+b\"8e11ca949e6e5f1d\").hexdigest() == \"79661cf92288850246a12a7ffd29893626112a63\", \"value of fruit_preprocessor.transformers[0][0] is not correct\"\n", + "assert sha1(str(fruit_preprocessor.transformers[0][0]).encode(\"utf-8\")+b\"8e11ca949e6e5f1d\").hexdigest() == \"79661cf92288850246a12a7ffd29893626112a63\", \"correct string value of fruit_preprocessor.transformers[0][0] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(fruit_preprocessor.transformers[0][2])).encode(\"utf-8\")+b\"0e063a588d9e77b9\").hexdigest() == \"c85ca451772f750b7986e67c815f1df0e01cbdfa\", \"type of fruit_preprocessor.transformers[0][2] is not list. fruit_preprocessor.transformers[0][2] should be a list\"\n", - "assert sha1(str(len(fruit_preprocessor.transformers[0][2])).encode(\"utf-8\")+b\"0e063a588d9e77b9\").hexdigest() == \"ba56622ececa3355952fb36a645ea67cd76e5826\", \"length of fruit_preprocessor.transformers[0][2] is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_preprocessor.transformers[0][2]))).encode(\"utf-8\")+b\"0e063a588d9e77b9\").hexdigest() == \"e48c7394a590a84a5130493de3fac9690fa17dd4\", \"values of fruit_preprocessor.transformers[0][2] are not correct\"\n", - "assert sha1(str(fruit_preprocessor.transformers[0][2]).encode(\"utf-8\")+b\"0e063a588d9e77b9\").hexdigest() == \"143fa1c064dcf44565ca7a0811b5777a06beafc0\", \"order of elements of fruit_preprocessor.transformers[0][2] is not correct\"\n", + "assert sha1(str(type(fruit_preprocessor.transformers[0][2])).encode(\"utf-8\")+b\"bcadd96dad0cfc4d\").hexdigest() == \"45d9bcf05f33ef451e142ca9c1869dec32a90274\", \"type of fruit_preprocessor.transformers[0][2] is not list. fruit_preprocessor.transformers[0][2] should be a list\"\n", + "assert sha1(str(len(fruit_preprocessor.transformers[0][2])).encode(\"utf-8\")+b\"bcadd96dad0cfc4d\").hexdigest() == \"ce1deb8ac7de18a759ceebea22f802cc35f8ee6b\", \"length of fruit_preprocessor.transformers[0][2] is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_preprocessor.transformers[0][2]))).encode(\"utf-8\")+b\"bcadd96dad0cfc4d\").hexdigest() == \"b712264408d6c5e2f91db2c87c421c08caa6f812\", \"values of fruit_preprocessor.transformers[0][2] are not correct\"\n", + "assert sha1(str(fruit_preprocessor.transformers[0][2]).encode(\"utf-8\")+b\"bcadd96dad0cfc4d\").hexdigest() == \"abf5c09506147fd3d0bb03d32bd5aefc22ec07f6\", \"order of elements of fruit_preprocessor.transformers[0][2] is not correct\"\n", "\n", "print('Success!')" ] @@ -1233,7 +1233,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2a0adf15d927942d4de5e80b7df91c6d", + "checksum": "4164d1aa6c157f4b7835c1893ed38bb8", "grade": true, "grade_id": "cell-b8ce3699299555d5", "locked": true, @@ -1245,42 +1245,42 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_spec is None)).encode(\"utf-8\")+b\"d4af222d27fb6482\").hexdigest() == \"9e2c45187ef14f32e088f6a293ce9a9f6e01f83b\", \"type of knn_spec is None is not bool. knn_spec is None should be a bool\"\n", - "assert sha1(str(knn_spec is None).encode(\"utf-8\")+b\"d4af222d27fb6482\").hexdigest() == \"a7f316b62a9ce45739c6e1f4e83a098d827e7e6b\", \"boolean value of knn_spec is None is not correct\"\n", + "assert sha1(str(type(knn_spec is None)).encode(\"utf-8\")+b\"fb39dc6045dce932\").hexdigest() == \"80722875b1b430f5c1e08c6c01ffaf1f81e06c77\", \"type of knn_spec is None is not bool. knn_spec is None should be a bool\"\n", + "assert sha1(str(knn_spec is None).encode(\"utf-8\")+b\"fb39dc6045dce932\").hexdigest() == \"c8c3b30d4bc3876e03f8c1844c733e716c5ad112\", \"boolean value of knn_spec is None is not correct\"\n", "\n", - "assert sha1(str(type(type(knn_spec))).encode(\"utf-8\")+b\"bcc6be2c1a38985e\").hexdigest() == \"be633027265f760226e8fa4c74031805c662e5bd\", \"type of type(knn_spec) is not correct\"\n", - "assert sha1(str(type(knn_spec)).encode(\"utf-8\")+b\"bcc6be2c1a38985e\").hexdigest() == \"d57d78fa5d45517763cd806a1d0b615dbff22498\", \"value of type(knn_spec) is not correct\"\n", + "assert sha1(str(type(type(knn_spec))).encode(\"utf-8\")+b\"f06306f4a1373d99\").hexdigest() == \"895900ec435fcfada9d58bd0703ef6a8f824b9df\", \"type of type(knn_spec) is not correct\"\n", + "assert sha1(str(type(knn_spec)).encode(\"utf-8\")+b\"f06306f4a1373d99\").hexdigest() == \"cc5fdc7535ebd70cd6369b94f56292dad4566066\", \"value of type(knn_spec) is not correct\"\n", "\n", - "assert sha1(str(type(knn_spec.effective_metric_)).encode(\"utf-8\")+b\"3a3edab7640df239\").hexdigest() == \"3deee27a315e24d0f641f249478678a09e5948ea\", \"type of knn_spec.effective_metric_ is not str. knn_spec.effective_metric_ should be an str\"\n", - "assert sha1(str(len(knn_spec.effective_metric_)).encode(\"utf-8\")+b\"3a3edab7640df239\").hexdigest() == \"5c2efd88e8157353b31b45ed8097ba079067bff0\", \"length of knn_spec.effective_metric_ is not correct\"\n", - "assert sha1(str(knn_spec.effective_metric_.lower()).encode(\"utf-8\")+b\"3a3edab7640df239\").hexdigest() == \"da7738c2375dba578f2054d32f6535ad3b653355\", \"value of knn_spec.effective_metric_ is not correct\"\n", - "assert sha1(str(knn_spec.effective_metric_).encode(\"utf-8\")+b\"3a3edab7640df239\").hexdigest() == \"da7738c2375dba578f2054d32f6535ad3b653355\", \"correct string value of knn_spec.effective_metric_ but incorrect case of letters\"\n", + "assert sha1(str(type(knn_spec.effective_metric_)).encode(\"utf-8\")+b\"6e0fb13c85a03834\").hexdigest() == \"b5fc001b8d42d1ff27b1d2a9e757f4d8d79b69d2\", \"type of knn_spec.effective_metric_ is not str. knn_spec.effective_metric_ should be an str\"\n", + "assert sha1(str(len(knn_spec.effective_metric_)).encode(\"utf-8\")+b\"6e0fb13c85a03834\").hexdigest() == \"3f409ec7dc453d07ff6440ec7272fd2d99752917\", \"length of knn_spec.effective_metric_ is not correct\"\n", + "assert sha1(str(knn_spec.effective_metric_.lower()).encode(\"utf-8\")+b\"6e0fb13c85a03834\").hexdigest() == \"b0d54ccbe0309824454c16f7003484b31d4b8f6a\", \"value of knn_spec.effective_metric_ is not correct\"\n", + "assert sha1(str(knn_spec.effective_metric_).encode(\"utf-8\")+b\"6e0fb13c85a03834\").hexdigest() == \"b0d54ccbe0309824454c16f7003484b31d4b8f6a\", \"correct string value of knn_spec.effective_metric_ but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(knn_spec.n_neighbors)).encode(\"utf-8\")+b\"57ab3b502c934247\").hexdigest() == \"6ba3c4dff2cc3442e5f01f4ede2a40da21bea7c5\", \"type of knn_spec.n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(knn_spec.n_neighbors).encode(\"utf-8\")+b\"57ab3b502c934247\").hexdigest() == \"5a51c0a5127ca57d6a09a362808e7d7e4103d7b3\", \"value of knn_spec.n_neighbors is not correct\"\n", + "assert sha1(str(type(knn_spec.n_neighbors)).encode(\"utf-8\")+b\"0d924e9b51321976\").hexdigest() == \"6f54e5ea782197cc069642d6c85c38158f032ec2\", \"type of knn_spec.n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(knn_spec.n_neighbors).encode(\"utf-8\")+b\"0d924e9b51321976\").hexdigest() == \"e9c428a1a7c3b9f702f353ed17fbef14abc8c8ff\", \"value of knn_spec.n_neighbors is not correct\"\n", "\n", - "assert sha1(str(type(sum(X.mass))).encode(\"utf-8\")+b\"fa70a21de506c6dd\").hexdigest() == \"c8c57205d5bc2dfe40231c887f8eb9ea6f78e517\", \"type of sum(X.mass) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(X.mass)).encode(\"utf-8\")+b\"fa70a21de506c6dd\").hexdigest() == \"358c95cd1d36cc0fa32c793abaa52c08613400c8\", \"value of sum(X.mass) is not correct\"\n", + "assert sha1(str(type(sum(X.mass))).encode(\"utf-8\")+b\"2b86f056628728e4\").hexdigest() == \"82b1e87a45184a3c835654e7bce823c201bba7a6\", \"type of sum(X.mass) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(X.mass)).encode(\"utf-8\")+b\"2b86f056628728e4\").hexdigest() == \"88aaf73a0a1f97ff49393cb99f575daac9d346f7\", \"value of sum(X.mass) is not correct\"\n", "\n", - "assert sha1(str(type(sum(X.color_score))).encode(\"utf-8\")+b\"f3d95731f84dee3f\").hexdigest() == \"e7e415ce4d71c34844210812b1e78927d7bf2bd9\", \"type of sum(X.color_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(X.color_score), 2)).encode(\"utf-8\")+b\"f3d95731f84dee3f\").hexdigest() == \"ef2bacd38d099f26c0b4ac751ac6f4bb517e975d\", \"value of sum(X.color_score) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(X.color_score))).encode(\"utf-8\")+b\"237484191a9b444c\").hexdigest() == \"51eaf59a5c3f18c174c883d2f4a84efce0f3786c\", \"type of sum(X.color_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(X.color_score), 2)).encode(\"utf-8\")+b\"237484191a9b444c\").hexdigest() == \"384d85c2b2df0f01b77140720c2a0c581bbe7258\", \"value of sum(X.color_score) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(y.name)).encode(\"utf-8\")+b\"2227bc7e8c51aac5\").hexdigest() == \"aa88a58bd906a0c1ec6a116665f584703308226d\", \"type of y.name is not str. y.name should be an str\"\n", - "assert sha1(str(len(y.name)).encode(\"utf-8\")+b\"2227bc7e8c51aac5\").hexdigest() == \"c153768c2c7f58cf5eee1e84ca6f6e7a84a6aee7\", \"length of y.name is not correct\"\n", - "assert sha1(str(y.name.lower()).encode(\"utf-8\")+b\"2227bc7e8c51aac5\").hexdigest() == \"aa3ce7350d24df01a99e7bcfd293c48905cc52cc\", \"value of y.name is not correct\"\n", - "assert sha1(str(y.name).encode(\"utf-8\")+b\"2227bc7e8c51aac5\").hexdigest() == \"aa3ce7350d24df01a99e7bcfd293c48905cc52cc\", \"correct string value of y.name but incorrect case of letters\"\n", + "assert sha1(str(type(y.name)).encode(\"utf-8\")+b\"77a1f35df5d50a79\").hexdigest() == \"a817d6cdf1dc23621676c0e71dba270869b9ccde\", \"type of y.name is not str. y.name should be an str\"\n", + "assert sha1(str(len(y.name)).encode(\"utf-8\")+b\"77a1f35df5d50a79\").hexdigest() == \"a72d01f80847f84446091608a37e2b0dbe4dbcea\", \"length of y.name is not correct\"\n", + "assert sha1(str(y.name.lower()).encode(\"utf-8\")+b\"77a1f35df5d50a79\").hexdigest() == \"e199f26871974ffb06b7786e3c9c04253d453c64\", \"value of y.name is not correct\"\n", + "assert sha1(str(y.name).encode(\"utf-8\")+b\"77a1f35df5d50a79\").hexdigest() == \"e199f26871974ffb06b7786e3c9c04253d453c64\", \"correct string value of y.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(fruit_fit is None)).encode(\"utf-8\")+b\"091b2d23467e7eae\").hexdigest() == \"ac9cd3fcdd8e5344c88f0d43be1b1af862a6ffb6\", \"type of fruit_fit is None is not bool. fruit_fit is None should be a bool\"\n", - "assert sha1(str(fruit_fit is None).encode(\"utf-8\")+b\"091b2d23467e7eae\").hexdigest() == \"dd97c84db2674762f35183d22f933e3ae9a3eeac\", \"boolean value of fruit_fit is None is not correct\"\n", + "assert sha1(str(type(fruit_fit is None)).encode(\"utf-8\")+b\"b0f9156558d60be2\").hexdigest() == \"7c93fc06ef365dea4667bb36789b8ef67677b96e\", \"type of fruit_fit is None is not bool. fruit_fit is None should be a bool\"\n", + "assert sha1(str(fruit_fit is None).encode(\"utf-8\")+b\"b0f9156558d60be2\").hexdigest() == \"85c3dbdc24116eed3093b1c1e93b4546a2b2887e\", \"boolean value of fruit_fit is None is not correct\"\n", "\n", - "assert sha1(str(type(type(fruit_fit))).encode(\"utf-8\")+b\"a26a086c53038974\").hexdigest() == \"7de676c2d6a7a2c52203e974965943b5cfb213ab\", \"type of type(fruit_fit) is not correct\"\n", - "assert sha1(str(type(fruit_fit)).encode(\"utf-8\")+b\"a26a086c53038974\").hexdigest() == \"bee9f81a4ce94e3332ed80325334eeb89ed2dcd0\", \"value of type(fruit_fit) is not correct\"\n", + "assert sha1(str(type(type(fruit_fit))).encode(\"utf-8\")+b\"5374013858158607\").hexdigest() == \"7f95e1caadc9c792754dd68395958a1ffdbafbc4\", \"type of type(fruit_fit) is not correct\"\n", + "assert sha1(str(type(fruit_fit)).encode(\"utf-8\")+b\"5374013858158607\").hexdigest() == \"f59bd1df3427e2714b08374c64c03dd1a20ee334\", \"value of type(fruit_fit) is not correct\"\n", "\n", - "assert sha1(str(type(len(fruit_fit.named_steps))).encode(\"utf-8\")+b\"35e3134df8d9a02f\").hexdigest() == \"b1edd1db6fda494ef1dca89d8f8a45df4a81a13e\", \"type of len(fruit_fit.named_steps) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(fruit_fit.named_steps)).encode(\"utf-8\")+b\"35e3134df8d9a02f\").hexdigest() == \"478d127fb8070dd243b4deed57166af679177bf5\", \"value of len(fruit_fit.named_steps) is not correct\"\n", + "assert sha1(str(type(len(fruit_fit.named_steps))).encode(\"utf-8\")+b\"c04571ce5447a84c\").hexdigest() == \"d5fe68ff8dfdac274015065122d394765314bd3b\", \"type of len(fruit_fit.named_steps) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(fruit_fit.named_steps)).encode(\"utf-8\")+b\"c04571ce5447a84c\").hexdigest() == \"ee1a63c4e8ef4731ad0712feb10716883997bb69\", \"value of len(fruit_fit.named_steps) is not correct\"\n", "\n", - "assert sha1(str(type(fruit_fit.named_steps.keys())).encode(\"utf-8\")+b\"6297bc0813c8ebd9\").hexdigest() == \"1281b0fab966c63bf3e115ddf7f12768fc0a47df\", \"type of fruit_fit.named_steps.keys() is not correct\"\n", - "assert sha1(str(fruit_fit.named_steps.keys()).encode(\"utf-8\")+b\"6297bc0813c8ebd9\").hexdigest() == \"0c349c59ea744ff92b002d7a55a2a0928bf2d3b7\", \"value of fruit_fit.named_steps.keys() is not correct\"\n", + "assert sha1(str(type(fruit_fit.named_steps.keys())).encode(\"utf-8\")+b\"27155566906b5363\").hexdigest() == \"a032fe5e26460add554c3e9044e1e77ba9e7cd5a\", \"type of fruit_fit.named_steps.keys() is not correct\"\n", + "assert sha1(str(fruit_fit.named_steps.keys()).encode(\"utf-8\")+b\"27155566906b5363\").hexdigest() == \"30d1c657b3ba1219fb474357c2f0b17a57e98a1f\", \"value of fruit_fit.named_steps.keys() is not correct\"\n", "\n", "print('Success!')" ] @@ -1346,7 +1346,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "45b817ae01c09082fcaba86c55e1ec0c", + "checksum": "112cf23b6277bcb0d5e966255642a18d", "grade": true, "grade_id": "cell-144f33352d2b6add", "locked": true, @@ -1358,18 +1358,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_test_predictions is None)).encode(\"utf-8\")+b\"c04af4fe2a1d73c0\").hexdigest() == \"f39837135b713094382d761ada719ef33062bdde\", \"type of fruit_test_predictions is None is not bool. fruit_test_predictions is None should be a bool\"\n", - "assert sha1(str(fruit_test_predictions is None).encode(\"utf-8\")+b\"c04af4fe2a1d73c0\").hexdigest() == \"870893463fc88c60361e68d1e61a30fac43a96da\", \"boolean value of fruit_test_predictions is None is not correct\"\n", + "assert sha1(str(type(fruit_test_predictions is None)).encode(\"utf-8\")+b\"d8e7f0f4c810a7fa\").hexdigest() == \"b5b90f925fda9ed6711b2a2433306cc5a6cfaae8\", \"type of fruit_test_predictions is None is not bool. fruit_test_predictions is None should be a bool\"\n", + "assert sha1(str(fruit_test_predictions is None).encode(\"utf-8\")+b\"d8e7f0f4c810a7fa\").hexdigest() == \"740ebf9c0896763b197d08e60ed9fdd39409d306\", \"boolean value of fruit_test_predictions is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_test_predictions)).encode(\"utf-8\")+b\"29d54a1aa4d9d672\").hexdigest() == \"25e5a662dda9c73afca3fc665744d142f1dcf67e\", \"type of type(fruit_test_predictions) is not correct\"\n", + "assert sha1(str(type(fruit_test_predictions)).encode(\"utf-8\")+b\"c9d35ff8e01339b7\").hexdigest() == \"fb9ccd893044fb086755101f8464e990d4d172bd\", \"type of type(fruit_test_predictions) is not correct\"\n", "\n", - "assert sha1(str(type(fruit_test_predictions.shape)).encode(\"utf-8\")+b\"34125154dda64c5a\").hexdigest() == \"d3d1d1f66f91aa89604133ac2494c097475ec657\", \"type of fruit_test_predictions.shape is not tuple. fruit_test_predictions.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_test_predictions.shape)).encode(\"utf-8\")+b\"34125154dda64c5a\").hexdigest() == \"21011e44bb93a9f5f621d3d2db44d0c3fdf2504a\", \"length of fruit_test_predictions.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_test_predictions.shape))).encode(\"utf-8\")+b\"34125154dda64c5a\").hexdigest() == \"2c3d49951ac91342e99990144c2e6134a33d4789\", \"values of fruit_test_predictions.shape are not correct\"\n", - "assert sha1(str(fruit_test_predictions.shape).encode(\"utf-8\")+b\"34125154dda64c5a\").hexdigest() == \"fe202ce0e40a488c00473b6007b429a30e7a59f0\", \"order of elements of fruit_test_predictions.shape is not correct\"\n", + "assert sha1(str(type(fruit_test_predictions.shape)).encode(\"utf-8\")+b\"cdf50f74c93263da\").hexdigest() == \"b20f10e92a6e13a2e9fc7a5c5f1180cc79da0702\", \"type of fruit_test_predictions.shape is not tuple. fruit_test_predictions.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_test_predictions.shape)).encode(\"utf-8\")+b\"cdf50f74c93263da\").hexdigest() == \"abcf0ccc59fa90a68078f5af1871431acd5fbf09\", \"length of fruit_test_predictions.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_test_predictions.shape))).encode(\"utf-8\")+b\"cdf50f74c93263da\").hexdigest() == \"cef51839dfe41be58a7864c96310c6e6bfcdd92a\", \"values of fruit_test_predictions.shape are not correct\"\n", + "assert sha1(str(fruit_test_predictions.shape).encode(\"utf-8\")+b\"cdf50f74c93263da\").hexdigest() == \"9f13bfad09e6e47a9b434dac9e77bd1b63c68ebd\", \"order of elements of fruit_test_predictions.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"predicted\" in fruit_test_predictions.columns)).encode(\"utf-8\")+b\"1a4a465f1615a04d\").hexdigest() == \"5a8b4ed8d2d811ffb0dcd171d1e6d45bd6285260\", \"type of \\\"predicted\\\" in fruit_test_predictions.columns is not bool. \\\"predicted\\\" in fruit_test_predictions.columns should be a bool\"\n", - "assert sha1(str(\"predicted\" in fruit_test_predictions.columns).encode(\"utf-8\")+b\"1a4a465f1615a04d\").hexdigest() == \"48f41a45435b7ffd475cf41af9ff9852dd33b9e4\", \"boolean value of \\\"predicted\\\" in fruit_test_predictions.columns is not correct\"\n", + "assert sha1(str(type(\"predicted\" in fruit_test_predictions.columns)).encode(\"utf-8\")+b\"ddf8a95cd87c52f5\").hexdigest() == \"b9d02becf6b857d72f582aa464b075d2658431b4\", \"type of \\\"predicted\\\" in fruit_test_predictions.columns is not bool. \\\"predicted\\\" in fruit_test_predictions.columns should be a bool\"\n", + "assert sha1(str(\"predicted\" in fruit_test_predictions.columns).encode(\"utf-8\")+b\"ddf8a95cd87c52f5\").hexdigest() == \"eb239b6ca806b0810fdbbc232b0b3a723c8ef127\", \"boolean value of \\\"predicted\\\" in fruit_test_predictions.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -1435,7 +1435,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b480262e2018cb5a4cd5bb927aaf5e3a", + "checksum": "1bdc75c4cbb164867202f283d82f8c60", "grade": true, "grade_id": "cell-a268da3370127d6c", "locked": true, @@ -1447,11 +1447,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_prediction_accuracy is None)).encode(\"utf-8\")+b\"c53e68bc823bdbab\").hexdigest() == \"91e0b5db156ed919fd79d0164bb2cbba172dbc73\", \"type of fruit_prediction_accuracy is None is not bool. fruit_prediction_accuracy is None should be a bool\"\n", - "assert sha1(str(fruit_prediction_accuracy is None).encode(\"utf-8\")+b\"c53e68bc823bdbab\").hexdigest() == \"c2de87714a547767d2178fabd0e21031e697d864\", \"boolean value of fruit_prediction_accuracy is None is not correct\"\n", + "assert sha1(str(type(fruit_prediction_accuracy is None)).encode(\"utf-8\")+b\"680fdffa7c04720b\").hexdigest() == \"9015f4dc968dd69273d077d9212b54ed86a98eba\", \"type of fruit_prediction_accuracy is None is not bool. fruit_prediction_accuracy is None should be a bool\"\n", + "assert sha1(str(fruit_prediction_accuracy is None).encode(\"utf-8\")+b\"680fdffa7c04720b\").hexdigest() == \"40bf2d463a00b767a607ef117821df7add1f9949\", \"boolean value of fruit_prediction_accuracy is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_prediction_accuracy)).encode(\"utf-8\")+b\"eda1e354bf07907e\").hexdigest() == \"463ac5294a8870a156642ad0e0d4bf37366f08aa\", \"type of fruit_prediction_accuracy is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(fruit_prediction_accuracy, 2)).encode(\"utf-8\")+b\"eda1e354bf07907e\").hexdigest() == \"1da01776e70824150ef798085ffb9c0eab5f5cac\", \"value of fruit_prediction_accuracy is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(fruit_prediction_accuracy)).encode(\"utf-8\")+b\"0ea92393f52936fc\").hexdigest() == \"3951a033c68e76ebe06cd086bc6c73d18ea1b5a3\", \"type of fruit_prediction_accuracy is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(fruit_prediction_accuracy, 2)).encode(\"utf-8\")+b\"0ea92393f52936fc\").hexdigest() == \"dcb8136e8ec2da57cb9d9ab1d2e9d58f1043cdff\", \"value of fruit_prediction_accuracy is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1580,7 +1580,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8ed126762503a9cde15b556432fd9b8f", + "checksum": "5c6d104590a3ef3388c4a04528a05300", "grade": true, "grade_id": "cell-d3d5c46250e8450a", "locked": true, @@ -1592,13 +1592,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_mat is None)).encode(\"utf-8\")+b\"cecea3ca14bb3fbb\").hexdigest() == \"3f007531d672a7d6887e6ad60c144e17fceedef0\", \"type of fruit_mat is None is not bool. fruit_mat is None should be a bool\"\n", - "assert sha1(str(fruit_mat is None).encode(\"utf-8\")+b\"cecea3ca14bb3fbb\").hexdigest() == \"8a6c1a47899a5a8b0ee450b75f8c5f8729407a1e\", \"boolean value of fruit_mat is None is not correct\"\n", + "assert sha1(str(type(fruit_mat is None)).encode(\"utf-8\")+b\"2cd7f795176c9db8\").hexdigest() == \"4f7f17ecaf90952f9427be887e2912f2d4029345\", \"type of fruit_mat is None is not bool. fruit_mat is None should be a bool\"\n", + "assert sha1(str(fruit_mat is None).encode(\"utf-8\")+b\"2cd7f795176c9db8\").hexdigest() == \"b6297e8ace83e2e08d1289f26a9f34077c60ac72\", \"boolean value of fruit_mat is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_mat)).encode(\"utf-8\")+b\"39b5a8b79d7ecef4\").hexdigest() == \"80e27993eb0d86f1acc3b8e71ce34a5948c39d40\", \"type of type(fruit_mat) is not correct\"\n", + "assert sha1(str(type(fruit_mat)).encode(\"utf-8\")+b\"5695221d470a94ff\").hexdigest() == \"e0dc2341f5b49c6806b0885d9b0ff83ae5e42a4f\", \"type of type(fruit_mat) is not correct\"\n", "\n", - "assert sha1(str(type(fruit_mat.to_numpy().sum())).encode(\"utf-8\")+b\"beb225a1682049b9\").hexdigest() == \"587f5dc16921a74b2e84273f20e3c68b115e2710\", \"type of fruit_mat.to_numpy().sum() is not correct\"\n", - "assert sha1(str(fruit_mat.to_numpy().sum()).encode(\"utf-8\")+b\"beb225a1682049b9\").hexdigest() == \"643d5742737b374bdc67ecebff36057792e6f1d4\", \"value of fruit_mat.to_numpy().sum() is not correct\"\n", + "assert sha1(str(type(fruit_mat.to_numpy().sum())).encode(\"utf-8\")+b\"082d20001381ec00\").hexdigest() == \"2002ecca0b67af5f06ed5942f29e02f5ec0f3c84\", \"type of fruit_mat.to_numpy().sum() is not correct\"\n", + "assert sha1(str(fruit_mat.to_numpy().sum()).encode(\"utf-8\")+b\"082d20001381ec00\").hexdigest() == \"3587b4e87de17aff1e6b91aafd4edc732a96b521\", \"value of fruit_mat.to_numpy().sum() is not correct\"\n", "\n", "print('Success!')" ] @@ -1667,7 +1667,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8d264b324998c4615324dde24d83758a", + "checksum": "7df4e01b8eed8f51994c099fce5db205", "grade": true, "grade_id": "cell-5715f106e3bbf143", "locked": true, @@ -1680,10 +1680,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"3f67a04816e6211b\").hexdigest() == \"8976929979dd46648d2b6ae54120f3e097c188ea\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", - "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"3f67a04816e6211b\").hexdigest() == \"c497c6dd56bec69b487d78706f5c7ca1cccf1d0d\", \"length of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"3f67a04816e6211b\").hexdigest() == \"15bda741d8879d1196550bcf3c4de3880b85f95a\", \"value of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"3f67a04816e6211b\").hexdigest() == \"6929f1a15e137621f8fdf48af94e0d9b08df952d\", \"correct string value of answer2_6 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"923885b4eddf5eb2\").hexdigest() == \"641bf28989dd79e40465c805d6ed5b7d7e111b95\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", + "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"923885b4eddf5eb2\").hexdigest() == \"ac57fd9361498269d04561785d15781b8441ae68\", \"length of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"923885b4eddf5eb2\").hexdigest() == \"76d0738f18986bec64988a613f36377ed60cd96d\", \"value of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"923885b4eddf5eb2\").hexdigest() == \"cae7f3c1bd0eaf800d3483860ae83600c6c9666c\", \"correct string value of answer2_6 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1767,7 +1767,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6984f85e971b361f603653b1bf3d667f", + "checksum": "fea6b507b16a9b34e7037dfefb29b9df", "grade": true, "grade_id": "cell-4f7b62f0f7b0a200", "locked": true, @@ -1779,27 +1779,27 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_vfold_score is None)).encode(\"utf-8\")+b\"1fa574058f03aa42\").hexdigest() == \"2fff71700ecbd179b6f47faab37bccc0abce426e\", \"type of fruit_vfold_score is None is not bool. fruit_vfold_score is None should be a bool\"\n", - "assert sha1(str(fruit_vfold_score is None).encode(\"utf-8\")+b\"1fa574058f03aa42\").hexdigest() == \"9a0f8779f34463a4ebbb83be138f607544e173d6\", \"boolean value of fruit_vfold_score is None is not correct\"\n", + "assert sha1(str(type(fruit_vfold_score is None)).encode(\"utf-8\")+b\"ce4bc867827c6f25\").hexdigest() == \"d1e16a4575159945242730b7ad495ec9ac2a9282\", \"type of fruit_vfold_score is None is not bool. fruit_vfold_score is None should be a bool\"\n", + "assert sha1(str(fruit_vfold_score is None).encode(\"utf-8\")+b\"ce4bc867827c6f25\").hexdigest() == \"8d0401248a9a5b3b7664ae01f4535d121434dd82\", \"boolean value of fruit_vfold_score is None is not correct\"\n", "\n", - "assert sha1(str(type(fruit_vfold_score)).encode(\"utf-8\")+b\"81dbd5fc5c1b4fc6\").hexdigest() == \"f971f1df7ddac29cb452ea5d9528ddc2b156ea8a\", \"type of type(fruit_vfold_score) is not correct\"\n", + "assert sha1(str(type(fruit_vfold_score)).encode(\"utf-8\")+b\"00166b88039f9280\").hexdigest() == \"9aad0f1ff29d47ddf6a41e259a03753fdf27186a\", \"type of type(fruit_vfold_score) is not correct\"\n", "\n", - "assert sha1(str(type(fruit_vfold_score.shape)).encode(\"utf-8\")+b\"8157443b918f19e8\").hexdigest() == \"679eb0bfe62416298c70b561e861da1e6d67f055\", \"type of fruit_vfold_score.shape is not tuple. fruit_vfold_score.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_vfold_score.shape)).encode(\"utf-8\")+b\"8157443b918f19e8\").hexdigest() == \"7f87ee2e0541e7f026f73b7d4e5e9b3c0d8d91fb\", \"length of fruit_vfold_score.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_vfold_score.shape))).encode(\"utf-8\")+b\"8157443b918f19e8\").hexdigest() == \"8f91d338d9b1b5c32371a6602eb20d9f25c5f4ae\", \"values of fruit_vfold_score.shape are not correct\"\n", - "assert sha1(str(fruit_vfold_score.shape).encode(\"utf-8\")+b\"8157443b918f19e8\").hexdigest() == \"10d2e946a13373e8d4e2948eb8c249151a7c49f3\", \"order of elements of fruit_vfold_score.shape is not correct\"\n", + "assert sha1(str(type(fruit_vfold_score.shape)).encode(\"utf-8\")+b\"42091c4002450a03\").hexdigest() == \"980b2a52b344888a461ebaa7c329722458077e3a\", \"type of fruit_vfold_score.shape is not tuple. fruit_vfold_score.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_vfold_score.shape)).encode(\"utf-8\")+b\"42091c4002450a03\").hexdigest() == \"9cab5127cf9bb516118360fdee96e1ecc8771b13\", \"length of fruit_vfold_score.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_vfold_score.shape))).encode(\"utf-8\")+b\"42091c4002450a03\").hexdigest() == \"a628899c061d97850ecab7354e653a5037708a31\", \"values of fruit_vfold_score.shape are not correct\"\n", + "assert sha1(str(fruit_vfold_score.shape).encode(\"utf-8\")+b\"42091c4002450a03\").hexdigest() == \"b16744cc080cfa7bbee52c477414c2361fddc050\", \"order of elements of fruit_vfold_score.shape is not correct\"\n", "\n", - "assert sha1(str(type(fruit_pipe is None)).encode(\"utf-8\")+b\"903e81e3470604b6\").hexdigest() == \"bd0c0221aa377d4d5010b371d1fc96a7bad91b40\", \"type of fruit_pipe is None is not bool. fruit_pipe is None should be a bool\"\n", - "assert sha1(str(fruit_pipe is None).encode(\"utf-8\")+b\"903e81e3470604b6\").hexdigest() == \"6219a59427178cb50b60140e8d741bbbfcda262c\", \"boolean value of fruit_pipe is None is not correct\"\n", + "assert sha1(str(type(fruit_pipe is None)).encode(\"utf-8\")+b\"7c0fd07e83fc1880\").hexdigest() == \"ec377c3f112c2f5ec14188e4ee7cf44b4be3c88b\", \"type of fruit_pipe is None is not bool. fruit_pipe is None should be a bool\"\n", + "assert sha1(str(fruit_pipe is None).encode(\"utf-8\")+b\"7c0fd07e83fc1880\").hexdigest() == \"a6c09732f801419f94d53789e0278ae4484c0bc9\", \"boolean value of fruit_pipe is None is not correct\"\n", "\n", - "assert sha1(str(type(type(fruit_pipe))).encode(\"utf-8\")+b\"1cc7719de03f933a\").hexdigest() == \"3328875d795c2779fe74a15077a4d41dfbd1a5fd\", \"type of type(fruit_pipe) is not correct\"\n", - "assert sha1(str(type(fruit_pipe)).encode(\"utf-8\")+b\"1cc7719de03f933a\").hexdigest() == \"dd3c2e572e1222d5254226047f3454a9b13f8a75\", \"value of type(fruit_pipe) is not correct\"\n", + "assert sha1(str(type(type(fruit_pipe))).encode(\"utf-8\")+b\"6d335c54e01fd5d9\").hexdigest() == \"53943b3b20226c59ed06d6cf50b1668e276b7447\", \"type of type(fruit_pipe) is not correct\"\n", + "assert sha1(str(type(fruit_pipe)).encode(\"utf-8\")+b\"6d335c54e01fd5d9\").hexdigest() == \"0ab7e2d53363eb4aab6f1c105c416286f8be7d0c\", \"value of type(fruit_pipe) is not correct\"\n", "\n", - "assert sha1(str(type(len(fruit_pipe.named_steps))).encode(\"utf-8\")+b\"3723dd23f08a3c22\").hexdigest() == \"cf6c22a63999e136faf858d71752dfa0eff45218\", \"type of len(fruit_pipe.named_steps) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(fruit_pipe.named_steps)).encode(\"utf-8\")+b\"3723dd23f08a3c22\").hexdigest() == \"a3e343c227dededac48553fb0373ee8926d7d45c\", \"value of len(fruit_pipe.named_steps) is not correct\"\n", + "assert sha1(str(type(len(fruit_pipe.named_steps))).encode(\"utf-8\")+b\"d8cbb96ed866c63f\").hexdigest() == \"3ed57e09f83be1693ea3261f200ac4a267a71bef\", \"type of len(fruit_pipe.named_steps) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(fruit_pipe.named_steps)).encode(\"utf-8\")+b\"d8cbb96ed866c63f\").hexdigest() == \"86526913d082e6b08bf260a3113a96f82775405d\", \"value of len(fruit_pipe.named_steps) is not correct\"\n", "\n", - "assert sha1(str(type(fruit_pipe.named_steps.keys())).encode(\"utf-8\")+b\"2e4322a77d6b96b1\").hexdigest() == \"7a3bf7d14b2d9bbb153c38ceee9653fa8378a5d2\", \"type of fruit_pipe.named_steps.keys() is not correct\"\n", - "assert sha1(str(fruit_pipe.named_steps.keys()).encode(\"utf-8\")+b\"2e4322a77d6b96b1\").hexdigest() == \"032796cacda80d604f8d06ab878037cfd32d255f\", \"value of fruit_pipe.named_steps.keys() is not correct\"\n", + "assert sha1(str(type(fruit_pipe.named_steps.keys())).encode(\"utf-8\")+b\"5f4ea7419672d188\").hexdigest() == \"d040283716712ea42113ec10f5da39f6b9a4ad8c\", \"type of fruit_pipe.named_steps.keys() is not correct\"\n", + "assert sha1(str(fruit_pipe.named_steps.keys()).encode(\"utf-8\")+b\"5f4ea7419672d188\").hexdigest() == \"35d8549a18e0f22c93b22c55eaf8ca93ea3360e0\", \"value of fruit_pipe.named_steps.keys() is not correct\"\n", "\n", "print('Success!')" ] @@ -1861,7 +1861,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ae09a93681cca03032a6fc63eb9a4f41", + "checksum": "f87f56b6603209ba27eac507fa7b634c", "grade": true, "grade_id": "cell-099fb002dba6ced0", "locked": true, @@ -1873,16 +1873,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fruit_metrics.shape)).encode(\"utf-8\")+b\"601c6044f2c16e14\").hexdigest() == \"6e6a9854f2fbe86c1c3be05a70a518ef053c9c7c\", \"type of fruit_metrics.shape is not tuple. fruit_metrics.shape should be a tuple\"\n", - "assert sha1(str(len(fruit_metrics.shape)).encode(\"utf-8\")+b\"601c6044f2c16e14\").hexdigest() == \"c2d7a0fd68b24bc8a2ba26e05496f349adfc2e32\", \"length of fruit_metrics.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fruit_metrics.shape))).encode(\"utf-8\")+b\"601c6044f2c16e14\").hexdigest() == \"bd5553416e80763fd127f30076936b76e55c1e15\", \"values of fruit_metrics.shape are not correct\"\n", - "assert sha1(str(fruit_metrics.shape).encode(\"utf-8\")+b\"601c6044f2c16e14\").hexdigest() == \"a51123909deb6c4c20c138646e914f01e8181199\", \"order of elements of fruit_metrics.shape is not correct\"\n", + "assert sha1(str(type(fruit_metrics.shape)).encode(\"utf-8\")+b\"8fd2c5ec7c17cd47\").hexdigest() == \"c63cb94ebbae686ea51b0f6d0ea8b078dc58f22a\", \"type of fruit_metrics.shape is not tuple. fruit_metrics.shape should be a tuple\"\n", + "assert sha1(str(len(fruit_metrics.shape)).encode(\"utf-8\")+b\"8fd2c5ec7c17cd47\").hexdigest() == \"32ad8bfbe955c23e311aee2aa7fb3fbba421306b\", \"length of fruit_metrics.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fruit_metrics.shape))).encode(\"utf-8\")+b\"8fd2c5ec7c17cd47\").hexdigest() == \"79ae71a31f0d0b6974e0c08b86c8e01de4b3122c\", \"values of fruit_metrics.shape are not correct\"\n", + "assert sha1(str(fruit_metrics.shape).encode(\"utf-8\")+b\"8fd2c5ec7c17cd47\").hexdigest() == \"d3815fa949ae450a424f96cc9d588260baed19a5\", \"order of elements of fruit_metrics.shape is not correct\"\n", "\n", - "assert sha1(str(type(fruit_metrics)).encode(\"utf-8\")+b\"e272ca0ceb19c94c\").hexdigest() == \"9936ad0b19e31239da72cc8f24d1373af157d659\", \"type of fruit_metrics is not correct\"\n", - "assert sha1(str(fruit_metrics).encode(\"utf-8\")+b\"e272ca0ceb19c94c\").hexdigest() == \"bc5bbdc63dd4be0c458633d31582861c8ea78862\", \"value of fruit_metrics is not correct\"\n", + "assert sha1(str(type(fruit_metrics)).encode(\"utf-8\")+b\"19fc0eadb51cdb76\").hexdigest() == \"dc910a13fed3230a95f99238fb2acc3a832bc785\", \"type of fruit_metrics is not correct\"\n", + "assert sha1(str(fruit_metrics).encode(\"utf-8\")+b\"19fc0eadb51cdb76\").hexdigest() == \"4f7cbe6cbb6bca92a8eacda14c49418db4764e7f\", \"value of fruit_metrics is not correct\"\n", "\n", - "assert sha1(str(type(fruit_metrics.test_score)).encode(\"utf-8\")+b\"f52005d17836e005\").hexdigest() == \"b887db0123aa2d480927f3e522f2ed5d6e833262\", \"type of fruit_metrics.test_score is not correct\"\n", - "assert sha1(str(fruit_metrics.test_score).encode(\"utf-8\")+b\"f52005d17836e005\").hexdigest() == \"9eb5b33304c3b15262ea3fe18a9e2831010648dd\", \"value of fruit_metrics.test_score is not correct\"\n", + "assert sha1(str(type(fruit_metrics.test_score)).encode(\"utf-8\")+b\"4a5905cfb43b78c6\").hexdigest() == \"ce5b9eba8ee6d72928972101790e9ac1cf998624\", \"type of fruit_metrics.test_score is not correct\"\n", + "assert sha1(str(fruit_metrics.test_score).encode(\"utf-8\")+b\"4a5905cfb43b78c6\").hexdigest() == \"af0c82e8299cbc7766cc6e443d0d2ba90d2d589c\", \"value of fruit_metrics.test_score is not correct\"\n", "\n", "print('Success!')" ] @@ -1978,7 +1978,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2649c2fd521d5efddd0000b7cd956032", + "checksum": "ba887dd80a6e2174770f689240e0ff7e", "grade": true, "grade_id": "cell-381d21c4c1474e80", "locked": true, @@ -1990,20 +1990,20 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(knn_tune_grid is None)).encode(\"utf-8\")+b\"c143efcc570ff3f6\").hexdigest() == \"442238e30c09dbbd994d78e9f69de9fc8b6345c6\", \"type of knn_tune_grid is None is not bool. knn_tune_grid is None should be a bool\"\n", - "assert sha1(str(knn_tune_grid is None).encode(\"utf-8\")+b\"c143efcc570ff3f6\").hexdigest() == \"711ca705686924589044eafffb8aa7aed8489284\", \"boolean value of knn_tune_grid is None is not correct\"\n", + "assert sha1(str(type(knn_tune_grid is None)).encode(\"utf-8\")+b\"4f05cf719d825b71\").hexdigest() == \"c24d5ca63ab6c148176d757babc5995188b8cbb2\", \"type of knn_tune_grid is None is not bool. knn_tune_grid is None should be a bool\"\n", + "assert sha1(str(knn_tune_grid is None).encode(\"utf-8\")+b\"4f05cf719d825b71\").hexdigest() == \"37ec9b9aae1ce9fe5e0cf23e3cbfd65bb5d82f43\", \"boolean value of knn_tune_grid is None is not correct\"\n", "\n", - "assert sha1(str(type(type(knn_tune_grid))).encode(\"utf-8\")+b\"464473615383e079\").hexdigest() == \"ae19fd487c9861362064450945d1746385d20366\", \"type of type(knn_tune_grid) is not correct\"\n", - "assert sha1(str(type(knn_tune_grid)).encode(\"utf-8\")+b\"464473615383e079\").hexdigest() == \"3e1e44046913c376767b5852ae1eafa3ab988ac0\", \"value of type(knn_tune_grid) is not correct\"\n", + "assert sha1(str(type(type(knn_tune_grid))).encode(\"utf-8\")+b\"08d065e3fcb805c6\").hexdigest() == \"7af03fcc697c40a3f8d4a575fcc78a0ad3d55ab6\", \"type of type(knn_tune_grid) is not correct\"\n", + "assert sha1(str(type(knn_tune_grid)).encode(\"utf-8\")+b\"08d065e3fcb805c6\").hexdigest() == \"6e0a988f67e396e2612e660d774d218280a31cb0\", \"value of type(knn_tune_grid) is not correct\"\n", "\n", - "assert sha1(str(type(knn_tune_grid.param_grid.keys())).encode(\"utf-8\")+b\"ad4d66ab2952c055\").hexdigest() == \"8aa531297e78fe9b74349f827c1badd2223f7274\", \"type of knn_tune_grid.param_grid.keys() is not correct\"\n", - "assert sha1(str(knn_tune_grid.param_grid.keys()).encode(\"utf-8\")+b\"ad4d66ab2952c055\").hexdigest() == \"4478d5a7eb323a1590721d9c4f6774cf56df95e8\", \"value of knn_tune_grid.param_grid.keys() is not correct\"\n", + "assert sha1(str(type(knn_tune_grid.param_grid.keys())).encode(\"utf-8\")+b\"97428bc8f89142f2\").hexdigest() == \"22ec83be0020aff497ab7306ba0aa7450f6a24a9\", \"type of knn_tune_grid.param_grid.keys() is not correct\"\n", + "assert sha1(str(knn_tune_grid.param_grid.keys()).encode(\"utf-8\")+b\"97428bc8f89142f2\").hexdigest() == \"e251369423129f3080ffbd5ae5c603232a452719\", \"value of knn_tune_grid.param_grid.keys() is not correct\"\n", "\n", - "assert sha1(str(type(knn_tune_grid.estimator.named_steps.keys())).encode(\"utf-8\")+b\"8470947e5d41c3b4\").hexdigest() == \"0c1b5ed98f9280da4a1e50ca90b1dabf88fa848d\", \"type of knn_tune_grid.estimator.named_steps.keys() is not correct\"\n", - "assert sha1(str(knn_tune_grid.estimator.named_steps.keys()).encode(\"utf-8\")+b\"8470947e5d41c3b4\").hexdigest() == \"4942f6d80b061f48e7b7fa5cfb8896fd60494acc\", \"value of knn_tune_grid.estimator.named_steps.keys() is not correct\"\n", + "assert sha1(str(type(knn_tune_grid.estimator.named_steps.keys())).encode(\"utf-8\")+b\"6695a3ec7610ab1e\").hexdigest() == \"23a444ef6e323aef592355abcabdf28eee0459dd\", \"type of knn_tune_grid.estimator.named_steps.keys() is not correct\"\n", + "assert sha1(str(knn_tune_grid.estimator.named_steps.keys()).encode(\"utf-8\")+b\"6695a3ec7610ab1e\").hexdigest() == \"1825569109c511d77eb705fa76fd8d98d840c086\", \"value of knn_tune_grid.estimator.named_steps.keys() is not correct\"\n", "\n", - "assert sha1(str(type(knn_tune_grid.cv)).encode(\"utf-8\")+b\"a076c320aac1726a\").hexdigest() == \"794f7bb3849c513f66556503fd0591b73c189f73\", \"type of knn_tune_grid.cv is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(knn_tune_grid.cv).encode(\"utf-8\")+b\"a076c320aac1726a\").hexdigest() == \"45fd7c7861ac7e3c5350198d472f32f2acdc1c9e\", \"value of knn_tune_grid.cv is not correct\"\n", + "assert sha1(str(type(knn_tune_grid.cv)).encode(\"utf-8\")+b\"7a2a024aeb2c2e14\").hexdigest() == \"3ee689d699d94017921301b456a7ee95bac9a139\", \"type of knn_tune_grid.cv is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(knn_tune_grid.cv).encode(\"utf-8\")+b\"7a2a024aeb2c2e14\").hexdigest() == \"1543ff3024e57eff14aae4bfe803a13c5e74d864\", \"value of knn_tune_grid.cv is not correct\"\n", "\n", "print('Success!')" ] @@ -2072,7 +2072,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5ba1b15035e88fee05f3d65fd8a95ffc", + "checksum": "ceac21314e9301f46121484bc4d36256", "grade": true, "grade_id": "cell-0cbc6a47a2b14884", "locked": true, @@ -2085,27 +2085,27 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(type(knn_model_grid))).encode(\"utf-8\")+b\"ff91e24b91f5b31d\").hexdigest() == \"a35fbc07f1a7c78d82f05dc6c052f69b0a38ab93\", \"type of type(knn_model_grid) is not correct\"\n", - "assert sha1(str(type(knn_model_grid)).encode(\"utf-8\")+b\"ff91e24b91f5b31d\").hexdigest() == \"a89446bb786541b53d83eaf40f097179233717d5\", \"value of type(knn_model_grid) is not correct\"\n", + "assert sha1(str(type(type(knn_model_grid))).encode(\"utf-8\")+b\"d77fd3264047552a\").hexdigest() == \"4872f352b48b1f0b96cb4344309fd73fa278257a\", \"type of type(knn_model_grid) is not correct\"\n", + "assert sha1(str(type(knn_model_grid)).encode(\"utf-8\")+b\"d77fd3264047552a\").hexdigest() == \"4adcbd95a3cf824c2b384c4052fb2afa9142fcc5\", \"value of type(knn_model_grid) is not correct\"\n", "\n", - "assert sha1(str(type(accuracies_grid is None)).encode(\"utf-8\")+b\"f10a1797a901271d\").hexdigest() == \"083e0568d94162b3d84d917c8415ab011389b3e3\", \"type of accuracies_grid is None is not bool. accuracies_grid is None should be a bool\"\n", - "assert sha1(str(accuracies_grid is None).encode(\"utf-8\")+b\"f10a1797a901271d\").hexdigest() == \"7d9c3d845b4b6b75462eb19c51bb55aa9cbe23f7\", \"boolean value of accuracies_grid is None is not correct\"\n", + "assert sha1(str(type(accuracies_grid is None)).encode(\"utf-8\")+b\"7fe447efdcf8af1c\").hexdigest() == \"0887cb3888f225d663a45be21d321940ecb6d123\", \"type of accuracies_grid is None is not bool. accuracies_grid is None should be a bool\"\n", + "assert sha1(str(accuracies_grid is None).encode(\"utf-8\")+b\"7fe447efdcf8af1c\").hexdigest() == \"57cc1ca4a3329eaa78691d3ad5cb892ad40b394c\", \"boolean value of accuracies_grid is None is not correct\"\n", "\n", - "assert sha1(str(type(accuracies_grid)).encode(\"utf-8\")+b\"968aa4f08a2e2d89\").hexdigest() == \"bf5c03976b88a751a0daffdab96f99a8752168de\", \"type of type(accuracies_grid) is not correct\"\n", + "assert sha1(str(type(accuracies_grid)).encode(\"utf-8\")+b\"ced1567994c0195a\").hexdigest() == \"7b6ea0e2fb38a28fa8e6e2ffa934f7a4e490a8c5\", \"type of type(accuracies_grid) is not correct\"\n", "\n", - "assert sha1(str(type(accuracies_grid.shape)).encode(\"utf-8\")+b\"ed768700e7fbc9b3\").hexdigest() == \"bbec00988dd1cdea4e1da0b1d8bc952f8004e874\", \"type of accuracies_grid.shape is not tuple. accuracies_grid.shape should be a tuple\"\n", - "assert sha1(str(len(accuracies_grid.shape)).encode(\"utf-8\")+b\"ed768700e7fbc9b3\").hexdigest() == \"83952a98b905e9d1941cad224ffb3f0904a7d7c7\", \"length of accuracies_grid.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, accuracies_grid.shape))).encode(\"utf-8\")+b\"ed768700e7fbc9b3\").hexdigest() == \"6a5144dc8614e27fc04448359a13132da56d97d3\", \"values of accuracies_grid.shape are not correct\"\n", - "assert sha1(str(accuracies_grid.shape).encode(\"utf-8\")+b\"ed768700e7fbc9b3\").hexdigest() == \"a8d48f298e42efb00674e7aafc3ca48e63ae745f\", \"order of elements of accuracies_grid.shape is not correct\"\n", + "assert sha1(str(type(accuracies_grid.shape)).encode(\"utf-8\")+b\"c49cc51223ca7462\").hexdigest() == \"6ad571996039e53c9eb698be7e81feca1e666f94\", \"type of accuracies_grid.shape is not tuple. accuracies_grid.shape should be a tuple\"\n", + "assert sha1(str(len(accuracies_grid.shape)).encode(\"utf-8\")+b\"c49cc51223ca7462\").hexdigest() == \"a10497a8c52837b7aaa4877ee8786c25d0d21c45\", \"length of accuracies_grid.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, accuracies_grid.shape))).encode(\"utf-8\")+b\"c49cc51223ca7462\").hexdigest() == \"aa0fbc20cf86fc7af5fec27a052154a0ef90cb27\", \"values of accuracies_grid.shape are not correct\"\n", + "assert sha1(str(accuracies_grid.shape).encode(\"utf-8\")+b\"c49cc51223ca7462\").hexdigest() == \"78c6afac7349e0da08c78399d9a3367a1c8cc9c4\", \"order of elements of accuracies_grid.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(accuracies_grid.mean_test_score))).encode(\"utf-8\")+b\"805095b28ad587a2\").hexdigest() == \"4529d8d7431942cc7ad2775c4570d4cb3cae1c14\", \"type of sum(accuracies_grid.mean_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(accuracies_grid.mean_test_score), 2)).encode(\"utf-8\")+b\"805095b28ad587a2\").hexdigest() == \"f227d658fb352981fa94f05619d95983f15398fe\", \"value of sum(accuracies_grid.mean_test_score) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(accuracies_grid.mean_test_score))).encode(\"utf-8\")+b\"801d9617b64066c1\").hexdigest() == \"4c2efdbd7049a5b8c5702f46eccafe01463d48f3\", \"type of sum(accuracies_grid.mean_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(accuracies_grid.mean_test_score), 2)).encode(\"utf-8\")+b\"801d9617b64066c1\").hexdigest() == \"72d7567564158293ae6bcc615eec1fa41f87c274\", \"value of sum(accuracies_grid.mean_test_score) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(accuracies_grid.std_test_score))).encode(\"utf-8\")+b\"cc080c67b31fb5bd\").hexdigest() == \"32fe6a752210b6b8bb34481e3fdc28b3d5fd428a\", \"type of sum(accuracies_grid.std_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(accuracies_grid.std_test_score), 2)).encode(\"utf-8\")+b\"cc080c67b31fb5bd\").hexdigest() == \"22c3f0c9b939c5595f9ce009bda5c59d8aa72c49\", \"value of sum(accuracies_grid.std_test_score) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(accuracies_grid.std_test_score))).encode(\"utf-8\")+b\"918d116d9fdf68ac\").hexdigest() == \"ae7c2eb4b14a3db4d8f733b5ccdf5b816df99b08\", \"type of sum(accuracies_grid.std_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(accuracies_grid.std_test_score), 2)).encode(\"utf-8\")+b\"918d116d9fdf68ac\").hexdigest() == \"ad32461a331e04e21bfaabcd45944480421c1106\", \"value of sum(accuracies_grid.std_test_score) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(accuracies_grid.param_kneighborsclassifier__n_neighbors))).encode(\"utf-8\")+b\"676f484973ca9406\").hexdigest() == \"853624e2bc2f1ac4365772197957799e7f967196\", \"type of sum(accuracies_grid.param_kneighborsclassifier__n_neighbors) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(accuracies_grid.param_kneighborsclassifier__n_neighbors)).encode(\"utf-8\")+b\"676f484973ca9406\").hexdigest() == \"41c559c37dffd4732f38d77d0c66375aa91243f0\", \"value of sum(accuracies_grid.param_kneighborsclassifier__n_neighbors) is not correct\"\n", + "assert sha1(str(type(sum(accuracies_grid.param_kneighborsclassifier__n_neighbors))).encode(\"utf-8\")+b\"a47c01f642a80d48\").hexdigest() == \"96a5c2bd1105e644a184092f7ed3897d092015f2\", \"type of sum(accuracies_grid.param_kneighborsclassifier__n_neighbors) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(accuracies_grid.param_kneighborsclassifier__n_neighbors)).encode(\"utf-8\")+b\"a47c01f642a80d48\").hexdigest() == \"980349e8a36c69ecc22a0d066aa3bb1626d561d9\", \"value of sum(accuracies_grid.param_kneighborsclassifier__n_neighbors) is not correct\"\n", "\n", "print('Success!')" ] @@ -2179,7 +2179,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8499de448858c6d94b09e9f81e8453aa", + "checksum": "218116e28d659aaef13a6dd5b70bb8f6", "grade": true, "grade_id": "cell-6d62d960eaff34d6", "locked": true, @@ -2192,24 +2192,24 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(accuracy_versus_k_grid is None)).encode(\"utf-8\")+b\"7c83b073c0c7345f\").hexdigest() == \"f56256171217c79d60cd31c5a206d82173799c57\", \"type of accuracy_versus_k_grid is None is not bool. accuracy_versus_k_grid is None should be a bool\"\n", - "assert sha1(str(accuracy_versus_k_grid is None).encode(\"utf-8\")+b\"7c83b073c0c7345f\").hexdigest() == \"65037742458a7fb57cf99d25bc242d8b68ca1945\", \"boolean value of accuracy_versus_k_grid is None is not correct\"\n", + "assert sha1(str(type(accuracy_versus_k_grid is None)).encode(\"utf-8\")+b\"1bd668b8d6fe37a6\").hexdigest() == \"805d34531f36d04f571d1340e8d349a49d4c7dbc\", \"type of accuracy_versus_k_grid is None is not bool. accuracy_versus_k_grid is None should be a bool\"\n", + "assert sha1(str(accuracy_versus_k_grid is None).encode(\"utf-8\")+b\"1bd668b8d6fe37a6\").hexdigest() == \"0bfc329a622907907b94a4e86b9c02345e15e57b\", \"boolean value of accuracy_versus_k_grid is None is not correct\"\n", "\n", - "assert sha1(str(type(accuracy_versus_k_grid.encoding.x['shorthand'])).encode(\"utf-8\")+b\"083dec2ea019efc6\").hexdigest() == \"871821b85761f911cd549e3748706373608c3452\", \"type of accuracy_versus_k_grid.encoding.x['shorthand'] is not str. accuracy_versus_k_grid.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(accuracy_versus_k_grid.encoding.x['shorthand'])).encode(\"utf-8\")+b\"083dec2ea019efc6\").hexdigest() == \"3b480b32cafe941c125711b7e6b576a0b2976d1a\", \"length of accuracy_versus_k_grid.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(accuracy_versus_k_grid.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"083dec2ea019efc6\").hexdigest() == \"51c8c975bf3d35a7bd2a7ffabdbd976c306a721e\", \"value of accuracy_versus_k_grid.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(accuracy_versus_k_grid.encoding.x['shorthand']).encode(\"utf-8\")+b\"083dec2ea019efc6\").hexdigest() == \"51c8c975bf3d35a7bd2a7ffabdbd976c306a721e\", \"correct string value of accuracy_versus_k_grid.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(accuracy_versus_k_grid.encoding.x['shorthand'])).encode(\"utf-8\")+b\"c18078810e0d9ecc\").hexdigest() == \"36ca7b78020df156d5efb1870e94851b434daef7\", \"type of accuracy_versus_k_grid.encoding.x['shorthand'] is not str. accuracy_versus_k_grid.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(accuracy_versus_k_grid.encoding.x['shorthand'])).encode(\"utf-8\")+b\"c18078810e0d9ecc\").hexdigest() == \"573f94a6d1424421f8e5b97470caf58f6da14029\", \"length of accuracy_versus_k_grid.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(accuracy_versus_k_grid.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"c18078810e0d9ecc\").hexdigest() == \"06ffa6b019f0e565e3940e07d96813a4d4b7c2c3\", \"value of accuracy_versus_k_grid.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(accuracy_versus_k_grid.encoding.x['shorthand']).encode(\"utf-8\")+b\"c18078810e0d9ecc\").hexdigest() == \"06ffa6b019f0e565e3940e07d96813a4d4b7c2c3\", \"correct string value of accuracy_versus_k_grid.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(accuracy_versus_k_grid.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2cd734f12e2a9b1f\").hexdigest() == \"bd03abbea01b185f9689c06f9c6ac798f4c4c62f\", \"type of accuracy_versus_k_grid.encoding.y['shorthand'] is not str. accuracy_versus_k_grid.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(accuracy_versus_k_grid.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2cd734f12e2a9b1f\").hexdigest() == \"49b430a73986997b46c37927eac6494d1fcbdc30\", \"length of accuracy_versus_k_grid.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(accuracy_versus_k_grid.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"2cd734f12e2a9b1f\").hexdigest() == \"f5263a99780aed072281e552b9696887dcb1e60e\", \"value of accuracy_versus_k_grid.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(accuracy_versus_k_grid.encoding.y['shorthand']).encode(\"utf-8\")+b\"2cd734f12e2a9b1f\").hexdigest() == \"f5263a99780aed072281e552b9696887dcb1e60e\", \"correct string value of accuracy_versus_k_grid.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(accuracy_versus_k_grid.encoding.y['shorthand'])).encode(\"utf-8\")+b\"5637c8051bd0a169\").hexdigest() == \"bad297f3dcbb9a74a3da225ba73a877f82446f62\", \"type of accuracy_versus_k_grid.encoding.y['shorthand'] is not str. accuracy_versus_k_grid.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(accuracy_versus_k_grid.encoding.y['shorthand'])).encode(\"utf-8\")+b\"5637c8051bd0a169\").hexdigest() == \"8812751cf2564034c859592284699b9754ef0b0b\", \"length of accuracy_versus_k_grid.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(accuracy_versus_k_grid.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"5637c8051bd0a169\").hexdigest() == \"69b9296a7d0e58f7d02373fd5e40bfef203bcfdc\", \"value of accuracy_versus_k_grid.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(accuracy_versus_k_grid.encoding.y['shorthand']).encode(\"utf-8\")+b\"5637c8051bd0a169\").hexdigest() == \"69b9296a7d0e58f7d02373fd5e40bfef203bcfdc\", \"correct string value of accuracy_versus_k_grid.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(accuracy_versus_k_grid.mark)).encode(\"utf-8\")+b\"5d3152a8031fb0e4\").hexdigest() == \"e74024b3bc3a0e93278b613c21df662023dec287\", \"type of accuracy_versus_k_grid.mark is not correct\"\n", - "assert sha1(str(accuracy_versus_k_grid.mark).encode(\"utf-8\")+b\"5d3152a8031fb0e4\").hexdigest() == \"f857a808cb15cefb97039db018e769cbe01c56e1\", \"value of accuracy_versus_k_grid.mark is not correct\"\n", + "assert sha1(str(type(accuracy_versus_k_grid.mark)).encode(\"utf-8\")+b\"ea03b1dd7b38997b\").hexdigest() == \"7e5a52e1eeffc695e65ad6728134f73ed9a45832\", \"type of accuracy_versus_k_grid.mark is not correct\"\n", + "assert sha1(str(accuracy_versus_k_grid.mark).encode(\"utf-8\")+b\"ea03b1dd7b38997b\").hexdigest() == \"970b03d252cadc2095286f25cae784d7bb891be1\", \"value of accuracy_versus_k_grid.mark is not correct\"\n", "\n", - "assert sha1(str(type(accuracy_versus_k_grid.mark['point'])).encode(\"utf-8\")+b\"0edd0242d3832c0c\").hexdigest() == \"7496f83b14fe310e3526ab237020f9a678f64aa4\", \"type of accuracy_versus_k_grid.mark['point'] is not bool. accuracy_versus_k_grid.mark['point'] should be a bool\"\n", - "assert sha1(str(accuracy_versus_k_grid.mark['point']).encode(\"utf-8\")+b\"0edd0242d3832c0c\").hexdigest() == \"a0ce913393190e4bd09f4d9c10609bd98383ac7f\", \"boolean value of accuracy_versus_k_grid.mark['point'] is not correct\"\n", + "assert sha1(str(type(accuracy_versus_k_grid.mark['point'])).encode(\"utf-8\")+b\"de65079c11e91819\").hexdigest() == \"3b5256a71993f28d2fe58aabc9b0a79a274c5d0f\", \"type of accuracy_versus_k_grid.mark['point'] is not bool. accuracy_versus_k_grid.mark['point'] should be a bool\"\n", + "assert sha1(str(accuracy_versus_k_grid.mark['point']).encode(\"utf-8\")+b\"de65079c11e91819\").hexdigest() == \"5f0da302e8c3b410b34ed6172e348e190973bade\", \"boolean value of accuracy_versus_k_grid.mark['point'] is not correct\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_clustering/py_worksheet_clustering.ipynb b/py_worksheet_clustering/py_worksheet_clustering.ipynb index af17f1c..8813ad2 100644 --- a/py_worksheet_clustering/py_worksheet_clustering.ipynb +++ b/py_worksheet_clustering/py_worksheet_clustering.ipynb @@ -135,7 +135,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c7373389c4579997d551f58540e54244", + "checksum": "3630b25ce3d96a184ec0eeb91af3ee37", "grade": true, "grade_id": "cell-13f71e2d909892e4", "locked": true, @@ -147,10 +147,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_0)).encode(\"utf-8\")+b\"8410de25b60e1969\").hexdigest() == \"74c7fa636da10ec81606aaf89ce9d63b13f0b4d0\", \"type of answer0_0 is not str. answer0_0 should be an str\"\n", - "assert sha1(str(len(answer0_0)).encode(\"utf-8\")+b\"8410de25b60e1969\").hexdigest() == \"0dee4d7f831cbc6d2f8bb54295ea7019773e52f4\", \"length of answer0_0 is not correct\"\n", - "assert sha1(str(answer0_0.lower()).encode(\"utf-8\")+b\"8410de25b60e1969\").hexdigest() == \"ddc450446039be2700a3ed35f6a243058a450d33\", \"value of answer0_0 is not correct\"\n", - "assert sha1(str(answer0_0).encode(\"utf-8\")+b\"8410de25b60e1969\").hexdigest() == \"77384839be0bf16cd80428535e26369cff8856f3\", \"correct string value of answer0_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_0)).encode(\"utf-8\")+b\"3eeb15eedcd9f462\").hexdigest() == \"a0ffd2da4d5937f079f681b1586960a25c672270\", \"type of answer0_0 is not str. answer0_0 should be an str\"\n", + "assert sha1(str(len(answer0_0)).encode(\"utf-8\")+b\"3eeb15eedcd9f462\").hexdigest() == \"541d08881c17f6c643bb15dbaa5223f7342aeac2\", \"length of answer0_0 is not correct\"\n", + "assert sha1(str(answer0_0.lower()).encode(\"utf-8\")+b\"3eeb15eedcd9f462\").hexdigest() == \"1a7c272141e5753d9e8db2f69618f16fb23380c1\", \"value of answer0_0 is not correct\"\n", + "assert sha1(str(answer0_0).encode(\"utf-8\")+b\"3eeb15eedcd9f462\").hexdigest() == \"d243c897dbd8534ae3bb69d3dd1d285464217b70\", \"correct string value of answer0_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -219,7 +219,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b8ebc77ca61ef3d4fd9976cad92c1c35", + "checksum": "e684aaca00f07b906e3429b021aa6837", "grade": true, "grade_id": "cell-4ac8aab3f8626a82", "locked": true, @@ -231,10 +231,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"1c100869e4afe4ef\").hexdigest() == \"8b5938e6d46b00ec6babb00948adb81d7c27f1d8\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", - "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"1c100869e4afe4ef\").hexdigest() == \"5a866734cb9501ad540c14d96ad328e3425ca113\", \"length of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"1c100869e4afe4ef\").hexdigest() == \"1c0245bd0b6f91a00342a61b84025bb8e86e5222\", \"value of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"1c100869e4afe4ef\").hexdigest() == \"1c0245bd0b6f91a00342a61b84025bb8e86e5222\", \"correct string value of answer0_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"20ffccbe34ae31e3\").hexdigest() == \"8612140753158dc889b1702c6ebbec3c364190b4\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", + "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"20ffccbe34ae31e3\").hexdigest() == \"3d894f0bad1c46f50afddd76185b6ff0194d94d1\", \"length of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"20ffccbe34ae31e3\").hexdigest() == \"f52c49617956c20fde6a4279ba739a747b09198f\", \"value of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"20ffccbe34ae31e3\").hexdigest() == \"f52c49617956c20fde6a4279ba739a747b09198f\", \"correct string value of answer0_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -318,7 +318,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f3114db8c7e666a7d71f075c3564247b", + "checksum": "525f956f8a953782dd019e382fdd5a23", "grade": true, "grade_id": "cell-7afc19b7bc727fc8", "locked": true, @@ -330,36 +330,36 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer is None)).encode(\"utf-8\")+b\"e341ae8bdad12023\").hexdigest() == \"80fc56569a79c1a8c42b767d1e7615f0f66c9df9\", \"type of beer is None is not bool. beer is None should be a bool\"\n", - "assert sha1(str(beer is None).encode(\"utf-8\")+b\"e341ae8bdad12023\").hexdigest() == \"5241e8fc32cc938e8ae3dfda6fe972b843705fa5\", \"boolean value of beer is None is not correct\"\n", + "assert sha1(str(type(beer is None)).encode(\"utf-8\")+b\"171dedfd70e35dcd\").hexdigest() == \"0f8f32ebbc48f136e650852c5214083312be9636\", \"type of beer is None is not bool. beer is None should be a bool\"\n", + "assert sha1(str(beer is None).encode(\"utf-8\")+b\"171dedfd70e35dcd\").hexdigest() == \"36cd5c4ed784cb290038bd742962c1170e35ffd2\", \"boolean value of beer is None is not correct\"\n", "\n", - "assert sha1(str(type(beer)).encode(\"utf-8\")+b\"d2a59438c486c12a\").hexdigest() == \"93edeae1fb74fb91bf256c682b5c99588d0143f7\", \"type of type(beer) is not correct\"\n", + "assert sha1(str(type(beer)).encode(\"utf-8\")+b\"30a4af9d11f5329a\").hexdigest() == \"09d0523581645d309e703288494e1e0fd76291e3\", \"type of type(beer) is not correct\"\n", "\n", - "assert sha1(str(type(beer.shape)).encode(\"utf-8\")+b\"6dcc24337525a300\").hexdigest() == \"ac8fd7cfcc30cfd13d022eba52076158362a6533\", \"type of beer.shape is not tuple. beer.shape should be a tuple\"\n", - "assert sha1(str(len(beer.shape)).encode(\"utf-8\")+b\"6dcc24337525a300\").hexdigest() == \"a4ae6b0663b365b9e09328bcf6e9b156298c4e13\", \"length of beer.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, beer.shape))).encode(\"utf-8\")+b\"6dcc24337525a300\").hexdigest() == \"37fc58e3c4c6962f998590864ea18cb7e4423cee\", \"values of beer.shape are not correct\"\n", - "assert sha1(str(beer.shape).encode(\"utf-8\")+b\"6dcc24337525a300\").hexdigest() == \"ead1f75e794339b5ed7adf81752eaa4b48e031a5\", \"order of elements of beer.shape is not correct\"\n", + "assert sha1(str(type(beer.shape)).encode(\"utf-8\")+b\"ea4714df34242b77\").hexdigest() == \"5ea651e1952c9fa4722153ee520e8c2174ad871f\", \"type of beer.shape is not tuple. beer.shape should be a tuple\"\n", + "assert sha1(str(len(beer.shape)).encode(\"utf-8\")+b\"ea4714df34242b77\").hexdigest() == \"40afbebe32c86917d6580b431d233f69b34cd592\", \"length of beer.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, beer.shape))).encode(\"utf-8\")+b\"ea4714df34242b77\").hexdigest() == \"e0bd91be10d9be5c461142ba8484cc625d420727\", \"values of beer.shape are not correct\"\n", + "assert sha1(str(beer.shape).encode(\"utf-8\")+b\"ea4714df34242b77\").hexdigest() == \"6c1a96e6f0db2617b0dd2cec44c9c66a4f5df69b\", \"order of elements of beer.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"abv\" in beer.columns)).encode(\"utf-8\")+b\"977bb85a445f3e23\").hexdigest() == \"f4767e3aeabec04a91e9707f8ff49f6d4d7fedc4\", \"type of \\\"abv\\\" in beer.columns is not bool. \\\"abv\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"abv\" in beer.columns).encode(\"utf-8\")+b\"977bb85a445f3e23\").hexdigest() == \"1bf050c039e806c19abe089c3c408914dc294f74\", \"boolean value of \\\"abv\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"abv\" in beer.columns)).encode(\"utf-8\")+b\"e64a84809b832807\").hexdigest() == \"e9138a87025ed338402d1dcc11a984e4cfe5f72c\", \"type of \\\"abv\\\" in beer.columns is not bool. \\\"abv\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"abv\" in beer.columns).encode(\"utf-8\")+b\"e64a84809b832807\").hexdigest() == \"0d2ab08d06b1027ab10114744b0c5b6f6b687b50\", \"boolean value of \\\"abv\\\" in beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"ibu\" in beer.columns)).encode(\"utf-8\")+b\"a54b4b4fa472c956\").hexdigest() == \"02e7a48438573998c580abe632d11fb35efa7429\", \"type of \\\"ibu\\\" in beer.columns is not bool. \\\"ibu\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"ibu\" in beer.columns).encode(\"utf-8\")+b\"a54b4b4fa472c956\").hexdigest() == \"1cb4457e913321254575e9f6c6e3a29f3f5354f1\", \"boolean value of \\\"ibu\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"ibu\" in beer.columns)).encode(\"utf-8\")+b\"143e2de13a8e48bf\").hexdigest() == \"793eca8e270c8ab91735a8dddef8fdf55ca1da6b\", \"type of \\\"ibu\\\" in beer.columns is not bool. \\\"ibu\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"ibu\" in beer.columns).encode(\"utf-8\")+b\"143e2de13a8e48bf\").hexdigest() == \"51a9a8dcef69129a7450a1c137adeb4da60cb91e\", \"boolean value of \\\"ibu\\\" in beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"id\" in beer.columns)).encode(\"utf-8\")+b\"06390c317d496591\").hexdigest() == \"42efb3a9d64d019128e9e6f9910cab5e1f629d26\", \"type of \\\"id\\\" in beer.columns is not bool. \\\"id\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"id\" in beer.columns).encode(\"utf-8\")+b\"06390c317d496591\").hexdigest() == \"d362d424648a60ed18992e04dde972be0ea1f630\", \"boolean value of \\\"id\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"id\" in beer.columns)).encode(\"utf-8\")+b\"41df0b70c943515b\").hexdigest() == \"39e7df2e458cc0fb3c865ca7b3c5c9ffea02a4f7\", \"type of \\\"id\\\" in beer.columns is not bool. \\\"id\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"id\" in beer.columns).encode(\"utf-8\")+b\"41df0b70c943515b\").hexdigest() == \"1a1c9a9c48ed5017310ba7d8e2a9e8feaaa91a01\", \"boolean value of \\\"id\\\" in beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"name\" in beer.columns)).encode(\"utf-8\")+b\"1f964002b847a44a\").hexdigest() == \"91cd45a1e630c86770d6470f719c1bb3463987ec\", \"type of \\\"name\\\" in beer.columns is not bool. \\\"name\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"name\" in beer.columns).encode(\"utf-8\")+b\"1f964002b847a44a\").hexdigest() == \"0c7e62ef4c219c86b6854f585d89784cb60c6873\", \"boolean value of \\\"name\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"name\" in beer.columns)).encode(\"utf-8\")+b\"c2238676b39c8e6a\").hexdigest() == \"befa123d005f05119cce76400ab391cf69fb4549\", \"type of \\\"name\\\" in beer.columns is not bool. \\\"name\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"name\" in beer.columns).encode(\"utf-8\")+b\"c2238676b39c8e6a\").hexdigest() == \"321153df8aef0ad4ec6a5ad64f9b558cb48244d0\", \"boolean value of \\\"name\\\" in beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"style\" in beer.columns)).encode(\"utf-8\")+b\"7d2c05f736a6e8d4\").hexdigest() == \"c8c75eb837a04f718a3b8884f8554db9d2a10488\", \"type of \\\"style\\\" in beer.columns is not bool. \\\"style\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"style\" in beer.columns).encode(\"utf-8\")+b\"7d2c05f736a6e8d4\").hexdigest() == \"66bd4ec2fd1dd4c9b8d5e4e77ed9e6ec995927e2\", \"boolean value of \\\"style\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"style\" in beer.columns)).encode(\"utf-8\")+b\"88860a5e9385c880\").hexdigest() == \"c9a7cd1600eb4cdda03589af9796cfa79d8f38f0\", \"type of \\\"style\\\" in beer.columns is not bool. \\\"style\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"style\" in beer.columns).encode(\"utf-8\")+b\"88860a5e9385c880\").hexdigest() == \"de3661446b2e6440dbd4c567feeb4a56de102cb1\", \"boolean value of \\\"style\\\" in beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"brewery_id\" in beer.columns)).encode(\"utf-8\")+b\"a4eb108b541c35fd\").hexdigest() == \"ba70989653cdef36e8d7f564f8580dea430123c0\", \"type of \\\"brewery_id\\\" in beer.columns is not bool. \\\"brewery_id\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"brewery_id\" in beer.columns).encode(\"utf-8\")+b\"a4eb108b541c35fd\").hexdigest() == \"ac787d7ebbc20b809c1e880fd87067db8ce1e27e\", \"boolean value of \\\"brewery_id\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"brewery_id\" in beer.columns)).encode(\"utf-8\")+b\"e46303b79a057d07\").hexdigest() == \"6c6124274453e335b5826b6b91f72554c968f42f\", \"type of \\\"brewery_id\\\" in beer.columns is not bool. \\\"brewery_id\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"brewery_id\" in beer.columns).encode(\"utf-8\")+b\"e46303b79a057d07\").hexdigest() == \"88ec9bfa6c66916ea1ccda6a1165783399af3fb3\", \"boolean value of \\\"brewery_id\\\" in beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"ounces\" in beer.columns)).encode(\"utf-8\")+b\"dd23c29e721de384\").hexdigest() == \"408b3745538ca2dfbde826aeef8b14989beca868\", \"type of \\\"ounces\\\" in beer.columns is not bool. \\\"ounces\\\" in beer.columns should be a bool\"\n", - "assert sha1(str(\"ounces\" in beer.columns).encode(\"utf-8\")+b\"dd23c29e721de384\").hexdigest() == \"af73db6b32b25c4cb7a54607c445e189a3da9970\", \"boolean value of \\\"ounces\\\" in beer.columns is not correct\"\n", + "assert sha1(str(type(\"ounces\" in beer.columns)).encode(\"utf-8\")+b\"6da09585784639d9\").hexdigest() == \"7ceb76c8f8d3af8c0915a06cf4898893d89817e9\", \"type of \\\"ounces\\\" in beer.columns is not bool. \\\"ounces\\\" in beer.columns should be a bool\"\n", + "assert sha1(str(\"ounces\" in beer.columns).encode(\"utf-8\")+b\"6da09585784639d9\").hexdigest() == \"e3c893e9d70a02e585735539cc38125dae9707df\", \"boolean value of \\\"ounces\\\" in beer.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -419,7 +419,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f47082f9927977549dd28a45fd07f9df", + "checksum": "92c4117f4a80c1b494683b24c5d6edfc", "grade": true, "grade_id": "cell-a38c885f90300a1b", "locked": true, @@ -431,30 +431,30 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer_scatter is None)).encode(\"utf-8\")+b\"fe07cdf30d31f87d\").hexdigest() == \"7f3d8b387ff232417e9464d3e694fc74c37324ce\", \"type of beer_scatter is None is not bool. beer_scatter is None should be a bool\"\n", - "assert sha1(str(beer_scatter is None).encode(\"utf-8\")+b\"fe07cdf30d31f87d\").hexdigest() == \"61e2dc8a4478807db03b4d1cdd8cca937f9fc865\", \"boolean value of beer_scatter is None is not correct\"\n", + "assert sha1(str(type(beer_scatter is None)).encode(\"utf-8\")+b\"8d13c24947350405\").hexdigest() == \"9518c778b4bd38073e46ef4ca66519c14224b25d\", \"type of beer_scatter is None is not bool. beer_scatter is None should be a bool\"\n", + "assert sha1(str(beer_scatter is None).encode(\"utf-8\")+b\"8d13c24947350405\").hexdigest() == \"6069e27bc18c9b95672fc5746741d81bccfbc138\", \"boolean value of beer_scatter is None is not correct\"\n", "\n", - "assert sha1(str(type(beer_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"98a4c02c17b658f1\").hexdigest() == \"f33a70f51fdd88f32e03616fc68f2b4bfaae39f8\", \"type of beer_scatter.encoding.x['shorthand'] is not str. beer_scatter.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(beer_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"98a4c02c17b658f1\").hexdigest() == \"1dac1afaaaeeb4a6fdee2760eac6fda09f2e1d3a\", \"length of beer_scatter.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(beer_scatter.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"98a4c02c17b658f1\").hexdigest() == \"aa945d968587257bb6dc45592c825ae891be80b1\", \"value of beer_scatter.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(beer_scatter.encoding.x['shorthand']).encode(\"utf-8\")+b\"98a4c02c17b658f1\").hexdigest() == \"aa945d968587257bb6dc45592c825ae891be80b1\", \"correct string value of beer_scatter.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(beer_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0431a439b7043a32\").hexdigest() == \"ff15565a57519a46b3dc5aa0c28a16f7e88b48e1\", \"type of beer_scatter.encoding.x['shorthand'] is not str. beer_scatter.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(beer_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0431a439b7043a32\").hexdigest() == \"816c38733ac115a5344727a74af0c5ff6813893b\", \"length of beer_scatter.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(beer_scatter.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"0431a439b7043a32\").hexdigest() == \"643372288bfa3b71a0184d7e107630e9bd5128c4\", \"value of beer_scatter.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(beer_scatter.encoding.x['shorthand']).encode(\"utf-8\")+b\"0431a439b7043a32\").hexdigest() == \"643372288bfa3b71a0184d7e107630e9bd5128c4\", \"correct string value of beer_scatter.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(beer_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"e82c48935b034055\").hexdigest() == \"1322de0b1afe6df9a80c443bede8c328bce3360a\", \"type of beer_scatter.encoding.y['shorthand'] is not str. beer_scatter.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(beer_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"e82c48935b034055\").hexdigest() == \"31965e207e6e9217c2f68b82ac487f585e177c2b\", \"length of beer_scatter.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(beer_scatter.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"e82c48935b034055\").hexdigest() == \"b4c888ac8213baefbbe409f2b0030693e6250977\", \"value of beer_scatter.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(beer_scatter.encoding.y['shorthand']).encode(\"utf-8\")+b\"e82c48935b034055\").hexdigest() == \"b4c888ac8213baefbbe409f2b0030693e6250977\", \"correct string value of beer_scatter.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(beer_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"efb982be9f00f620\").hexdigest() == \"00bc95af591887d9b9a76b4b6a2a7b4c753148a2\", \"type of beer_scatter.encoding.y['shorthand'] is not str. beer_scatter.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(beer_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"efb982be9f00f620\").hexdigest() == \"f0de65c1100220afc7a87063a6cabfb87705db96\", \"length of beer_scatter.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(beer_scatter.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"efb982be9f00f620\").hexdigest() == \"4943725e5d30750b04b5498e5559f19d5d5fde42\", \"value of beer_scatter.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(beer_scatter.encoding.y['shorthand']).encode(\"utf-8\")+b\"efb982be9f00f620\").hexdigest() == \"4943725e5d30750b04b5498e5559f19d5d5fde42\", \"correct string value of beer_scatter.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'])).encode(\"utf-8\")+b\"da1487085eeefa5a\").hexdigest() == \"239cb13aa8b69da98b43d53adb05488c28dddea5\", \"type of beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'] is not bool. beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'] should be a bool\"\n", - "assert sha1(str(beer_scatter.to_dict()['mark']['type'] in ['circle', 'point']).encode(\"utf-8\")+b\"da1487085eeefa5a\").hexdigest() == \"2e31344454ecf20393286e7866ed4f4206616166\", \"boolean value of beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'] is not correct\"\n", + "assert sha1(str(type(beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'])).encode(\"utf-8\")+b\"56696361310befc4\").hexdigest() == \"adad62e62523ae075fd6db3f6a3d8f2900149cb7\", \"type of beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'] is not bool. beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'] should be a bool\"\n", + "assert sha1(str(beer_scatter.to_dict()['mark']['type'] in ['circle', 'point']).encode(\"utf-8\")+b\"56696361310befc4\").hexdigest() == \"62b3de410bdeb35fc36983526f7c206f74a45f78\", \"boolean value of beer_scatter.to_dict()['mark']['type'] in ['circle', 'point'] is not correct\"\n", "\n", - "assert sha1(str(type('opacity' in beer_scatter.mark.to_dict())).encode(\"utf-8\")+b\"7b69d003e953b0c9\").hexdigest() == \"4524d3fdd60f7fb398013611ef2447532024df7b\", \"type of 'opacity' in beer_scatter.mark.to_dict() is not bool. 'opacity' in beer_scatter.mark.to_dict() should be a bool\"\n", - "assert sha1(str('opacity' in beer_scatter.mark.to_dict()).encode(\"utf-8\")+b\"7b69d003e953b0c9\").hexdigest() == \"966899ea2e79ff18629b9e72571d1dc920c5928c\", \"boolean value of 'opacity' in beer_scatter.mark.to_dict() is not correct\"\n", + "assert sha1(str(type('opacity' in beer_scatter.mark.to_dict())).encode(\"utf-8\")+b\"be1e9f23bf7274b1\").hexdigest() == \"e2d1db3940fbceaf640e606350cd0c84e2612673\", \"type of 'opacity' in beer_scatter.mark.to_dict() is not bool. 'opacity' in beer_scatter.mark.to_dict() should be a bool\"\n", + "assert sha1(str('opacity' in beer_scatter.mark.to_dict()).encode(\"utf-8\")+b\"be1e9f23bf7274b1\").hexdigest() == \"f5cb64ba05ac1b44321b457634d0aa6302d152b8\", \"boolean value of 'opacity' in beer_scatter.mark.to_dict() is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(beer_scatter.encoding.x['title'], str))).encode(\"utf-8\")+b\"f7591feee5b371cc\").hexdigest() == \"aa17042e894088231e693111b4b7fa9c403b1459\", \"type of isinstance(beer_scatter.encoding.x['title'], str) is not bool. isinstance(beer_scatter.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(beer_scatter.encoding.x['title'], str)).encode(\"utf-8\")+b\"f7591feee5b371cc\").hexdigest() == \"8a1ce6e619bea16c1ce8b378ca74f284118c57dd\", \"boolean value of isinstance(beer_scatter.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(beer_scatter.encoding.x['title'], str))).encode(\"utf-8\")+b\"028c4fc230c057eb\").hexdigest() == \"1ea5a64935bf4c7ee5e24cc4cc7d18b3a1d61883\", \"type of isinstance(beer_scatter.encoding.x['title'], str) is not bool. isinstance(beer_scatter.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(beer_scatter.encoding.x['title'], str)).encode(\"utf-8\")+b\"028c4fc230c057eb\").hexdigest() == \"4189bd17f9032986f5b6c8af30f7d668f1ef8fdb\", \"boolean value of isinstance(beer_scatter.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(beer_scatter.encoding.y['title'], str))).encode(\"utf-8\")+b\"30a5c138c7490f85\").hexdigest() == \"2dc049f1c7863463217941ad4d10355a1911d055\", \"type of isinstance(beer_scatter.encoding.y['title'], str) is not bool. isinstance(beer_scatter.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(beer_scatter.encoding.y['title'], str)).encode(\"utf-8\")+b\"30a5c138c7490f85\").hexdigest() == \"cc085b4d0e4342fc6510b605ff025c143c8d46e4\", \"boolean value of isinstance(beer_scatter.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(beer_scatter.encoding.y['title'], str))).encode(\"utf-8\")+b\"c60dd0971b455d0c\").hexdigest() == \"8e70e2a91db9713447f0703b167c3b3a3f42ae1a\", \"type of isinstance(beer_scatter.encoding.y['title'], str) is not bool. isinstance(beer_scatter.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(beer_scatter.encoding.y['title'], str)).encode(\"utf-8\")+b\"c60dd0971b455d0c\").hexdigest() == \"0276c8852491dc18da2cb0cb418da059f53061a9\", \"boolean value of isinstance(beer_scatter.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -516,7 +516,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "a731ab28b19f7cec0015f2865481e894", + "checksum": "0b1554f0b884449a3b9c631acb86b081", "grade": true, "grade_id": "cell-1ed1c760a10e3e9d", "locked": true, @@ -528,36 +528,36 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(clean_beer is None)).encode(\"utf-8\")+b\"a3e02d6c2ba54efb\").hexdigest() == \"150d8d0f6883cc16bf936fcf7ea6306d4a0b6196\", \"type of clean_beer is None is not bool. clean_beer is None should be a bool\"\n", - "assert sha1(str(clean_beer is None).encode(\"utf-8\")+b\"a3e02d6c2ba54efb\").hexdigest() == \"63f71aa344563944f151422f3475acf58e45aff6\", \"boolean value of clean_beer is None is not correct\"\n", + "assert sha1(str(type(clean_beer is None)).encode(\"utf-8\")+b\"08d2531c1401e392\").hexdigest() == \"625fd63ce3fc932e31ffc8ed5ad4956cd68bfe74\", \"type of clean_beer is None is not bool. clean_beer is None should be a bool\"\n", + "assert sha1(str(clean_beer is None).encode(\"utf-8\")+b\"08d2531c1401e392\").hexdigest() == \"0946af4daa231e3c78498c8aa0c425392bc94ceb\", \"boolean value of clean_beer is None is not correct\"\n", "\n", - "assert sha1(str(type(clean_beer)).encode(\"utf-8\")+b\"b885eab89e89bea9\").hexdigest() == \"13ddf270173ecfc7ccb53be1c25f6f4c9db65990\", \"type of type(clean_beer) is not correct\"\n", + "assert sha1(str(type(clean_beer)).encode(\"utf-8\")+b\"78412a1b510ea93b\").hexdigest() == \"5a1001e2e19ac5280203d413280b593ba66cd6f7\", \"type of type(clean_beer) is not correct\"\n", "\n", - "assert sha1(str(type(clean_beer.shape)).encode(\"utf-8\")+b\"5055fc6ecaba3a0c\").hexdigest() == \"b2550f3233c0e375697b4231615b1cd40b51f15c\", \"type of clean_beer.shape is not tuple. clean_beer.shape should be a tuple\"\n", - "assert sha1(str(len(clean_beer.shape)).encode(\"utf-8\")+b\"5055fc6ecaba3a0c\").hexdigest() == \"471828ed7a9d71fce6526c66af94692b637251fe\", \"length of clean_beer.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, clean_beer.shape))).encode(\"utf-8\")+b\"5055fc6ecaba3a0c\").hexdigest() == \"aa4f7b83b87d63379711fe2ab70c020416673c9f\", \"values of clean_beer.shape are not correct\"\n", - "assert sha1(str(clean_beer.shape).encode(\"utf-8\")+b\"5055fc6ecaba3a0c\").hexdigest() == \"4075cb5653698d16c50947eeaec2eae23331e685\", \"order of elements of clean_beer.shape is not correct\"\n", + "assert sha1(str(type(clean_beer.shape)).encode(\"utf-8\")+b\"b457f2cb0160695b\").hexdigest() == \"2e91f671399026cc405f9341fd98d1c966194564\", \"type of clean_beer.shape is not tuple. clean_beer.shape should be a tuple\"\n", + "assert sha1(str(len(clean_beer.shape)).encode(\"utf-8\")+b\"b457f2cb0160695b\").hexdigest() == \"6454cbc0952017f46aeab79a3289857693d7b838\", \"length of clean_beer.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, clean_beer.shape))).encode(\"utf-8\")+b\"b457f2cb0160695b\").hexdigest() == \"1ddd9c5c57dcbb8bbbdf3fa9fab7b380918cd2c5\", \"values of clean_beer.shape are not correct\"\n", + "assert sha1(str(clean_beer.shape).encode(\"utf-8\")+b\"b457f2cb0160695b\").hexdigest() == \"ddc14a7c43b1781eae448bc6cdf96a06d6147350\", \"order of elements of clean_beer.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"abv\" in clean_beer.columns)).encode(\"utf-8\")+b\"dd188309f6fa33c0\").hexdigest() == \"1886644f7b3503ec0a2d076570691942264446d0\", \"type of \\\"abv\\\" in clean_beer.columns is not bool. \\\"abv\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"abv\" in clean_beer.columns).encode(\"utf-8\")+b\"dd188309f6fa33c0\").hexdigest() == \"54deaa11841024df8e452f68ac6bba14073244b5\", \"boolean value of \\\"abv\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"abv\" in clean_beer.columns)).encode(\"utf-8\")+b\"e2d084dc49b67423\").hexdigest() == \"9ae8ee30ef06e2f7cfa0d0de438d5cbec3040b14\", \"type of \\\"abv\\\" in clean_beer.columns is not bool. \\\"abv\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"abv\" in clean_beer.columns).encode(\"utf-8\")+b\"e2d084dc49b67423\").hexdigest() == \"4e015465736219d178796fd463e9368a8f7fe50e\", \"boolean value of \\\"abv\\\" in clean_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"ibu\" in clean_beer.columns)).encode(\"utf-8\")+b\"91a371d0d8a179a9\").hexdigest() == \"864b0e41703539649149b956286fa58f7316b56b\", \"type of \\\"ibu\\\" in clean_beer.columns is not bool. \\\"ibu\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"ibu\" in clean_beer.columns).encode(\"utf-8\")+b\"91a371d0d8a179a9\").hexdigest() == \"a3420acad491b01544bfb16cdd9ffdd9fd4e71e5\", \"boolean value of \\\"ibu\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"ibu\" in clean_beer.columns)).encode(\"utf-8\")+b\"66d8bdd4e4932404\").hexdigest() == \"7668d4b21066d57d467f7c04f4d5b9f34136c63c\", \"type of \\\"ibu\\\" in clean_beer.columns is not bool. \\\"ibu\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"ibu\" in clean_beer.columns).encode(\"utf-8\")+b\"66d8bdd4e4932404\").hexdigest() == \"e7f0fb90af609e91350acb7493da366cbe2bc0a3\", \"boolean value of \\\"ibu\\\" in clean_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"id\" in clean_beer.columns)).encode(\"utf-8\")+b\"3097f30a3f190d5d\").hexdigest() == \"e052c4eb61c1e983ee1deb6fc75696f34ee4cff7\", \"type of \\\"id\\\" in clean_beer.columns is not bool. \\\"id\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"id\" in clean_beer.columns).encode(\"utf-8\")+b\"3097f30a3f190d5d\").hexdigest() == \"6910701f9acab8708ebd857d42250afb41a019c5\", \"boolean value of \\\"id\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"id\" in clean_beer.columns)).encode(\"utf-8\")+b\"c66abd00d7a62768\").hexdigest() == \"ac08061ba8275db4dc771efe7ae4b2e0eeb75a4b\", \"type of \\\"id\\\" in clean_beer.columns is not bool. \\\"id\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"id\" in clean_beer.columns).encode(\"utf-8\")+b\"c66abd00d7a62768\").hexdigest() == \"88d05b33d367da5fd035adc7679c595a4bd0d71b\", \"boolean value of \\\"id\\\" in clean_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"name\" in clean_beer.columns)).encode(\"utf-8\")+b\"acbdf581fb94f906\").hexdigest() == \"b18a6f5f7ea1ec05ca4a9da04f77db44d9e20268\", \"type of \\\"name\\\" in clean_beer.columns is not bool. \\\"name\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"name\" in clean_beer.columns).encode(\"utf-8\")+b\"acbdf581fb94f906\").hexdigest() == \"4a7e559b30809d053cdede848e8fd79c35866564\", \"boolean value of \\\"name\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"name\" in clean_beer.columns)).encode(\"utf-8\")+b\"7746b6beee73423d\").hexdigest() == \"f5024fc9446d2df5dc0619f7710b2946015079ca\", \"type of \\\"name\\\" in clean_beer.columns is not bool. \\\"name\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"name\" in clean_beer.columns).encode(\"utf-8\")+b\"7746b6beee73423d\").hexdigest() == \"05d553b71a4d09e91ad002daa167c84f24921e64\", \"boolean value of \\\"name\\\" in clean_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"style\" in clean_beer.columns)).encode(\"utf-8\")+b\"2aaf4bd2f3671e54\").hexdigest() == \"120138e89f291afaf8ee22881b0d565599df9c48\", \"type of \\\"style\\\" in clean_beer.columns is not bool. \\\"style\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"style\" in clean_beer.columns).encode(\"utf-8\")+b\"2aaf4bd2f3671e54\").hexdigest() == \"fc4551319711c95ad3fa8fbf74225f3899915ac3\", \"boolean value of \\\"style\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"style\" in clean_beer.columns)).encode(\"utf-8\")+b\"b57798ce55c5ce79\").hexdigest() == \"96a352274437f512602f1794e1800bc3873eecb1\", \"type of \\\"style\\\" in clean_beer.columns is not bool. \\\"style\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"style\" in clean_beer.columns).encode(\"utf-8\")+b\"b57798ce55c5ce79\").hexdigest() == \"a05874b2ff9c918cb179c4851c2ebbfa61e27fd5\", \"boolean value of \\\"style\\\" in clean_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"brewery_id\" in clean_beer.columns)).encode(\"utf-8\")+b\"5285d68068c6d968\").hexdigest() == \"708d2f08dd764450a9808d0f04f52c2177916ee5\", \"type of \\\"brewery_id\\\" in clean_beer.columns is not bool. \\\"brewery_id\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"brewery_id\" in clean_beer.columns).encode(\"utf-8\")+b\"5285d68068c6d968\").hexdigest() == \"fa7ec0810a4009192b9167755c147e170c8bb614\", \"boolean value of \\\"brewery_id\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"brewery_id\" in clean_beer.columns)).encode(\"utf-8\")+b\"ccfeaf4232b72054\").hexdigest() == \"1d5bedf747dca60734f0d815a91aaa4a0b246830\", \"type of \\\"brewery_id\\\" in clean_beer.columns is not bool. \\\"brewery_id\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"brewery_id\" in clean_beer.columns).encode(\"utf-8\")+b\"ccfeaf4232b72054\").hexdigest() == \"24e1b2acdc621b63cfbf83f4ab79064d1e30e7f3\", \"boolean value of \\\"brewery_id\\\" in clean_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"ounces\" in clean_beer.columns)).encode(\"utf-8\")+b\"8f4a4bc454ffbb05\").hexdigest() == \"91043617ffa277b7b132c72248ce26a0a2ec7936\", \"type of \\\"ounces\\\" in clean_beer.columns is not bool. \\\"ounces\\\" in clean_beer.columns should be a bool\"\n", - "assert sha1(str(\"ounces\" in clean_beer.columns).encode(\"utf-8\")+b\"8f4a4bc454ffbb05\").hexdigest() == \"7defeec87e2494d13886571cebef2846f9a9f53e\", \"boolean value of \\\"ounces\\\" in clean_beer.columns is not correct\"\n", + "assert sha1(str(type(\"ounces\" in clean_beer.columns)).encode(\"utf-8\")+b\"32cec534ddba143e\").hexdigest() == \"7dc5d97325429839d54ac6c295521ba71303c149\", \"type of \\\"ounces\\\" in clean_beer.columns is not bool. \\\"ounces\\\" in clean_beer.columns should be a bool\"\n", + "assert sha1(str(\"ounces\" in clean_beer.columns).encode(\"utf-8\")+b\"32cec534ddba143e\").hexdigest() == \"e49efbf14e2f0abef86955531d15eb2497dc4d05\", \"boolean value of \\\"ounces\\\" in clean_beer.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -625,7 +625,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "23fa648d6901870d191437c8c5ebcc02", + "checksum": "d13415eb95407a05f917c00fc8a2d942", "grade": true, "grade_id": "cell-cee046b5d47ebb72", "locked": true, @@ -638,10 +638,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"3770ab9b6a8ae236\").hexdigest() == \"766b64fe4856bb2bbda6fabd58bfb11100a66877\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", - "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"3770ab9b6a8ae236\").hexdigest() == \"2d211fdb3d50d04bdbca8ff33a572a7e6a99532a\", \"length of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"3770ab9b6a8ae236\").hexdigest() == \"096480e9482bca090b0838e78d90e57104f5fc8f\", \"value of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"3770ab9b6a8ae236\").hexdigest() == \"2c5780f0d777f5b39995b4ba0423ab149141b0d3\", \"correct string value of answer1_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"0a0ec45eb01130fa\").hexdigest() == \"c9ecca07e859780f26a45feb4415a25185f337e9\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", + "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"0a0ec45eb01130fa\").hexdigest() == \"b78cd99b9616428d05e2b9264e55b1ae84973359\", \"length of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"0a0ec45eb01130fa\").hexdigest() == \"b4293bb4129cec53a9e674cdde21c32340bc8817\", \"value of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"0a0ec45eb01130fa\").hexdigest() == \"a61ed0a1231f8484971861510f69a3ac9d708afb\", \"correct string value of answer1_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -707,7 +707,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "136dd18709b1a71abe86fafd500e8aea", + "checksum": "77e1b1eded2d130d3e827c313c2bcaf9", "grade": true, "grade_id": "cell-f4fa609002e00099", "locked": true, @@ -719,14 +719,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer_preprocessor is None)).encode(\"utf-8\")+b\"4dfed88add813cd8\").hexdigest() == \"8be1a4b634f199d0c4431eb00b3616112970a240\", \"type of beer_preprocessor is None is not bool. beer_preprocessor is None should be a bool\"\n", - "assert sha1(str(beer_preprocessor is None).encode(\"utf-8\")+b\"4dfed88add813cd8\").hexdigest() == \"c0d529ca31bc5ba5f0a5de7b764f36d212ea8c95\", \"boolean value of beer_preprocessor is None is not correct\"\n", + "assert sha1(str(type(beer_preprocessor is None)).encode(\"utf-8\")+b\"67b50986091a428a\").hexdigest() == \"596b9ae882f053320d5345ffaed27f3c2efa063b\", \"type of beer_preprocessor is None is not bool. beer_preprocessor is None should be a bool\"\n", + "assert sha1(str(beer_preprocessor is None).encode(\"utf-8\")+b\"67b50986091a428a\").hexdigest() == \"cccf725770736cffa62057429c41cf2516607101\", \"boolean value of beer_preprocessor is None is not correct\"\n", "\n", - "assert sha1(str(type(type(beer_preprocessor))).encode(\"utf-8\")+b\"4d596b0df8ddd0a5\").hexdigest() == \"562ec7a052ea3e7345a1aadad66dcae8427e1d4b\", \"type of type(beer_preprocessor) is not correct\"\n", - "assert sha1(str(type(beer_preprocessor)).encode(\"utf-8\")+b\"4d596b0df8ddd0a5\").hexdigest() == \"27e5d95a7d96553925c41eefd3ad6b6f802a60dd\", \"value of type(beer_preprocessor) is not correct\"\n", + "assert sha1(str(type(type(beer_preprocessor))).encode(\"utf-8\")+b\"888ae1bcfcd3d084\").hexdigest() == \"3a51c270dcfb28a93050e8b03e3e6b7f1024f6e0\", \"type of type(beer_preprocessor) is not correct\"\n", + "assert sha1(str(type(beer_preprocessor)).encode(\"utf-8\")+b\"888ae1bcfcd3d084\").hexdigest() == \"1cf718cc5805abd70db4e376cfaa915922847556\", \"value of type(beer_preprocessor) is not correct\"\n", "\n", - "assert sha1(str(type(beer_preprocessor.get_feature_names_out)).encode(\"utf-8\")+b\"abb9a63b17af75dd\").hexdigest() == \"5d439eebfc9013917c4b2d625bffa02ee8a96c2f\", \"type of beer_preprocessor.get_feature_names_out is not correct\"\n", - "assert sha1(str(beer_preprocessor.get_feature_names_out).encode(\"utf-8\")+b\"abb9a63b17af75dd\").hexdigest() == \"4fbbe85f6182c8825abeeddf59328d623a7340a3\", \"value of beer_preprocessor.get_feature_names_out is not correct\"\n", + "assert sha1(str(type(beer_preprocessor.get_feature_names_out)).encode(\"utf-8\")+b\"e4c072e4b70efc31\").hexdigest() == \"708c2d9204bf1307b1bcaa0223db629723b5b561\", \"type of beer_preprocessor.get_feature_names_out is not correct\"\n", + "assert sha1(str(beer_preprocessor.get_feature_names_out).encode(\"utf-8\")+b\"e4c072e4b70efc31\").hexdigest() == \"ba97f1e2a7aa1527ac06a1241c2f0d963a00f125\", \"value of beer_preprocessor.get_feature_names_out is not correct\"\n", "\n", "print('Success!')" ] @@ -789,7 +789,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0aa31ba79ff604e1e1d31b56a248816c", + "checksum": "11a31e09e5e95e74d66f13132d6b84a9", "grade": true, "grade_id": "cell-b9995d961e6abdd4", "locked": true, @@ -801,11 +801,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(type(beer_cluster_k2))).encode(\"utf-8\")+b\"58c5ff665ff58fcf\").hexdigest() == \"a3b7725a5df6c50408b3d43610b16098c6d816ee\", \"type of type(beer_cluster_k2) is not correct\"\n", - "assert sha1(str(type(beer_cluster_k2)).encode(\"utf-8\")+b\"58c5ff665ff58fcf\").hexdigest() == \"d40dfe3540f398cb7cb7b2fe4e562ef60d0dc234\", \"value of type(beer_cluster_k2) is not correct\"\n", + "assert sha1(str(type(type(beer_cluster_k2))).encode(\"utf-8\")+b\"7380a391f7f9cb02\").hexdigest() == \"c421e2dfd009f9d841f50d311e812740d2afc5f1\", \"type of type(beer_cluster_k2) is not correct\"\n", + "assert sha1(str(type(beer_cluster_k2)).encode(\"utf-8\")+b\"7380a391f7f9cb02\").hexdigest() == \"6236ac449ed5dbd185acb3198be66e7790a58e75\", \"value of type(beer_cluster_k2) is not correct\"\n", "\n", - "assert sha1(str(type(beer_cluster_k2.n_clusters)).encode(\"utf-8\")+b\"173e74534c2cb485\").hexdigest() == \"b922d07be947674d09628c6c4ff98aefd4fafd0e\", \"type of beer_cluster_k2.n_clusters is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(beer_cluster_k2.n_clusters).encode(\"utf-8\")+b\"173e74534c2cb485\").hexdigest() == \"106b6306e1905f633ecc474391bba1d2338e6cfe\", \"value of beer_cluster_k2.n_clusters is not correct\"\n", + "assert sha1(str(type(beer_cluster_k2.n_clusters)).encode(\"utf-8\")+b\"39dfc924db070288\").hexdigest() == \"8a35d423f86a79a7f8a36d26272dbb36ecf42175\", \"type of beer_cluster_k2.n_clusters is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(beer_cluster_k2.n_clusters).encode(\"utf-8\")+b\"39dfc924db070288\").hexdigest() == \"d7d6179225f34adad33c4e72e11ab2a4af6eee4a\", \"value of beer_cluster_k2.n_clusters is not correct\"\n", "\n", "print('Success!')" ] @@ -865,7 +865,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d3d077cf6b944c797bd030ee230b1ced", + "checksum": "4801d9e47a9efb5420fa3025e487515b", "grade": true, "grade_id": "cell-b591dcea6f451d18", "locked": true, @@ -878,14 +878,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer_pipe is None)).encode(\"utf-8\")+b\"45cadb8450aa7723\").hexdigest() == \"509259dab5310332347ad71bfd26f363798fd7c0\", \"type of beer_pipe is None is not bool. beer_pipe is None should be a bool\"\n", - "assert sha1(str(beer_pipe is None).encode(\"utf-8\")+b\"45cadb8450aa7723\").hexdigest() == \"6e76120e8e9ae29a653925f4e53a14492ca877d4\", \"boolean value of beer_pipe is None is not correct\"\n", + "assert sha1(str(type(beer_pipe is None)).encode(\"utf-8\")+b\"3b82488c04dfc8c1\").hexdigest() == \"93df9150b6c001fce75aa536ede84f2e41f4970d\", \"type of beer_pipe is None is not bool. beer_pipe is None should be a bool\"\n", + "assert sha1(str(beer_pipe is None).encode(\"utf-8\")+b\"3b82488c04dfc8c1\").hexdigest() == \"f9cc035b72432af1b2bcd19af2c11001d98cbcac\", \"boolean value of beer_pipe is None is not correct\"\n", "\n", - "assert sha1(str(type(type(beer_pipe))).encode(\"utf-8\")+b\"cb43ee60667844e7\").hexdigest() == \"8d983a8c7ebd047d987a16029dd8528f43ec75e1\", \"type of type(beer_pipe) is not correct\"\n", - "assert sha1(str(type(beer_pipe)).encode(\"utf-8\")+b\"cb43ee60667844e7\").hexdigest() == \"67049472b9cf2b3e39a061be98ed35e505516cd1\", \"value of type(beer_pipe) is not correct\"\n", + "assert sha1(str(type(type(beer_pipe))).encode(\"utf-8\")+b\"6ee24abb9f972512\").hexdigest() == \"490177b78d35c04da349a2fdbe63d57f15a53eae\", \"type of type(beer_pipe) is not correct\"\n", + "assert sha1(str(type(beer_pipe)).encode(\"utf-8\")+b\"6ee24abb9f972512\").hexdigest() == \"6ae4029fcc9318034f7a6145577121241699d49c\", \"value of type(beer_pipe) is not correct\"\n", "\n", - "assert sha1(str(type(beer_pipe.named_steps.kmeans.n_clusters)).encode(\"utf-8\")+b\"92e6e410a95563c0\").hexdigest() == \"53cf0d2aed7ea9ec868ae7cb3354ddac2bf8fd4e\", \"type of beer_pipe.named_steps.kmeans.n_clusters is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(beer_pipe.named_steps.kmeans.n_clusters).encode(\"utf-8\")+b\"92e6e410a95563c0\").hexdigest() == \"c119a00dc7c06173470daee81eb1c0474f301467\", \"value of beer_pipe.named_steps.kmeans.n_clusters is not correct\"\n", + "assert sha1(str(type(beer_pipe.named_steps.kmeans.n_clusters)).encode(\"utf-8\")+b\"512a92592b65048b\").hexdigest() == \"f79ba675eb5a60988cc37b58b1ee0f5944f2cf40\", \"type of beer_pipe.named_steps.kmeans.n_clusters is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(beer_pipe.named_steps.kmeans.n_clusters).encode(\"utf-8\")+b\"512a92592b65048b\").hexdigest() == \"d973b41733a77636950a5cac3d961dade692ebc6\", \"value of beer_pipe.named_steps.kmeans.n_clusters is not correct\"\n", "\n", "print('Success!')" ] @@ -947,7 +947,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3e28f9ee0ab3947492438b01c9dd28eb", + "checksum": "fb319526fe9102a5d919c7e340d63e42", "grade": true, "grade_id": "cell-46d87f5ee36a932c", "locked": true, @@ -959,20 +959,20 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(\"abv\" in clustered_beer.columns)).encode(\"utf-8\")+b\"aaef6aaeef49f8af\").hexdigest() == \"c517824dcd7596752e0c9d233ac9a69a88140dde\", \"type of \\\"abv\\\" in clustered_beer.columns is not bool. \\\"abv\\\" in clustered_beer.columns should be a bool\"\n", - "assert sha1(str(\"abv\" in clustered_beer.columns).encode(\"utf-8\")+b\"aaef6aaeef49f8af\").hexdigest() == \"900f3ff3759f5ff07e818057176c2c8e83aeea90\", \"boolean value of \\\"abv\\\" in clustered_beer.columns is not correct\"\n", + "assert sha1(str(type(\"abv\" in clustered_beer.columns)).encode(\"utf-8\")+b\"909a74265ac584b8\").hexdigest() == \"40f496d5c3fd191c1fb87c9f7150bc7a0940c689\", \"type of \\\"abv\\\" in clustered_beer.columns is not bool. \\\"abv\\\" in clustered_beer.columns should be a bool\"\n", + "assert sha1(str(\"abv\" in clustered_beer.columns).encode(\"utf-8\")+b\"909a74265ac584b8\").hexdigest() == \"3c6ba1b3e796e7a4c11bf8f1dfeb6ba9fa8a696a\", \"boolean value of \\\"abv\\\" in clustered_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"ibu\" in clustered_beer.columns)).encode(\"utf-8\")+b\"522178535ede6532\").hexdigest() == \"fb869f864491fd4f023a5e3b93d96116d827e727\", \"type of \\\"ibu\\\" in clustered_beer.columns is not bool. \\\"ibu\\\" in clustered_beer.columns should be a bool\"\n", - "assert sha1(str(\"ibu\" in clustered_beer.columns).encode(\"utf-8\")+b\"522178535ede6532\").hexdigest() == \"4591feef988ce381c7f9929a9d4150e986c8fbae\", \"boolean value of \\\"ibu\\\" in clustered_beer.columns is not correct\"\n", + "assert sha1(str(type(\"ibu\" in clustered_beer.columns)).encode(\"utf-8\")+b\"4813755519c31439\").hexdigest() == \"5f9918361d4f07fe9a74b0009d62b283af515655\", \"type of \\\"ibu\\\" in clustered_beer.columns is not bool. \\\"ibu\\\" in clustered_beer.columns should be a bool\"\n", + "assert sha1(str(\"ibu\" in clustered_beer.columns).encode(\"utf-8\")+b\"4813755519c31439\").hexdigest() == \"26e4dc174c96079f7411a8cf884270188341daea\", \"boolean value of \\\"ibu\\\" in clustered_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"cluster\" in clustered_beer.columns)).encode(\"utf-8\")+b\"b3a0e862ae816948\").hexdigest() == \"c609806123f071a66c49968baa1b403c1f5c08c4\", \"type of \\\"cluster\\\" in clustered_beer.columns is not bool. \\\"cluster\\\" in clustered_beer.columns should be a bool\"\n", - "assert sha1(str(\"cluster\" in clustered_beer.columns).encode(\"utf-8\")+b\"b3a0e862ae816948\").hexdigest() == \"4de02870b71d669c1cd79d3a54cfdcc544b7ea95\", \"boolean value of \\\"cluster\\\" in clustered_beer.columns is not correct\"\n", + "assert sha1(str(type(\"cluster\" in clustered_beer.columns)).encode(\"utf-8\")+b\"09404ece9d87ddd7\").hexdigest() == \"ddfb14052219aa4387b4de9e77c46781e668c5bc\", \"type of \\\"cluster\\\" in clustered_beer.columns is not bool. \\\"cluster\\\" in clustered_beer.columns should be a bool\"\n", + "assert sha1(str(\"cluster\" in clustered_beer.columns).encode(\"utf-8\")+b\"09404ece9d87ddd7\").hexdigest() == \"0e6205109e62f74317c8919153a8f6f83a89a31d\", \"boolean value of \\\"cluster\\\" in clustered_beer.columns is not correct\"\n", "\n", - "assert sha1(str(type(clustered_beer.shape[0])).encode(\"utf-8\")+b\"01776c4ed1d9ff3d\").hexdigest() == \"744cd9bb55620f4aee86d8ef70f7b10ac958f140\", \"type of clustered_beer.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(clustered_beer.shape[0]).encode(\"utf-8\")+b\"01776c4ed1d9ff3d\").hexdigest() == \"39cbff105a9f68f05d1300a85a2b0115e6575c1c\", \"value of clustered_beer.shape[0] is not correct\"\n", + "assert sha1(str(type(clustered_beer.shape[0])).encode(\"utf-8\")+b\"c9691cb9ee0c65db\").hexdigest() == \"481a2a4b4e6899c9997faf2121f96b4b5b1b7cba\", \"type of clustered_beer.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(clustered_beer.shape[0]).encode(\"utf-8\")+b\"c9691cb9ee0c65db\").hexdigest() == \"dbb54379940da8dc3747e52a09790f518c6ada0f\", \"value of clustered_beer.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(clustered_beer.shape[1])).encode(\"utf-8\")+b\"53a1f5a00e28fe10\").hexdigest() == \"7e929ae14a1626de504da0b19b4aab3da77cfd9e\", \"type of clustered_beer.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(clustered_beer.shape[1]).encode(\"utf-8\")+b\"53a1f5a00e28fe10\").hexdigest() == \"74d5d07ca3e00471bb885ed459aaacb51add9f77\", \"value of clustered_beer.shape[1] is not correct\"\n", + "assert sha1(str(type(clustered_beer.shape[1])).encode(\"utf-8\")+b\"dc023dde26eb1b26\").hexdigest() == \"f6557943f5bc3f4216277e03f3c57fc3dde6bdce\", \"type of clustered_beer.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(clustered_beer.shape[1]).encode(\"utf-8\")+b\"dc023dde26eb1b26\").hexdigest() == \"2996fef32d29094f46d0a97ee6785b3605082117\", \"value of clustered_beer.shape[1] is not correct\"\n", "\n", "print('Success!')" ] @@ -1032,7 +1032,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "95ac5b503e7646d5124bcc0a8915e32b", + "checksum": "c166854f5d84ab8bb6f83297a949dfd0", "grade": true, "grade_id": "cell-f8a27de5ec7f09e6", "locked": true, @@ -1044,38 +1044,38 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(clustered_beer_chart is None)).encode(\"utf-8\")+b\"06d83f3a5c842424\").hexdigest() == \"f7a7afa5ad3a071b254d186a6016fa9277068fb6\", \"type of clustered_beer_chart is None is not bool. clustered_beer_chart is None should be a bool\"\n", - "assert sha1(str(clustered_beer_chart is None).encode(\"utf-8\")+b\"06d83f3a5c842424\").hexdigest() == \"86e03b0238361c4ded5438b8906119e984d09015\", \"boolean value of clustered_beer_chart is None is not correct\"\n", + "assert sha1(str(type(clustered_beer_chart is None)).encode(\"utf-8\")+b\"24891128b83d038e\").hexdigest() == \"e046575fe2ab816c7da500f7bfc73732932ee024\", \"type of clustered_beer_chart is None is not bool. clustered_beer_chart is None should be a bool\"\n", + "assert sha1(str(clustered_beer_chart is None).encode(\"utf-8\")+b\"24891128b83d038e\").hexdigest() == \"c8cde9640020652bed7a6721230d86621839323b\", \"boolean value of clustered_beer_chart is None is not correct\"\n", "\n", - "assert sha1(str(type(clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'])).encode(\"utf-8\")+b\"60090b29a3f6f2bd\").hexdigest() == \"89683360e5b3be0a8ce170e98068c8735d92a435\", \"type of clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'] is not bool. clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'] should be a bool\"\n", - "assert sha1(str(clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point']).encode(\"utf-8\")+b\"60090b29a3f6f2bd\").hexdigest() == \"7d91e32d81025620e17cfd74b9a7c8dd8ed27a43\", \"boolean value of clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'] is not correct\"\n", + "assert sha1(str(type(clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'])).encode(\"utf-8\")+b\"73d6670f1fa001ea\").hexdigest() == \"490a76d75bf1daf6a00eb16cfac4345c950700d6\", \"type of clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'] is not bool. clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'] should be a bool\"\n", + "assert sha1(str(clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point']).encode(\"utf-8\")+b\"73d6670f1fa001ea\").hexdigest() == \"4f182e4dfdace100df5e68e0d3ea74dd70bb47c3\", \"boolean value of clustered_beer_chart.to_dict()['mark']['type'] in ['circle', 'point'] is not correct\"\n", "\n", - "assert sha1(str(type(clustered_beer_chart.data.equals(clustered_beer_chart))).encode(\"utf-8\")+b\"155b1a19f2d8a91b\").hexdigest() == \"4cbc2874b5972a54f6783255f8e72ee7c2cd373c\", \"type of clustered_beer_chart.data.equals(clustered_beer_chart) is not bool. clustered_beer_chart.data.equals(clustered_beer_chart) should be a bool\"\n", - "assert sha1(str(clustered_beer_chart.data.equals(clustered_beer_chart)).encode(\"utf-8\")+b\"155b1a19f2d8a91b\").hexdigest() == \"d3f951cfe0846dce524dae3a4beb5f286487132e\", \"boolean value of clustered_beer_chart.data.equals(clustered_beer_chart) is not correct\"\n", + "assert sha1(str(type(clustered_beer_chart.data.equals(clustered_beer_chart))).encode(\"utf-8\")+b\"d7db536e34a00f36\").hexdigest() == \"1cfeb3369292690b3bbb11af5f7b46de2721ad5c\", \"type of clustered_beer_chart.data.equals(clustered_beer_chart) is not bool. clustered_beer_chart.data.equals(clustered_beer_chart) should be a bool\"\n", + "assert sha1(str(clustered_beer_chart.data.equals(clustered_beer_chart)).encode(\"utf-8\")+b\"d7db536e34a00f36\").hexdigest() == \"8160a2c0099f8ee92fb58b0417255b263f2d05b9\", \"boolean value of clustered_beer_chart.data.equals(clustered_beer_chart) is not correct\"\n", "\n", - "assert sha1(str(type(clustered_beer_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f5f342265fd6a188\").hexdigest() == \"1a220954c4281f09bdd724241a9d7cddc863ff74\", \"type of clustered_beer_chart.encoding.x['shorthand'] is not str. clustered_beer_chart.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(clustered_beer_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f5f342265fd6a188\").hexdigest() == \"35f806bedefd612e09f9e455bf1b4ad00f963df9\", \"length of clustered_beer_chart.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(clustered_beer_chart.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"f5f342265fd6a188\").hexdigest() == \"1bb2da6359b3e54063726927d9cec19fb491db90\", \"value of clustered_beer_chart.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(clustered_beer_chart.encoding.x['shorthand']).encode(\"utf-8\")+b\"f5f342265fd6a188\").hexdigest() == \"1bb2da6359b3e54063726927d9cec19fb491db90\", \"correct string value of clustered_beer_chart.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(clustered_beer_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a3612270743fdb2f\").hexdigest() == \"95bd95600e418bc31e8dd706c3484d6c496b7727\", \"type of clustered_beer_chart.encoding.x['shorthand'] is not str. clustered_beer_chart.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(clustered_beer_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a3612270743fdb2f\").hexdigest() == \"93029971be9391bfb809d649abe3202954c8f318\", \"length of clustered_beer_chart.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(clustered_beer_chart.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"a3612270743fdb2f\").hexdigest() == \"d6c1686bc8e6dfbb3c307b9f5e5ce2935c92b891\", \"value of clustered_beer_chart.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(clustered_beer_chart.encoding.x['shorthand']).encode(\"utf-8\")+b\"a3612270743fdb2f\").hexdigest() == \"d6c1686bc8e6dfbb3c307b9f5e5ce2935c92b891\", \"correct string value of clustered_beer_chart.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(clustered_beer_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"0f7c50e7bfb7164b\").hexdigest() == \"06dce14162526409f1a2d6ae6f6a4f186d1f2676\", \"type of clustered_beer_chart.encoding.y['shorthand'] is not str. clustered_beer_chart.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(clustered_beer_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"0f7c50e7bfb7164b\").hexdigest() == \"ff4e8c4a8760d3b8d725f66a3697bb9b6ad994e4\", \"length of clustered_beer_chart.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(clustered_beer_chart.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"0f7c50e7bfb7164b\").hexdigest() == \"d578e19ce151fbccb01f0fb9a11504423c3580e7\", \"value of clustered_beer_chart.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(clustered_beer_chart.encoding.y['shorthand']).encode(\"utf-8\")+b\"0f7c50e7bfb7164b\").hexdigest() == \"d578e19ce151fbccb01f0fb9a11504423c3580e7\", \"correct string value of clustered_beer_chart.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(clustered_beer_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"7541ba2c9ba682b2\").hexdigest() == \"33651035fe2e4bd9e9d3bbd7bcd64dab2099dbd3\", \"type of clustered_beer_chart.encoding.y['shorthand'] is not str. clustered_beer_chart.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(clustered_beer_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"7541ba2c9ba682b2\").hexdigest() == \"205b0a5feddf2348a15ceb779a4f4b5cb5e80bb4\", \"length of clustered_beer_chart.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(clustered_beer_chart.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"7541ba2c9ba682b2\").hexdigest() == \"4eef8a52359977de6ec2da1b61015b9b12783b26\", \"value of clustered_beer_chart.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(clustered_beer_chart.encoding.y['shorthand']).encode(\"utf-8\")+b\"7541ba2c9ba682b2\").hexdigest() == \"4eef8a52359977de6ec2da1b61015b9b12783b26\", \"correct string value of clustered_beer_chart.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(clustered_beer_chart.encoding.color['shorthand'])).encode(\"utf-8\")+b\"f9a33f99e8e0af06\").hexdigest() == \"57d08d23d6bbf647a698588120d29707a4a4ddf6\", \"type of clustered_beer_chart.encoding.color['shorthand'] is not str. clustered_beer_chart.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(clustered_beer_chart.encoding.color['shorthand'])).encode(\"utf-8\")+b\"f9a33f99e8e0af06\").hexdigest() == \"3933a2ef53664ae0ac80871396da612b7ae08ed0\", \"length of clustered_beer_chart.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(clustered_beer_chart.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"f9a33f99e8e0af06\").hexdigest() == \"ebbaf1fcbd0c9ea4cfd1aef304b0e97239c82eae\", \"value of clustered_beer_chart.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(clustered_beer_chart.encoding.color['shorthand']).encode(\"utf-8\")+b\"f9a33f99e8e0af06\").hexdigest() == \"6dbdff11407303ccdb905fc07bbc6ace8f1a0867\", \"correct string value of clustered_beer_chart.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(clustered_beer_chart.encoding.color['shorthand'])).encode(\"utf-8\")+b\"d8a12b59fed483ff\").hexdigest() == \"12f33ab54b6de1772d5c13cc67ee88ca1eba400c\", \"type of clustered_beer_chart.encoding.color['shorthand'] is not str. clustered_beer_chart.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(clustered_beer_chart.encoding.color['shorthand'])).encode(\"utf-8\")+b\"d8a12b59fed483ff\").hexdigest() == \"405a1c25a8629ded99ea0dd2efa2ec214f0c3ee6\", \"length of clustered_beer_chart.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(clustered_beer_chart.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"d8a12b59fed483ff\").hexdigest() == \"92b8775f3a2497e71d046d18cce26209b72637ae\", \"value of clustered_beer_chart.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(clustered_beer_chart.encoding.color['shorthand']).encode(\"utf-8\")+b\"d8a12b59fed483ff\").hexdigest() == \"e28816355df21076791b5dd702bd0fd3ed5b619c\", \"correct string value of clustered_beer_chart.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(clustered_beer_chart.encoding.x['title'], str))).encode(\"utf-8\")+b\"388b45056519bd72\").hexdigest() == \"1b9c55d00069543929dc70257548673f2fea281e\", \"type of isinstance(clustered_beer_chart.encoding.x['title'], str) is not bool. isinstance(clustered_beer_chart.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(clustered_beer_chart.encoding.x['title'], str)).encode(\"utf-8\")+b\"388b45056519bd72\").hexdigest() == \"f63601819c7f60f308008806df01de326f795045\", \"boolean value of isinstance(clustered_beer_chart.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(clustered_beer_chart.encoding.x['title'], str))).encode(\"utf-8\")+b\"5791f756e114cc9b\").hexdigest() == \"23b8c45d0496bed504f4f893c570a2a546f8fda2\", \"type of isinstance(clustered_beer_chart.encoding.x['title'], str) is not bool. isinstance(clustered_beer_chart.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(clustered_beer_chart.encoding.x['title'], str)).encode(\"utf-8\")+b\"5791f756e114cc9b\").hexdigest() == \"1442013ef1f286e28367ca33a2a4621a71320dca\", \"boolean value of isinstance(clustered_beer_chart.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(clustered_beer_chart.encoding.y['title'], str))).encode(\"utf-8\")+b\"262e3f1b055b65c9\").hexdigest() == \"1c2bec57a300b90077ea747360b70997039209b1\", \"type of isinstance(clustered_beer_chart.encoding.y['title'], str) is not bool. isinstance(clustered_beer_chart.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(clustered_beer_chart.encoding.y['title'], str)).encode(\"utf-8\")+b\"262e3f1b055b65c9\").hexdigest() == \"9699ce969ea0f86bf60678c6c64fa2a728daf384\", \"boolean value of isinstance(clustered_beer_chart.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(clustered_beer_chart.encoding.y['title'], str))).encode(\"utf-8\")+b\"5089e7c003460664\").hexdigest() == \"0604a946817d989ff70ab3ef5748836b4bcdbac7\", \"type of isinstance(clustered_beer_chart.encoding.y['title'], str) is not bool. isinstance(clustered_beer_chart.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(clustered_beer_chart.encoding.y['title'], str)).encode(\"utf-8\")+b\"5089e7c003460664\").hexdigest() == \"8afc4ccbdf04b78548faedafdb3a7f0c57de6caa\", \"boolean value of isinstance(clustered_beer_chart.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(clustered_beer_chart.encoding.color['title'], str))).encode(\"utf-8\")+b\"07a2ca55e3026063\").hexdigest() == \"c1316161121d44b5358e1839d2aa3c6d667a2437\", \"type of isinstance(clustered_beer_chart.encoding.color['title'], str) is not bool. isinstance(clustered_beer_chart.encoding.color['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(clustered_beer_chart.encoding.color['title'], str)).encode(\"utf-8\")+b\"07a2ca55e3026063\").hexdigest() == \"52e6674d5f9772e065e4590ae38d8a525a784b37\", \"boolean value of isinstance(clustered_beer_chart.encoding.color['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(clustered_beer_chart.encoding.color['title'], str))).encode(\"utf-8\")+b\"285f3bc97e6beafc\").hexdigest() == \"5e595a61941b9adb06052888d0272603ddd3659f\", \"type of isinstance(clustered_beer_chart.encoding.color['title'], str) is not bool. isinstance(clustered_beer_chart.encoding.color['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(clustered_beer_chart.encoding.color['title'], str)).encode(\"utf-8\")+b\"285f3bc97e6beafc\").hexdigest() == \"bd41fc795bd29db61e27e6fd79b8dc4ecd85c450\", \"boolean value of isinstance(clustered_beer_chart.encoding.color['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1142,7 +1142,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "30ec0cf7bf437d0f9d447c1de175b0bf", + "checksum": "646f2e3624d56d190174eaea49650cfd", "grade": true, "grade_id": "cell-693552f36c9a4230", "locked": true, @@ -1154,10 +1154,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_9_1)).encode(\"utf-8\")+b\"697d3926a83e5104\").hexdigest() == \"ecf156f012a16310010caa66282d4957a0357a3f\", \"type of answer1_9_1 is not str. answer1_9_1 should be an str\"\n", - "assert sha1(str(len(answer1_9_1)).encode(\"utf-8\")+b\"697d3926a83e5104\").hexdigest() == \"98f125d5911e0fad2442282287b6016a27207f79\", \"length of answer1_9_1 is not correct\"\n", - "assert sha1(str(answer1_9_1.lower()).encode(\"utf-8\")+b\"697d3926a83e5104\").hexdigest() == \"f45d4c52544b2d67be10b685d9dd64b53ca8fa61\", \"value of answer1_9_1 is not correct\"\n", - "assert sha1(str(answer1_9_1).encode(\"utf-8\")+b\"697d3926a83e5104\").hexdigest() == \"e8beb78dc890b1a931aad2e66d00eeede2e412a8\", \"correct string value of answer1_9_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_9_1)).encode(\"utf-8\")+b\"01828366e7f1251d\").hexdigest() == \"9d3b997a8e03f25bcb5ee6c880f63eba518f28bb\", \"type of answer1_9_1 is not str. answer1_9_1 should be an str\"\n", + "assert sha1(str(len(answer1_9_1)).encode(\"utf-8\")+b\"01828366e7f1251d\").hexdigest() == \"951e702cc3854fc4dcfe0f1e9258a37ddc1659fd\", \"length of answer1_9_1 is not correct\"\n", + "assert sha1(str(answer1_9_1.lower()).encode(\"utf-8\")+b\"01828366e7f1251d\").hexdigest() == \"f7f0f091b6b0565ba2711aaeaa57c17ac458cd46\", \"value of answer1_9_1 is not correct\"\n", + "assert sha1(str(answer1_9_1).encode(\"utf-8\")+b\"01828366e7f1251d\").hexdigest() == \"5b6b30121c6499aaefcfd18ff590d2845b722bab\", \"correct string value of answer1_9_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1217,7 +1217,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "26cf5cb9adf139343ebf477e4f221751", + "checksum": "78ea636e1aae34c8f3064abca40d4ef3", "grade": true, "grade_id": "cell-31427d5e0afe53be", "locked": true, @@ -1229,13 +1229,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer_cluster_k2_wssd is None)).encode(\"utf-8\")+b\"ecf861d3e08c3e50\").hexdigest() == \"947ac8d2867f367fe08ad85f5540e8d6482377fb\", \"type of beer_cluster_k2_wssd is None is not bool. beer_cluster_k2_wssd is None should be a bool\"\n", - "assert sha1(str(beer_cluster_k2_wssd is None).encode(\"utf-8\")+b\"ecf861d3e08c3e50\").hexdigest() == \"66f2a1f3b3fc3a1843a544753a90219088a43a27\", \"boolean value of beer_cluster_k2_wssd is None is not correct\"\n", + "assert sha1(str(type(beer_cluster_k2_wssd is None)).encode(\"utf-8\")+b\"c835e2e0f2b14c3a\").hexdigest() == \"b514e0414ed30f64360de48b4d0a05de3e7ecda5\", \"type of beer_cluster_k2_wssd is None is not bool. beer_cluster_k2_wssd is None should be a bool\"\n", + "assert sha1(str(beer_cluster_k2_wssd is None).encode(\"utf-8\")+b\"c835e2e0f2b14c3a\").hexdigest() == \"6dce7c4cb47b05c94a0310ab90350ccf47875853\", \"boolean value of beer_cluster_k2_wssd is None is not correct\"\n", "\n", - "assert sha1(str(type(beer_cluster_k2_wssd)).encode(\"utf-8\")+b\"2dd25fb58665fca5\").hexdigest() == \"32e6228781cb45951a21fda8dbae88f574d91f2d\", \"type of type(beer_cluster_k2_wssd) is not correct\"\n", + "assert sha1(str(type(beer_cluster_k2_wssd)).encode(\"utf-8\")+b\"5cc6d5bef7c6173b\").hexdigest() == \"6dcbee6a34bc35fbcf978c800928e74b116c9485\", \"type of type(beer_cluster_k2_wssd) is not correct\"\n", "\n", - "assert sha1(str(type(round(beer_cluster_k2_wssd, 2))).encode(\"utf-8\")+b\"542988c443b6b8cd\").hexdigest() == \"9186637b20f5f322c5978198f8944f4375e14341\", \"type of round(beer_cluster_k2_wssd, 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(beer_cluster_k2_wssd, 2), 2)).encode(\"utf-8\")+b\"542988c443b6b8cd\").hexdigest() == \"4dcbe0ad1de45b6a68a3f27efeb4eeb4a87512e9\", \"value of round(beer_cluster_k2_wssd, 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(beer_cluster_k2_wssd, 2))).encode(\"utf-8\")+b\"8c0a616d3069279f\").hexdigest() == \"4862e066731d31e5603a35b095d39a6be1090b74\", \"type of round(beer_cluster_k2_wssd, 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(beer_cluster_k2_wssd, 2), 2)).encode(\"utf-8\")+b\"8c0a616d3069279f\").hexdigest() == \"b266ae9f8e7fe7f6daecd6a15514f0367d2cb5d6\", \"value of round(beer_cluster_k2_wssd, 2) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1295,7 +1295,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f0cfc1d278167e2a50c5afa298208fbb", + "checksum": "5e1aad57d91f7e956d70ac9295fdae70", "grade": true, "grade_id": "cell-58c958b24994d60d", "locked": true, @@ -1307,13 +1307,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer_ks)).encode(\"utf-8\")+b\"a5823a68ba1530ec\").hexdigest() == \"5dfaf11c5adb17316e102e87909b2c4ae9e600a3\", \"type of type(beer_ks) is not correct\"\n", + "assert sha1(str(type(beer_ks)).encode(\"utf-8\")+b\"e8286285d0b1da7c\").hexdigest() == \"966c41d51be9c9d29402a80976488f66e21fe123\", \"type of type(beer_ks) is not correct\"\n", "\n", - "assert sha1(str(type(beer_ks.start)).encode(\"utf-8\")+b\"542d0fcd2dec327a\").hexdigest() == \"4f9d44517d96cc1c43b4cdafa5b38c5a01fa7fc0\", \"type of beer_ks.start is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(beer_ks.start).encode(\"utf-8\")+b\"542d0fcd2dec327a\").hexdigest() == \"c79b54872003abb0de702da4e3a12eeb2855f7bc\", \"value of beer_ks.start is not correct\"\n", + "assert sha1(str(type(beer_ks.start)).encode(\"utf-8\")+b\"ce28b3c4a8dc17a8\").hexdigest() == \"2e342f65816ada9b5e7ef421dbbe5a7a5d2aed72\", \"type of beer_ks.start is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(beer_ks.start).encode(\"utf-8\")+b\"ce28b3c4a8dc17a8\").hexdigest() == \"1dbaa137ee9615274c78fde22f1f65245ce5eab8\", \"value of beer_ks.start is not correct\"\n", "\n", - "assert sha1(str(type(beer_ks.stop)).encode(\"utf-8\")+b\"8bd114584cc95abd\").hexdigest() == \"10f5915b6a382993d8216ac3d58112b2ad6c2b59\", \"type of beer_ks.stop is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(beer_ks.stop).encode(\"utf-8\")+b\"8bd114584cc95abd\").hexdigest() == \"47208d27f219d505d8b580053ccf6300a79caca8\", \"value of beer_ks.stop is not correct\"\n", + "assert sha1(str(type(beer_ks.stop)).encode(\"utf-8\")+b\"9319825dc7ac0b02\").hexdigest() == \"856c4843d8f322d68a7a1af10667817746ad5925\", \"type of beer_ks.stop is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(beer_ks.stop).encode(\"utf-8\")+b\"9319825dc7ac0b02\").hexdigest() == \"61dbc5ad4e486814b6987febba9d661eaf85da20\", \"value of beer_ks.stop is not correct\"\n", "\n", "print('Success!')" ] @@ -1384,7 +1384,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "676ec0dacd47e7d5968da891b7265578", + "checksum": "9ca26e2bfd157ea84a9328945de295d4", "grade": true, "grade_id": "cell-ed0f2e1a31372296", "locked": true, @@ -1396,11 +1396,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(len(beer_wssds))).encode(\"utf-8\")+b\"c64fa146de130cd3\").hexdigest() == \"b683874c5603cbf573a03bd20759af408debebce\", \"type of len(beer_wssds) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(beer_wssds)).encode(\"utf-8\")+b\"c64fa146de130cd3\").hexdigest() == \"628e4e869eadf113189f8a3b289142bcad45b7da\", \"value of len(beer_wssds) is not correct\"\n", + "assert sha1(str(type(len(beer_wssds))).encode(\"utf-8\")+b\"8f7b490861283aaa\").hexdigest() == \"fb9d6cbc4808a8f82d01a5efe48a9f55af3ca75f\", \"type of len(beer_wssds) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(beer_wssds)).encode(\"utf-8\")+b\"8f7b490861283aaa\").hexdigest() == \"e1780e3982c0ae77f6d493217c02b0af3a1a5920\", \"value of len(beer_wssds) is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(beer_wssds), 2))).encode(\"utf-8\")+b\"b843adffe6deb299\").hexdigest() == \"973a8a55013ac92f366e6a9adf5a2c299868cdf4\", \"type of round(sum(beer_wssds), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(beer_wssds), 2), 2)).encode(\"utf-8\")+b\"b843adffe6deb299\").hexdigest() == \"f3ffb8dc9df5986998a4c8f3f9303a8dab4ebe3b\", \"value of round(sum(beer_wssds), 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(beer_wssds), 2))).encode(\"utf-8\")+b\"fabd8116f24666a6\").hexdigest() == \"2f44cea7d7973fab3f071978f985105f9c18d1fc\", \"type of round(sum(beer_wssds), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(beer_wssds), 2), 2)).encode(\"utf-8\")+b\"fabd8116f24666a6\").hexdigest() == \"d18e7a0ecf0ca427b843d32e51aa5b7220038cf2\", \"value of round(sum(beer_wssds), 2) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1460,7 +1460,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "29ad613ab5167ab326893b792fbbf420", + "checksum": "ccaab27ae73ef5ed61de7207611fb015", "grade": true, "grade_id": "cell-a3574637a73eada8", "locked": true, @@ -1472,20 +1472,20 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(beer_model_stats.shape)).encode(\"utf-8\")+b\"c3db79f44a07daa7\").hexdigest() == \"8742414f8e0c3c536bf620d25a06868270177f43\", \"type of beer_model_stats.shape is not tuple. beer_model_stats.shape should be a tuple\"\n", - "assert sha1(str(len(beer_model_stats.shape)).encode(\"utf-8\")+b\"c3db79f44a07daa7\").hexdigest() == \"578f9dc78cdd4cb58967b6b0e915acd719dbb19c\", \"length of beer_model_stats.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, beer_model_stats.shape))).encode(\"utf-8\")+b\"c3db79f44a07daa7\").hexdigest() == \"a84b9d7baea6b76322723bb123bc9900a8b2d11a\", \"values of beer_model_stats.shape are not correct\"\n", - "assert sha1(str(beer_model_stats.shape).encode(\"utf-8\")+b\"c3db79f44a07daa7\").hexdigest() == \"96b61213faa03e00f9e29fe0a18ae7155af5164b\", \"order of elements of beer_model_stats.shape is not correct\"\n", + "assert sha1(str(type(beer_model_stats.shape)).encode(\"utf-8\")+b\"75b6aaf11dbb3b9d\").hexdigest() == \"7b4838d47d9016275f330d9889e48ec986c1216c\", \"type of beer_model_stats.shape is not tuple. beer_model_stats.shape should be a tuple\"\n", + "assert sha1(str(len(beer_model_stats.shape)).encode(\"utf-8\")+b\"75b6aaf11dbb3b9d\").hexdigest() == \"ad469e46be3e928c24efd15f6c1b45a865f2b8cc\", \"length of beer_model_stats.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, beer_model_stats.shape))).encode(\"utf-8\")+b\"75b6aaf11dbb3b9d\").hexdigest() == \"8e945949270a3faffcaa2c06be41fe8a19c0a9df\", \"values of beer_model_stats.shape are not correct\"\n", + "assert sha1(str(beer_model_stats.shape).encode(\"utf-8\")+b\"75b6aaf11dbb3b9d\").hexdigest() == \"9193f774ef838e33549c17e4c1ae94bc4d43cfb2\", \"order of elements of beer_model_stats.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"k\" in beer_model_stats.columns.values)).encode(\"utf-8\")+b\"3170219e598f17b5\").hexdigest() == \"4dcd3cfff17f2c6730a1d4f114fc6eabac7ce39f\", \"type of \\\"k\\\" in beer_model_stats.columns.values is not bool. \\\"k\\\" in beer_model_stats.columns.values should be a bool\"\n", - "assert sha1(str(\"k\" in beer_model_stats.columns.values).encode(\"utf-8\")+b\"3170219e598f17b5\").hexdigest() == \"d006cb152ab28b98d9f37830a2264ae00d9b8982\", \"boolean value of \\\"k\\\" in beer_model_stats.columns.values is not correct\"\n", + "assert sha1(str(type(\"k\" in beer_model_stats.columns.values)).encode(\"utf-8\")+b\"457bec0e5e6185d3\").hexdigest() == \"8e16b1d00a5d8c6ab19a6eee007e7a4adb582923\", \"type of \\\"k\\\" in beer_model_stats.columns.values is not bool. \\\"k\\\" in beer_model_stats.columns.values should be a bool\"\n", + "assert sha1(str(\"k\" in beer_model_stats.columns.values).encode(\"utf-8\")+b\"457bec0e5e6185d3\").hexdigest() == \"5cb80111644f657258108836e0c73a7dee6ca3fe\", \"boolean value of \\\"k\\\" in beer_model_stats.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(\"wssd\" in beer_model_stats.columns)).encode(\"utf-8\")+b\"eb34a326174fe368\").hexdigest() == \"c3acb10c58bbc33583b0385946360aef3b6ab230\", \"type of \\\"wssd\\\" in beer_model_stats.columns is not bool. \\\"wssd\\\" in beer_model_stats.columns should be a bool\"\n", - "assert sha1(str(\"wssd\" in beer_model_stats.columns).encode(\"utf-8\")+b\"eb34a326174fe368\").hexdigest() == \"eabf37e4ff21d0a54d13743d202a4fedc188d066\", \"boolean value of \\\"wssd\\\" in beer_model_stats.columns is not correct\"\n", + "assert sha1(str(type(\"wssd\" in beer_model_stats.columns)).encode(\"utf-8\")+b\"634706d643ce45c4\").hexdigest() == \"8a37c2ce99d4d5eca0bda7f55c49a5b68ed9f71a\", \"type of \\\"wssd\\\" in beer_model_stats.columns is not bool. \\\"wssd\\\" in beer_model_stats.columns should be a bool\"\n", + "assert sha1(str(\"wssd\" in beer_model_stats.columns).encode(\"utf-8\")+b\"634706d643ce45c4\").hexdigest() == \"61cbb8d7dff2844b47c8edee5799de6e45106518\", \"boolean value of \\\"wssd\\\" in beer_model_stats.columns is not correct\"\n", "\n", - "assert sha1(str(type(beer_model_stats['k'][0])).encode(\"utf-8\")+b\"70c468b564c6c9e5\").hexdigest() == \"7016c656828ebc028c269da837d51cbea1045fda\", \"type of type(beer_model_stats['k'][0]) is not correct\"\n", + "assert sha1(str(type(beer_model_stats['k'][0])).encode(\"utf-8\")+b\"ac371f488661f3b1\").hexdigest() == \"bad26c167a5f066b8aa56ef1ca28a63ceddbad0b\", \"type of type(beer_model_stats['k'][0]) is not correct\"\n", "\n", - "assert sha1(str(type(beer_model_stats['wssd'][0])).encode(\"utf-8\")+b\"57e8db2418145c5f\").hexdigest() == \"43a2bc43320f9a1d62a002650a575ab6dd24951f\", \"type of type(beer_model_stats['wssd'][0]) is not correct\"\n", + "assert sha1(str(type(beer_model_stats['wssd'][0])).encode(\"utf-8\")+b\"8c7f2fb80886185b\").hexdigest() == \"14c4327a720d51783f20a7ee40f1cddcb3ba1a54\", \"type of type(beer_model_stats['wssd'][0]) is not correct\"\n", "\n", "print('Success!')" ] @@ -1545,7 +1545,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d8eef10cc757a5e40ea403627d02ad3d", + "checksum": "a2325c7b8693478f9aa46996096b1401", "grade": true, "grade_id": "cell-3e758ca8ceea0217", "locked": true, @@ -1557,27 +1557,27 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(elbow_plot is None)).encode(\"utf-8\")+b\"496e28b810a8a328\").hexdigest() == \"124a994f03de88d3237d59bbef78bd985d9bd767\", \"type of elbow_plot is None is not bool. elbow_plot is None should be a bool\"\n", - "assert sha1(str(elbow_plot is None).encode(\"utf-8\")+b\"496e28b810a8a328\").hexdigest() == \"ccf1676d5df61beea3cc35c56830dcfb38f58101\", \"boolean value of elbow_plot is None is not correct\"\n", + "assert sha1(str(type(elbow_plot is None)).encode(\"utf-8\")+b\"47f42b435d1d39eb\").hexdigest() == \"f103d337ba9b9c7bce6bb1ad04612c5352dc8ff0\", \"type of elbow_plot is None is not bool. elbow_plot is None should be a bool\"\n", + "assert sha1(str(elbow_plot is None).encode(\"utf-8\")+b\"47f42b435d1d39eb\").hexdigest() == \"5059e6aaa0f5e5f385881f7f9dda869e11efb459\", \"boolean value of elbow_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(elbow_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"73d2d0503ad90cce\").hexdigest() == \"ae027c28df98cfd8f4ab937940d328a355d4dc5e\", \"type of elbow_plot.encoding.x['shorthand'] is not str. elbow_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(elbow_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"73d2d0503ad90cce\").hexdigest() == \"2302b38c97bdb10882895a9c78c1904808667b2d\", \"length of elbow_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(elbow_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"73d2d0503ad90cce\").hexdigest() == \"fc0560533c56ed73020767962067d2afc712c546\", \"value of elbow_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(elbow_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"73d2d0503ad90cce\").hexdigest() == \"fc0560533c56ed73020767962067d2afc712c546\", \"correct string value of elbow_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(elbow_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"05d57a336332b75c\").hexdigest() == \"82a36be728739c9da6cb6f6ba5e7a9bbb3da1df0\", \"type of elbow_plot.encoding.x['shorthand'] is not str. elbow_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(elbow_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"05d57a336332b75c\").hexdigest() == \"cd98c4ac5d868c86394165ef2a94f290a0a090fd\", \"length of elbow_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(elbow_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"05d57a336332b75c\").hexdigest() == \"d4e9214ab86c107a4561969512af76ea9654c38e\", \"value of elbow_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(elbow_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"05d57a336332b75c\").hexdigest() == \"d4e9214ab86c107a4561969512af76ea9654c38e\", \"correct string value of elbow_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(elbow_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"02ff938dd19f1583\").hexdigest() == \"458f10e4c70d22a126cc427ae71889d0a6599975\", \"type of elbow_plot.encoding.y['shorthand'] is not str. elbow_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(elbow_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"02ff938dd19f1583\").hexdigest() == \"1dd91b100c1ffd7b25add27e9e4afebaaa358b6f\", \"length of elbow_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(elbow_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"02ff938dd19f1583\").hexdigest() == \"afbabc1d72e7a8c1a0e542c2ff92fbf01759b1d4\", \"value of elbow_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(elbow_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"02ff938dd19f1583\").hexdigest() == \"afbabc1d72e7a8c1a0e542c2ff92fbf01759b1d4\", \"correct string value of elbow_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(elbow_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2d4ca50fb1fab664\").hexdigest() == \"6957e941e4d7007e49fab58c7cb55bf4fe6d1451\", \"type of elbow_plot.encoding.y['shorthand'] is not str. elbow_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(elbow_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2d4ca50fb1fab664\").hexdigest() == \"b10dfb95e83dba4c1d322052c769b7dbc0742bef\", \"length of elbow_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(elbow_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"2d4ca50fb1fab664\").hexdigest() == \"6270d8486427272f99e51aea0f96d58ff1a7cb3a\", \"value of elbow_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(elbow_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"2d4ca50fb1fab664\").hexdigest() == \"6270d8486427272f99e51aea0f96d58ff1a7cb3a\", \"correct string value of elbow_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(elbow_plot.mark)).encode(\"utf-8\")+b\"7efe4959c24c52b1\").hexdigest() == \"0eafb4e74e656602375c98fa29d6aa5dbebef904\", \"type of elbow_plot.mark is not correct\"\n", - "assert sha1(str(elbow_plot.mark).encode(\"utf-8\")+b\"7efe4959c24c52b1\").hexdigest() == \"d9125e6db5c0e65c86357766d1aa407a39a4d436\", \"value of elbow_plot.mark is not correct\"\n", + "assert sha1(str(type(elbow_plot.mark)).encode(\"utf-8\")+b\"718d174924fe6c8b\").hexdigest() == \"3235a3be08702f71233b4e383221d390e4155efe\", \"type of elbow_plot.mark is not correct\"\n", + "assert sha1(str(elbow_plot.mark).encode(\"utf-8\")+b\"718d174924fe6c8b\").hexdigest() == \"d655b8f724d56bef9fef9c055aff628a36a2b210\", \"value of elbow_plot.mark is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(elbow_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"ed3b0e39603beff1\").hexdigest() == \"b89205c7579b6988d28f68490fa688126931f041\", \"type of isinstance(elbow_plot.encoding.x['title'], str) is not bool. isinstance(elbow_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(elbow_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"ed3b0e39603beff1\").hexdigest() == \"ac4eb33c2080b9e7480ac088f417997c3ea082a6\", \"boolean value of isinstance(elbow_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(elbow_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"47909fc6994178d5\").hexdigest() == \"30b3accd704da5f4aa5b6434c94fe03d2fbca2e2\", \"type of isinstance(elbow_plot.encoding.x['title'], str) is not bool. isinstance(elbow_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(elbow_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"47909fc6994178d5\").hexdigest() == \"e3a7224e936403160c3179c8196a1c0db9c961af\", \"boolean value of isinstance(elbow_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(elbow_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"35b6df5197f50156\").hexdigest() == \"a80bc9129b52409c103478e3057bd11467d57064\", \"type of isinstance(elbow_plot.encoding.y['title'], str) is not bool. isinstance(elbow_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(elbow_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"35b6df5197f50156\").hexdigest() == \"8150608b324da96e607ef958198170e92657abde\", \"boolean value of isinstance(elbow_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(elbow_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"271a56b81692b96e\").hexdigest() == \"8ec4439100302bf8f3bf63e857c7db5c6e8cf4ac\", \"type of isinstance(elbow_plot.encoding.y['title'], str) is not bool. isinstance(elbow_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(elbow_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"271a56b81692b96e\").hexdigest() == \"9499693bc242dbed63750352fc43cf695423efcd\", \"boolean value of isinstance(elbow_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1636,7 +1636,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "1de71680cb19f57580651281cdec3510", + "checksum": "bdc0654efc8d7bb6b74913d647b28361", "grade": true, "grade_id": "cell-62328bcd821daea9", "locked": true, @@ -1648,8 +1648,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_4 in ['2', '3', '4'])).encode(\"utf-8\")+b\"44fe820a74d9e18b\").hexdigest() == \"df893c384ab657c265d12c53373c6909cade9ba7\", \"type of answer2_4 in ['2', '3', '4'] is not bool. answer2_4 in ['2', '3', '4'] should be a bool\"\n", - "assert sha1(str(answer2_4 in ['2', '3', '4']).encode(\"utf-8\")+b\"44fe820a74d9e18b\").hexdigest() == \"48f57efcff8d71a11c0499b62ea55ea690d2a095\", \"boolean value of answer2_4 in ['2', '3', '4'] is not correct\"\n", + "assert sha1(str(type(answer2_4 in ['2', '3', '4'])).encode(\"utf-8\")+b\"a97064261029b4d0\").hexdigest() == \"5f990ef2b29421586ff26bc0fcc6f5bc3c49b007\", \"type of answer2_4 in ['2', '3', '4'] is not bool. answer2_4 in ['2', '3', '4'] should be a bool\"\n", + "assert sha1(str(answer2_4 in ['2', '3', '4']).encode(\"utf-8\")+b\"a97064261029b4d0\").hexdigest() == \"88e844ca041e2861c65b1e415bc25ccc753da2dd\", \"boolean value of answer2_4 in ['2', '3', '4'] is not correct\"\n", "\n", "print('Success!')" ] @@ -1717,7 +1717,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "15f20d249a05e17f7823382ae84cecd5", + "checksum": "94d291e1abb874b07595a646a87668d1", "grade": true, "grade_id": "cell-e82ea147802752c4", "locked": true, @@ -1730,10 +1730,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_5)).encode(\"utf-8\")+b\"cbd2daf3e135f76f\").hexdigest() == \"ea7f4fe24a3a1c1c0952e3b045ce46cb32eb1c79\", \"type of answer2_5 is not str. answer2_5 should be an str\"\n", - "assert sha1(str(len(answer2_5)).encode(\"utf-8\")+b\"cbd2daf3e135f76f\").hexdigest() == \"9ac0331ceba761942475a79c3a506d04ce45c614\", \"length of answer2_5 is not correct\"\n", - "assert sha1(str(answer2_5.lower()).encode(\"utf-8\")+b\"cbd2daf3e135f76f\").hexdigest() == \"7c9b3374727f65e88c40f7537fe43aaac4902faf\", \"value of answer2_5 is not correct\"\n", - "assert sha1(str(answer2_5).encode(\"utf-8\")+b\"cbd2daf3e135f76f\").hexdigest() == \"0f8bf20db2205493d24395d3f106d5a9eb66b65d\", \"correct string value of answer2_5 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_5)).encode(\"utf-8\")+b\"a8049ffb16dad39e\").hexdigest() == \"2d109df5e2b3df0476cca9fd7702c9439f701839\", \"type of answer2_5 is not str. answer2_5 should be an str\"\n", + "assert sha1(str(len(answer2_5)).encode(\"utf-8\")+b\"a8049ffb16dad39e\").hexdigest() == \"96757f8e61ecb94ecc6cd792c0bc7115c6bb6202\", \"length of answer2_5 is not correct\"\n", + "assert sha1(str(answer2_5.lower()).encode(\"utf-8\")+b\"a8049ffb16dad39e\").hexdigest() == \"948c9256d68cccd570b21bc553db90864fea1e47\", \"value of answer2_5 is not correct\"\n", + "assert sha1(str(answer2_5).encode(\"utf-8\")+b\"a8049ffb16dad39e\").hexdigest() == \"1d2260c23f41f60eecdf6b5535ecf0819d6ee19f\", \"correct string value of answer2_5 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1802,7 +1802,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "79b94ced8b3912bb557cc98ef90f14f1", + "checksum": "81bb49345ec42fb4b71a64e315fc9798", "grade": true, "grade_id": "cell-c9f898df0442578e", "locked": true, @@ -1815,10 +1815,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"5785a2d9f102c984\").hexdigest() == \"e4bcdd80ee61ba9b533f334c21a7576b9076ee71\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", - "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"5785a2d9f102c984\").hexdigest() == \"3a3b442755a433388f8986f46d9b1219c3ac8b2c\", \"length of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"5785a2d9f102c984\").hexdigest() == \"8f549aa1a33cddeb4b7709aa4cf80e4d36bd702f\", \"value of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"5785a2d9f102c984\").hexdigest() == \"8af43c24e01e6d1fff8185e2d580331c5b436102\", \"correct string value of answer2_6 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"a3316332b8650055\").hexdigest() == \"ba2586abd6b7bb2df55264ac0d7557a9aa9a4878\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", + "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"a3316332b8650055\").hexdigest() == \"f5d67f96dc76f2e9ed8f45a8f7388ef202160b8d\", \"length of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"a3316332b8650055\").hexdigest() == \"063c711dd9ff7b5c7e90f33ef2ba3ff48184f7f0\", \"value of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"a3316332b8650055\").hexdigest() == \"be20d6c3724fbbd2c329200ac99ebc4c0b18af0a\", \"correct string value of answer2_6 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1878,7 +1878,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "035ea0b79969465c02b7d39cc9618792", + "checksum": "cf22f13fd752294664a51afdfb13ca86", "grade": true, "grade_id": "cell-db3c4a1fcf69226e", "locked": true, @@ -1891,8 +1891,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_7)).encode(\"utf-8\")+b\"c478fd58c79ecf1b\").hexdigest() == \"0839d72f574e8a01bb6c1733f3e7c28a030a361d\", \"type of answer2_7 is not bool. answer2_7 should be a bool\"\n", - "assert sha1(str(answer2_7).encode(\"utf-8\")+b\"c478fd58c79ecf1b\").hexdigest() == \"b4b2fae8a06961ce87a4a838c3f24d3c1cbbff75\", \"boolean value of answer2_7 is not correct\"\n", + "assert sha1(str(type(answer2_7)).encode(\"utf-8\")+b\"ec7c31afad0f10db\").hexdigest() == \"aac0a2ef1e47f9ca45c45afdf25ad0e2f98ef099\", \"type of answer2_7 is not bool. answer2_7 should be a bool\"\n", + "assert sha1(str(answer2_7).encode(\"utf-8\")+b\"ec7c31afad0f10db\").hexdigest() == \"09f88cbde5930704dc759acf931273bdbaf3c7df\", \"boolean value of answer2_7 is not correct\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_inference1/py_worksheet_inference1.ipynb b/py_worksheet_inference1/py_worksheet_inference1.ipynb index 6788bfd..8042bf4 100644 --- a/py_worksheet_inference1/py_worksheet_inference1.ipynb +++ b/py_worksheet_inference1/py_worksheet_inference1.ipynb @@ -124,7 +124,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "00fe6a752fb3180b19a4c4727309c0ca", + "checksum": "98265ca60c3c34371c775b6154430d1e", "grade": true, "grade_id": "cell-d0c5d425485aa846", "locked": true, @@ -137,10 +137,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_0)).encode(\"utf-8\")+b\"c71b61e385930924\").hexdigest() == \"de8e50e169cc0a0e21b7aa2a81224a1859ef2bb2\", \"type of answer1_0 is not str. answer1_0 should be an str\"\n", - "assert sha1(str(len(answer1_0)).encode(\"utf-8\")+b\"c71b61e385930924\").hexdigest() == \"e338d591749a9f01fab7fa1d3842d332724cdd2a\", \"length of answer1_0 is not correct\"\n", - "assert sha1(str(answer1_0.lower()).encode(\"utf-8\")+b\"c71b61e385930924\").hexdigest() == \"339c10f9fccd6dc0d3eb8d1809c30b6106debc7f\", \"value of answer1_0 is not correct\"\n", - "assert sha1(str(answer1_0).encode(\"utf-8\")+b\"c71b61e385930924\").hexdigest() == \"c685e6cb38df0c5d972003ae8381257754fb04f3\", \"correct string value of answer1_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_0)).encode(\"utf-8\")+b\"40cb449e25941d87\").hexdigest() == \"e08f9d9719a001a9c3b7e1583732d79cd3b5c111\", \"type of answer1_0 is not str. answer1_0 should be an str\"\n", + "assert sha1(str(len(answer1_0)).encode(\"utf-8\")+b\"40cb449e25941d87\").hexdigest() == \"fe9e7dde2fc7d78381f174ba56c3e6ee1dc64ae0\", \"length of answer1_0 is not correct\"\n", + "assert sha1(str(answer1_0.lower()).encode(\"utf-8\")+b\"40cb449e25941d87\").hexdigest() == \"5eac2c06bdf67bc73615526bc08bc5e295f30d8c\", \"value of answer1_0 is not correct\"\n", + "assert sha1(str(answer1_0).encode(\"utf-8\")+b\"40cb449e25941d87\").hexdigest() == \"ffcd087ac7243d98ade17c31c19f41037b2fdd89\", \"correct string value of answer1_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -218,7 +218,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "56ac17587af1ae81b3667efd698b650d", + "checksum": "aa52c3338d87c936e8f675a5a626d8db", "grade": true, "grade_id": "cell-3e20f546495eda51", "locked": true, @@ -231,29 +231,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(point_estimate)).encode(\"utf-8\")+b\"0338acba801feb5e\").hexdigest() == \"79c79496c8ac735212bd5d17e4ab715138c1bf6c\", \"type of point_estimate is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(point_estimate).encode(\"utf-8\")+b\"0338acba801feb5e\").hexdigest() == \"01cf90ee0987d87f22f4cdb9731009e110a72ec8\", \"value of point_estimate is not correct\"\n", + "assert sha1(str(type(point_estimate)).encode(\"utf-8\")+b\"403cc74e64846df3\").hexdigest() == \"97c59031040430b48b53369004a0ab6020a01d93\", \"type of point_estimate is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(point_estimate).encode(\"utf-8\")+b\"403cc74e64846df3\").hexdigest() == \"0eb662a5545f9f40d6d422c00343a63a047a66a0\", \"value of point_estimate is not correct\"\n", "\n", - "assert sha1(str(type(population)).encode(\"utf-8\")+b\"751d9399c023f594\").hexdigest() == \"80efd6bd62891f5bee98957b4c1f7f6d3a3538e7\", \"type of population is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(population).encode(\"utf-8\")+b\"751d9399c023f594\").hexdigest() == \"32b21fd617c347f25802cc3f783087ccb5472c76\", \"value of population is not correct\"\n", + "assert sha1(str(type(population)).encode(\"utf-8\")+b\"c7afc9dec31169ac\").hexdigest() == \"e6cfd085bf5fa6d0434b52aead053cc456e29714\", \"type of population is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(population).encode(\"utf-8\")+b\"c7afc9dec31169ac\").hexdigest() == \"6c0384f4561a148e40de73cbd50fa79ad34f298e\", \"value of population is not correct\"\n", "\n", - "assert sha1(str(type(random_sampling)).encode(\"utf-8\")+b\"5e14a85323c1327a\").hexdigest() == \"09ade47ee8ef1296592eb99d172640d0049e347c\", \"type of random_sampling is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(random_sampling).encode(\"utf-8\")+b\"5e14a85323c1327a\").hexdigest() == \"e6b06bf59e1a0d27a7b6abd92fb7b634b52aee4d\", \"value of random_sampling is not correct\"\n", + "assert sha1(str(type(random_sampling)).encode(\"utf-8\")+b\"4f7ed76c51519a75\").hexdigest() == \"789af25795abcb39f24ae2f803faeb12963df008\", \"type of random_sampling is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(random_sampling).encode(\"utf-8\")+b\"4f7ed76c51519a75\").hexdigest() == \"0032ec73b78b93001ef9db70282239ea330e79a5\", \"value of random_sampling is not correct\"\n", "\n", - "assert sha1(str(type(representative_sampling)).encode(\"utf-8\")+b\"b692d490d545bd5c\").hexdigest() == \"91c876ca71db17b0b7dd8456d1f64a24c7d522a5\", \"type of representative_sampling is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(representative_sampling).encode(\"utf-8\")+b\"b692d490d545bd5c\").hexdigest() == \"7ca155978e3a7220cbb310d9f42b7b68f1bc9c75\", \"value of representative_sampling is not correct\"\n", + "assert sha1(str(type(representative_sampling)).encode(\"utf-8\")+b\"6dcb82cec67c033b\").hexdigest() == \"4935ca1313432c2da5c8630c3b3e87d91acb5c0a\", \"type of representative_sampling is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(representative_sampling).encode(\"utf-8\")+b\"6dcb82cec67c033b\").hexdigest() == \"282cceeaafadddabde8c32d012a0b9cf55c20624\", \"value of representative_sampling is not correct\"\n", "\n", - "assert sha1(str(type(population_parameter)).encode(\"utf-8\")+b\"c0204cdb0d5f964d\").hexdigest() == \"b8fd6f7d8f4245e59f0f326bb9b1284f7f768a34\", \"type of population_parameter is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(population_parameter).encode(\"utf-8\")+b\"c0204cdb0d5f964d\").hexdigest() == \"564dd30aff93c8cab8f50288a03ea4947d428b09\", \"value of population_parameter is not correct\"\n", + "assert sha1(str(type(population_parameter)).encode(\"utf-8\")+b\"3452a0af41cc9754\").hexdigest() == \"7cc4e2216720a082b8f780071f108d0c4f813134\", \"type of population_parameter is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(population_parameter).encode(\"utf-8\")+b\"3452a0af41cc9754\").hexdigest() == \"baeae52a4a823b48a9f738ac9bfd8f4012453aba\", \"value of population_parameter is not correct\"\n", "\n", - "assert sha1(str(type(sample)).encode(\"utf-8\")+b\"d3a287d501895057\").hexdigest() == \"1b23314e50e6af41215c7054cfb8eda48b0b4d4e\", \"type of sample is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample).encode(\"utf-8\")+b\"d3a287d501895057\").hexdigest() == \"509d31930e4898beebdf6595b89b2638a73611ae\", \"value of sample is not correct\"\n", + "assert sha1(str(type(sample)).encode(\"utf-8\")+b\"5a5475deafd52c43\").hexdigest() == \"6c1e85a652c59c2a6ac167c8e33334fe1f7f956b\", \"type of sample is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample).encode(\"utf-8\")+b\"5a5475deafd52c43\").hexdigest() == \"6c18db3ff4839e0f44bde82ee9d31720de6dd8bd\", \"value of sample is not correct\"\n", "\n", - "assert sha1(str(type(observation)).encode(\"utf-8\")+b\"a38a0aa567f77938\").hexdigest() == \"5f1a94434127a482d57dc1fda5f981f0511ed482\", \"type of observation is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(observation).encode(\"utf-8\")+b\"a38a0aa567f77938\").hexdigest() == \"b164d43fe1a6a7d7824da994d964451adcc89523\", \"value of observation is not correct\"\n", + "assert sha1(str(type(observation)).encode(\"utf-8\")+b\"b1488c41cb63c663\").hexdigest() == \"0bd24641c67220d6a5254aa45d3dd6116039c8b5\", \"type of observation is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(observation).encode(\"utf-8\")+b\"b1488c41cb63c663\").hexdigest() == \"b3ca0bfaf57cf9fa405d45e627af54a408b46d05\", \"value of observation is not correct\"\n", "\n", - "assert sha1(str(type(sampling_distribution)).encode(\"utf-8\")+b\"6d43ca05fe0ab715\").hexdigest() == \"db066b1f499d7f512fb0685e3d1fd49ae30ff96b\", \"type of sampling_distribution is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sampling_distribution).encode(\"utf-8\")+b\"6d43ca05fe0ab715\").hexdigest() == \"69b3ec456d8b94b5b768b67020bae6eb323a0100\", \"value of sampling_distribution is not correct\"\n", + "assert sha1(str(type(sampling_distribution)).encode(\"utf-8\")+b\"b4cebba56bfb1de9\").hexdigest() == \"44a455b96a01a5e9fc6f9d701b22e7e2ddf6d116\", \"type of sampling_distribution is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sampling_distribution).encode(\"utf-8\")+b\"b4cebba56bfb1de9\").hexdigest() == \"7bff6660a9a1660eab3ecfd11f0208d1de9e8021\", \"value of sampling_distribution is not correct\"\n", "\n", "print('Success!')" ] @@ -375,7 +375,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bbbcd67b5481952816bc63835be96e2f", + "checksum": "073708aa6133ee49c0ed4dc1a7cf0d77", "grade": true, "grade_id": "cell-9e86388006978a3c", "locked": true, @@ -388,26 +388,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(pop_dist.mark)).encode(\"utf-8\")+b\"80562422128bc91c\").hexdigest() == \"1bc5f763550fdbad49b8c7d483d2f5c52f640092\", \"type of pop_dist.mark is not str. pop_dist.mark should be an str\"\n", - "assert sha1(str(len(pop_dist.mark)).encode(\"utf-8\")+b\"80562422128bc91c\").hexdigest() == \"bab14005e9c6801bebb66d4692a7e89209dde429\", \"length of pop_dist.mark is not correct\"\n", - "assert sha1(str(pop_dist.mark.lower()).encode(\"utf-8\")+b\"80562422128bc91c\").hexdigest() == \"3070ebd8ebb1aacdc8c8d5ada6ac08311a159e8e\", \"value of pop_dist.mark is not correct\"\n", - "assert sha1(str(pop_dist.mark).encode(\"utf-8\")+b\"80562422128bc91c\").hexdigest() == \"3070ebd8ebb1aacdc8c8d5ada6ac08311a159e8e\", \"correct string value of pop_dist.mark but incorrect case of letters\"\n", + "assert sha1(str(type(pop_dist.mark)).encode(\"utf-8\")+b\"cbdcd5a97c5fea7e\").hexdigest() == \"50ea41872363ce874daf90afa343625169fc70bb\", \"type of pop_dist.mark is not str. pop_dist.mark should be an str\"\n", + "assert sha1(str(len(pop_dist.mark)).encode(\"utf-8\")+b\"cbdcd5a97c5fea7e\").hexdigest() == \"24c10b554793af5570021ffa4760f38511750e19\", \"length of pop_dist.mark is not correct\"\n", + "assert sha1(str(pop_dist.mark.lower()).encode(\"utf-8\")+b\"cbdcd5a97c5fea7e\").hexdigest() == \"2bae1e6221a5dc11ebfbe55cdd608fd8555c72d7\", \"value of pop_dist.mark is not correct\"\n", + "assert sha1(str(pop_dist.mark).encode(\"utf-8\")+b\"cbdcd5a97c5fea7e\").hexdigest() == \"2bae1e6221a5dc11ebfbe55cdd608fd8555c72d7\", \"correct string value of pop_dist.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(pop_dist.encoding['x']['shorthand'])).encode(\"utf-8\")+b\"ff4ffcb05e26e789\").hexdigest() == \"4a8344655a89844cd7858e3428a1b5e44ef70186\", \"type of pop_dist.encoding['x']['shorthand'] is not str. pop_dist.encoding['x']['shorthand'] should be an str\"\n", - "assert sha1(str(len(pop_dist.encoding['x']['shorthand'])).encode(\"utf-8\")+b\"ff4ffcb05e26e789\").hexdigest() == \"5f1d837bcb622206880795e6335f875149ad9283\", \"length of pop_dist.encoding['x']['shorthand'] is not correct\"\n", - "assert sha1(str(pop_dist.encoding['x']['shorthand'].lower()).encode(\"utf-8\")+b\"ff4ffcb05e26e789\").hexdigest() == \"4e34c72726b80192c761273b4e8a847a854ea082\", \"value of pop_dist.encoding['x']['shorthand'] is not correct\"\n", - "assert sha1(str(pop_dist.encoding['x']['shorthand']).encode(\"utf-8\")+b\"ff4ffcb05e26e789\").hexdigest() == \"4e34c72726b80192c761273b4e8a847a854ea082\", \"correct string value of pop_dist.encoding['x']['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(pop_dist.encoding['x']['shorthand'])).encode(\"utf-8\")+b\"1b5c052d8fcf4839\").hexdigest() == \"c3cb685e50b16711711c74bcedda305add5a7ff4\", \"type of pop_dist.encoding['x']['shorthand'] is not str. pop_dist.encoding['x']['shorthand'] should be an str\"\n", + "assert sha1(str(len(pop_dist.encoding['x']['shorthand'])).encode(\"utf-8\")+b\"1b5c052d8fcf4839\").hexdigest() == \"3642408124f990b189288cd4805e5f514e672d18\", \"length of pop_dist.encoding['x']['shorthand'] is not correct\"\n", + "assert sha1(str(pop_dist.encoding['x']['shorthand'].lower()).encode(\"utf-8\")+b\"1b5c052d8fcf4839\").hexdigest() == \"6e57fa42ad64317e1b18dcda46ce592efe064b81\", \"value of pop_dist.encoding['x']['shorthand'] is not correct\"\n", + "assert sha1(str(pop_dist.encoding['x']['shorthand']).encode(\"utf-8\")+b\"1b5c052d8fcf4839\").hexdigest() == \"6e57fa42ad64317e1b18dcda46ce592efe064b81\", \"correct string value of pop_dist.encoding['x']['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(pop_dist.encoding['y']['shorthand'])).encode(\"utf-8\")+b\"4a10ddf03df06653\").hexdigest() == \"6f10827bfded808ad0c96d9a38e721a03c62eeb0\", \"type of pop_dist.encoding['y']['shorthand'] is not str. pop_dist.encoding['y']['shorthand'] should be an str\"\n", - "assert sha1(str(len(pop_dist.encoding['y']['shorthand'])).encode(\"utf-8\")+b\"4a10ddf03df06653\").hexdigest() == \"acf24778325dd645ba8bf5930c90b22955aa3992\", \"length of pop_dist.encoding['y']['shorthand'] is not correct\"\n", - "assert sha1(str(pop_dist.encoding['y']['shorthand'].lower()).encode(\"utf-8\")+b\"4a10ddf03df06653\").hexdigest() == \"b6b2fc56d9e76d307f8f340284245f21be14df99\", \"value of pop_dist.encoding['y']['shorthand'] is not correct\"\n", - "assert sha1(str(pop_dist.encoding['y']['shorthand']).encode(\"utf-8\")+b\"4a10ddf03df06653\").hexdigest() == \"b6b2fc56d9e76d307f8f340284245f21be14df99\", \"correct string value of pop_dist.encoding['y']['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(pop_dist.encoding['y']['shorthand'])).encode(\"utf-8\")+b\"721792ceb7988d28\").hexdigest() == \"deef807915eb75e3622b7448f719dc3d55a03f06\", \"type of pop_dist.encoding['y']['shorthand'] is not str. pop_dist.encoding['y']['shorthand'] should be an str\"\n", + "assert sha1(str(len(pop_dist.encoding['y']['shorthand'])).encode(\"utf-8\")+b\"721792ceb7988d28\").hexdigest() == \"d4b2a5e1bb42a8f05656a939a35583a9afe1e653\", \"length of pop_dist.encoding['y']['shorthand'] is not correct\"\n", + "assert sha1(str(pop_dist.encoding['y']['shorthand'].lower()).encode(\"utf-8\")+b\"721792ceb7988d28\").hexdigest() == \"1a366d76471aef5347bed74a6becd262587318b8\", \"value of pop_dist.encoding['y']['shorthand'] is not correct\"\n", + "assert sha1(str(pop_dist.encoding['y']['shorthand']).encode(\"utf-8\")+b\"721792ceb7988d28\").hexdigest() == \"1a366d76471aef5347bed74a6becd262587318b8\", \"correct string value of pop_dist.encoding['y']['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(pop_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"032aea7a88f38158\").hexdigest() == \"48c577a8808c1b886d458b818e090b87616ba7ed\", \"type of isinstance(pop_dist.encoding.x['title'], str) is not bool. isinstance(pop_dist.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(pop_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"032aea7a88f38158\").hexdigest() == \"90accf647c79e5a9e763e43c02f13812aba2e60a\", \"boolean value of isinstance(pop_dist.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(pop_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"ccc3c99b5bb423cb\").hexdigest() == \"45416eac82b6ea436fb5092884e1802289b5a496\", \"type of isinstance(pop_dist.encoding.x['title'], str) is not bool. isinstance(pop_dist.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(pop_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"ccc3c99b5bb423cb\").hexdigest() == \"ed956a72644374842e77b5d299283476e6600d6d\", \"boolean value of isinstance(pop_dist.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(pop_dist.data.equals(can_seniors))).encode(\"utf-8\")+b\"e2d514ea78dcd2a4\").hexdigest() == \"a00f24d108fac7586693c134edd5a47ad5146422\", \"type of pop_dist.data.equals(can_seniors) is not bool. pop_dist.data.equals(can_seniors) should be a bool\"\n", - "assert sha1(str(pop_dist.data.equals(can_seniors)).encode(\"utf-8\")+b\"e2d514ea78dcd2a4\").hexdigest() == \"e1c0fbf2ddb95f72068473a795cf932d80f527d8\", \"boolean value of pop_dist.data.equals(can_seniors) is not correct\"\n", + "assert sha1(str(type(pop_dist.data.equals(can_seniors))).encode(\"utf-8\")+b\"338d1cd98b5f162b\").hexdigest() == \"3bebcb9e953ee48ce9bad4033abd9293625fb6c3\", \"type of pop_dist.data.equals(can_seniors) is not bool. pop_dist.data.equals(can_seniors) should be a bool\"\n", + "assert sha1(str(pop_dist.data.equals(can_seniors)).encode(\"utf-8\")+b\"338d1cd98b5f162b\").hexdigest() == \"1a1e9fff346dbc2fdf6517bc9753e9b9c86d2470\", \"boolean value of pop_dist.data.equals(can_seniors) is not correct\"\n", "\n", "print('Success!')" ] @@ -474,7 +474,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "9d04e3039657877b9f224874073f113c", + "checksum": "0c4e8a3c73bbed76da730549096dfec9", "grade": true, "grade_id": "cell-ebeb7e12fd1b5f86", "locked": true, @@ -487,16 +487,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(pop_parameters.shape[0])).encode(\"utf-8\")+b\"53ef8a89a3a7099f\").hexdigest() == \"ff57fca89295be2c4555adda3d10a49c32e4976d\", \"type of pop_parameters.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(pop_parameters.shape[0]).encode(\"utf-8\")+b\"53ef8a89a3a7099f\").hexdigest() == \"2b96166a3beb350ae77bad8be32fc50b566de26c\", \"value of pop_parameters.shape[0] is not correct\"\n", + "assert sha1(str(type(pop_parameters.shape[0])).encode(\"utf-8\")+b\"d7f24dd3bdda68e5\").hexdigest() == \"c6486943c3867322beeac3ee052d1195c998f6d2\", \"type of pop_parameters.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(pop_parameters.shape[0]).encode(\"utf-8\")+b\"d7f24dd3bdda68e5\").hexdigest() == \"450e0e37851b509a07894aec54a4aaa892c2e3ae\", \"value of pop_parameters.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(pop_parameters.shape[1])).encode(\"utf-8\")+b\"d9d6bf918c771da4\").hexdigest() == \"31ee099f17bdaee623ba55fef7f83f1756cd657c\", \"type of pop_parameters.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(pop_parameters.shape[1]).encode(\"utf-8\")+b\"d9d6bf918c771da4\").hexdigest() == \"c489d1e9357f17a2f8747b17b74cab73fb8afdd8\", \"value of pop_parameters.shape[1] is not correct\"\n", + "assert sha1(str(type(pop_parameters.shape[1])).encode(\"utf-8\")+b\"3a8dc60241c010eb\").hexdigest() == \"c3103c8a54efe22705f62940f75dc1bc509975ae\", \"type of pop_parameters.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(pop_parameters.shape[1]).encode(\"utf-8\")+b\"3a8dc60241c010eb\").hexdigest() == \"8494b6bc1cd76ac431f1b56af244f2fea659099f\", \"value of pop_parameters.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(pop_parameters.columns.values))).encode(\"utf-8\")+b\"a4cd062ee410a63f\").hexdigest() == \"e05f832fa6d2d2247e6b981df86e54e92ef89544\", \"type of \\\"\\\".join(pop_parameters.columns.values) is not str. \\\"\\\".join(pop_parameters.columns.values) should be an str\"\n", - "assert sha1(str(len(\"\".join(pop_parameters.columns.values))).encode(\"utf-8\")+b\"a4cd062ee410a63f\").hexdigest() == \"3b39009ea08786f22d98334ed19e1ea8c195fdab\", \"length of \\\"\\\".join(pop_parameters.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(pop_parameters.columns.values).lower()).encode(\"utf-8\")+b\"a4cd062ee410a63f\").hexdigest() == \"2b562557990d5b0b4646c86071044c29a2746599\", \"value of \\\"\\\".join(pop_parameters.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(pop_parameters.columns.values)).encode(\"utf-8\")+b\"a4cd062ee410a63f\").hexdigest() == \"2b562557990d5b0b4646c86071044c29a2746599\", \"correct string value of \\\"\\\".join(pop_parameters.columns.values) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(pop_parameters.columns.values))).encode(\"utf-8\")+b\"a927a0ba660ced22\").hexdigest() == \"1353f9444ea9ffe3d02fae5391e8c5c9344bc89f\", \"type of \\\"\\\".join(pop_parameters.columns.values) is not str. \\\"\\\".join(pop_parameters.columns.values) should be an str\"\n", + "assert sha1(str(len(\"\".join(pop_parameters.columns.values))).encode(\"utf-8\")+b\"a927a0ba660ced22\").hexdigest() == \"bad77106b74fa7b2ae227b44c2dd7451f22f3cef\", \"length of \\\"\\\".join(pop_parameters.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(pop_parameters.columns.values).lower()).encode(\"utf-8\")+b\"a927a0ba660ced22\").hexdigest() == \"2a22e9505613e393c09a8ee44c8f8f4181a6a0e5\", \"value of \\\"\\\".join(pop_parameters.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(pop_parameters.columns.values)).encode(\"utf-8\")+b\"a927a0ba660ced22\").hexdigest() == \"2a22e9505613e393c09a8ee44c8f8f4181a6a0e5\", \"correct string value of \\\"\\\".join(pop_parameters.columns.values) but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -559,7 +559,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f31a542b689bdda1cd6a2f82def61333", + "checksum": "6273bcec08f63bb88b094677584d69de", "grade": true, "grade_id": "cell-e494fbea71d264cc", "locked": true, @@ -572,16 +572,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sample_1.shape[0])).encode(\"utf-8\")+b\"01810b8c35d70e98\").hexdigest() == \"199cb4886a54e5b505945e23dd55108ced33744a\", \"type of sample_1.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_1.shape[0]).encode(\"utf-8\")+b\"01810b8c35d70e98\").hexdigest() == \"20132d96f634d8490b4756aad30d7dbc41265000\", \"value of sample_1.shape[0] is not correct\"\n", + "assert sha1(str(type(sample_1.shape[0])).encode(\"utf-8\")+b\"85cd21ef6cdf59ad\").hexdigest() == \"b8ec6ca14b8b212eeb2f83b815c2474ba56cd8f1\", \"type of sample_1.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_1.shape[0]).encode(\"utf-8\")+b\"85cd21ef6cdf59ad\").hexdigest() == \"e4c72790a905072ecf855c29d3cc95a6e7ad8e11\", \"value of sample_1.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(sample_1.shape[1])).encode(\"utf-8\")+b\"dae2bb5b4bc7b9c3\").hexdigest() == \"d4d634f1fd593f66d577b5e43f65653956e9c5fe\", \"type of sample_1.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_1.shape[1]).encode(\"utf-8\")+b\"dae2bb5b4bc7b9c3\").hexdigest() == \"bc057a804b6ec5d7b8d9ad8e871e01a2c5352f87\", \"value of sample_1.shape[1] is not correct\"\n", + "assert sha1(str(type(sample_1.shape[1])).encode(\"utf-8\")+b\"7391ac3bdaf4f87d\").hexdigest() == \"27b3bccfd9f66e358a202b2e63f942bee0decb2f\", \"type of sample_1.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_1.shape[1]).encode(\"utf-8\")+b\"7391ac3bdaf4f87d\").hexdigest() == \"acbfdd6f3407a2918660da8717f66e7b58ada3c5\", \"value of sample_1.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(sample_1.columns.values))).encode(\"utf-8\")+b\"c271d596ab9b98ae\").hexdigest() == \"4c00e83036eeaa620a48ecaef5cea0ad0fa5147a\", \"type of \\\"\\\".join(sample_1.columns.values) is not str. \\\"\\\".join(sample_1.columns.values) should be an str\"\n", - "assert sha1(str(len(\"\".join(sample_1.columns.values))).encode(\"utf-8\")+b\"c271d596ab9b98ae\").hexdigest() == \"09f0ff523fe6bf88f837e23b96e727d240d7a93d\", \"length of \\\"\\\".join(sample_1.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(sample_1.columns.values).lower()).encode(\"utf-8\")+b\"c271d596ab9b98ae\").hexdigest() == \"084978761ebe5cf52144f96ad724215f70bd809e\", \"value of \\\"\\\".join(sample_1.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(sample_1.columns.values)).encode(\"utf-8\")+b\"c271d596ab9b98ae\").hexdigest() == \"084978761ebe5cf52144f96ad724215f70bd809e\", \"correct string value of \\\"\\\".join(sample_1.columns.values) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(sample_1.columns.values))).encode(\"utf-8\")+b\"f995c55b9bd7b5ed\").hexdigest() == \"ec48a834e4423ebc12753a1a3e3d1197474c8d20\", \"type of \\\"\\\".join(sample_1.columns.values) is not str. \\\"\\\".join(sample_1.columns.values) should be an str\"\n", + "assert sha1(str(len(\"\".join(sample_1.columns.values))).encode(\"utf-8\")+b\"f995c55b9bd7b5ed\").hexdigest() == \"b8d7dd671f59f5ad6340c853598956822f3d6d67\", \"length of \\\"\\\".join(sample_1.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(sample_1.columns.values).lower()).encode(\"utf-8\")+b\"f995c55b9bd7b5ed\").hexdigest() == \"9ebe921f9c50426818a2cc02798412dc8aaede7c\", \"value of \\\"\\\".join(sample_1.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(sample_1.columns.values)).encode(\"utf-8\")+b\"f995c55b9bd7b5ed\").hexdigest() == \"9ebe921f9c50426818a2cc02798412dc8aaede7c\", \"correct string value of \\\"\\\".join(sample_1.columns.values) but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -642,7 +642,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "73e8ec134f69b6104f9c56c359920509", + "checksum": "676ba77a125ed696fd67b6a0d9083238", "grade": true, "grade_id": "cell-170ce4a2c9de09e4", "locked": true, @@ -655,26 +655,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sample_1_dist.mark)).encode(\"utf-8\")+b\"5b9489df82357147\").hexdigest() == \"cbe59418b24e4426eb9a69763f95c0417b455b4f\", \"type of sample_1_dist.mark is not str. sample_1_dist.mark should be an str\"\n", - "assert sha1(str(len(sample_1_dist.mark)).encode(\"utf-8\")+b\"5b9489df82357147\").hexdigest() == \"a08ae63a745ae828c3070409a72b3a189e6e58de\", \"length of sample_1_dist.mark is not correct\"\n", - "assert sha1(str(sample_1_dist.mark.lower()).encode(\"utf-8\")+b\"5b9489df82357147\").hexdigest() == \"5bfeb18d6fe82834171f124d19f853543fc3de4a\", \"value of sample_1_dist.mark is not correct\"\n", - "assert sha1(str(sample_1_dist.mark).encode(\"utf-8\")+b\"5b9489df82357147\").hexdigest() == \"5bfeb18d6fe82834171f124d19f853543fc3de4a\", \"correct string value of sample_1_dist.mark but incorrect case of letters\"\n", + "assert sha1(str(type(sample_1_dist.mark)).encode(\"utf-8\")+b\"41b33124cd047740\").hexdigest() == \"0793a1388cdbcd00062a91f6bf2d26e8dc6ae07f\", \"type of sample_1_dist.mark is not str. sample_1_dist.mark should be an str\"\n", + "assert sha1(str(len(sample_1_dist.mark)).encode(\"utf-8\")+b\"41b33124cd047740\").hexdigest() == \"d8075ec5ae39222f549267264da9301913b98c8b\", \"length of sample_1_dist.mark is not correct\"\n", + "assert sha1(str(sample_1_dist.mark.lower()).encode(\"utf-8\")+b\"41b33124cd047740\").hexdigest() == \"a3825d644e96f6dba1af06bf9f7de3cd398d970d\", \"value of sample_1_dist.mark is not correct\"\n", + "assert sha1(str(sample_1_dist.mark).encode(\"utf-8\")+b\"41b33124cd047740\").hexdigest() == \"a3825d644e96f6dba1af06bf9f7de3cd398d970d\", \"correct string value of sample_1_dist.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sample_1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"803057c37355b223\").hexdigest() == \"26a4ed57f861694d252dbb3990b284006d0855df\", \"type of sample_1_dist.encoding.x['shorthand'] is not str. sample_1_dist.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(sample_1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"803057c37355b223\").hexdigest() == \"e417060ba97db9200c202c639d2f04a102e146a4\", \"length of sample_1_dist.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sample_1_dist.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"803057c37355b223\").hexdigest() == \"2cfa7e96e2cd3e5bbe6ec661b331983c7cb71129\", \"value of sample_1_dist.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sample_1_dist.encoding.x['shorthand']).encode(\"utf-8\")+b\"803057c37355b223\").hexdigest() == \"2cfa7e96e2cd3e5bbe6ec661b331983c7cb71129\", \"correct string value of sample_1_dist.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sample_1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"dede79b297619fdc\").hexdigest() == \"2650a24211936d8be6d98c103175fd0902a9b7ca\", \"type of sample_1_dist.encoding.x['shorthand'] is not str. sample_1_dist.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(sample_1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"dede79b297619fdc\").hexdigest() == \"1e7e7001c9c896b6f31014959ccd2c9e9d2e5a71\", \"length of sample_1_dist.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sample_1_dist.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"dede79b297619fdc\").hexdigest() == \"dbb3a5ce3027a573a4760d5ea9bf6be4bfa071d7\", \"value of sample_1_dist.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sample_1_dist.encoding.x['shorthand']).encode(\"utf-8\")+b\"dede79b297619fdc\").hexdigest() == \"dbb3a5ce3027a573a4760d5ea9bf6be4bfa071d7\", \"correct string value of sample_1_dist.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sample_1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"678631a78ad33f79\").hexdigest() == \"43d3377d96ed23aa0f9c6f51a81fe1e3a803a1a0\", \"type of sample_1_dist.encoding.y['shorthand'] is not str. sample_1_dist.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(sample_1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"678631a78ad33f79\").hexdigest() == \"ae6cbf76a5770592fbd03198bc9b1fff1cdd8189\", \"length of sample_1_dist.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sample_1_dist.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"678631a78ad33f79\").hexdigest() == \"909a16e2e60061b0d5d2b41d0745c5cde1bd24fc\", \"value of sample_1_dist.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sample_1_dist.encoding.y['shorthand']).encode(\"utf-8\")+b\"678631a78ad33f79\").hexdigest() == \"909a16e2e60061b0d5d2b41d0745c5cde1bd24fc\", \"correct string value of sample_1_dist.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sample_1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"05aa7c2a1a786d96\").hexdigest() == \"6684f9869b75f51641c8a8d00b7ab97cf099583f\", \"type of sample_1_dist.encoding.y['shorthand'] is not str. sample_1_dist.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(sample_1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"05aa7c2a1a786d96\").hexdigest() == \"b9b34b06c1dc6cf78347282222982d9d3ff6003b\", \"length of sample_1_dist.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sample_1_dist.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"05aa7c2a1a786d96\").hexdigest() == \"ae3d5474daa9e901c851d48793f1bfdf9a4cb4e1\", \"value of sample_1_dist.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sample_1_dist.encoding.y['shorthand']).encode(\"utf-8\")+b\"05aa7c2a1a786d96\").hexdigest() == \"ae3d5474daa9e901c851d48793f1bfdf9a4cb4e1\", \"correct string value of sample_1_dist.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(sample_1_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"ec3168580bb5f8fe\").hexdigest() == \"85cd50a31d460339174ca7b272013d4f50dd20e8\", \"type of isinstance(sample_1_dist.encoding.x['title'], str) is not bool. isinstance(sample_1_dist.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(sample_1_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"ec3168580bb5f8fe\").hexdigest() == \"9178225f2e372ed64ce06f68ba5044d6b148cd3f\", \"boolean value of isinstance(sample_1_dist.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(sample_1_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"bec2a5c1b59ff875\").hexdigest() == \"0cca016939f1a62faa1b51d70b1f1044d50951bb\", \"type of isinstance(sample_1_dist.encoding.x['title'], str) is not bool. isinstance(sample_1_dist.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(sample_1_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"bec2a5c1b59ff875\").hexdigest() == \"05f1380251cd515793fa92c08f3d7d91ac7c68bb\", \"boolean value of isinstance(sample_1_dist.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(sample_1_dist.data.equals(sample_1))).encode(\"utf-8\")+b\"b8603f0a8c15b8b4\").hexdigest() == \"de670d345cd8409d69c1ae226ed97d7853f921cb\", \"type of sample_1_dist.data.equals(sample_1) is not bool. sample_1_dist.data.equals(sample_1) should be a bool\"\n", - "assert sha1(str(sample_1_dist.data.equals(sample_1)).encode(\"utf-8\")+b\"b8603f0a8c15b8b4\").hexdigest() == \"3cf904b6267fbbc7a30ee431a41def5a0f550882\", \"boolean value of sample_1_dist.data.equals(sample_1) is not correct\"\n", + "assert sha1(str(type(sample_1_dist.data.equals(sample_1))).encode(\"utf-8\")+b\"53c974765930454e\").hexdigest() == \"20519a7df5b3d58a02deb636d3c47ba1aa45fb21\", \"type of sample_1_dist.data.equals(sample_1) is not bool. sample_1_dist.data.equals(sample_1) should be a bool\"\n", + "assert sha1(str(sample_1_dist.data.equals(sample_1)).encode(\"utf-8\")+b\"53c974765930454e\").hexdigest() == \"37abe6d07f0e7f374d8679e00d74e7aa9460c841\", \"boolean value of sample_1_dist.data.equals(sample_1) is not correct\"\n", "\n", "print('Success!')" ] @@ -739,7 +739,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f542a8860d9fe9742b7cfaeed67ba532", + "checksum": "1bb1563d3751bc7da2f1f1fcdad463c6", "grade": true, "grade_id": "cell-021bf21e4a9b93ae", "locked": true, @@ -752,14 +752,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sample_1_estimates.shape[0])).encode(\"utf-8\")+b\"18530a80b6939d20\").hexdigest() == \"23520d0c58be26c3d99500c01eef20fe1f7d75ed\", \"type of sample_1_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_1_estimates.shape[0]).encode(\"utf-8\")+b\"18530a80b6939d20\").hexdigest() == \"9c43299c66d528525812e2856a7f368c73ae2ed4\", \"value of sample_1_estimates.shape[0] is not correct\"\n", + "assert sha1(str(type(sample_1_estimates.shape[0])).encode(\"utf-8\")+b\"1deb4bdf49f73175\").hexdigest() == \"fbd32e06a3eb2a1a8f5c334819c87072e362394e\", \"type of sample_1_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_1_estimates.shape[0]).encode(\"utf-8\")+b\"1deb4bdf49f73175\").hexdigest() == \"9112a0db2e6ff1a73ec705928337a3927a9a74e7\", \"value of sample_1_estimates.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(sample_1_estimates.shape[1])).encode(\"utf-8\")+b\"9fb5582c341f2012\").hexdigest() == \"5a4fdb1372e3473e405681b12fcad6e404c84e10\", \"type of sample_1_estimates.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_1_estimates.shape[1]).encode(\"utf-8\")+b\"9fb5582c341f2012\").hexdigest() == \"d8a08aa04913c22d4d8de339af261cd6d411ba57\", \"value of sample_1_estimates.shape[1] is not correct\"\n", + "assert sha1(str(type(sample_1_estimates.shape[1])).encode(\"utf-8\")+b\"ae201b3555d4e608\").hexdigest() == \"24dfb134a62652728d42c7cf69d964f740944ae1\", \"type of sample_1_estimates.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_1_estimates.shape[1]).encode(\"utf-8\")+b\"ae201b3555d4e608\").hexdigest() == \"fe7005249ac004c90e0e931c67886e1fa4e94d54\", \"value of sample_1_estimates.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(sample_1_estimates.columns.values)).encode(\"utf-8\")+b\"2f67406db32199b5\").hexdigest() == \"161ed5565cf3090d658dcdaf7e7d2aac14c14185\", \"type of sample_1_estimates.columns.values is not correct\"\n", - "assert sha1(str(sample_1_estimates.columns.values).encode(\"utf-8\")+b\"2f67406db32199b5\").hexdigest() == \"7648bc1ad80bbfde48be036f7e0e821bf6212481\", \"value of sample_1_estimates.columns.values is not correct\"\n", + "assert sha1(str(type(sample_1_estimates.columns.values)).encode(\"utf-8\")+b\"92e7fad6ced8bfb2\").hexdigest() == \"95ee68acf48824abc2aa9970d5c8cde0329a06a9\", \"type of sample_1_estimates.columns.values is not correct\"\n", + "assert sha1(str(sample_1_estimates.columns.values).encode(\"utf-8\")+b\"92e7fad6ced8bfb2\").hexdigest() == \"1a832e219846eea586ac831110919796bf401d13\", \"value of sample_1_estimates.columns.values is not correct\"\n", "\n", "print('Success!')" ] @@ -934,7 +934,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5de73ae43851e43be6db12ca0b6e0ab6", + "checksum": "33c55235bb2e2da28fa4ff24dfbd4ffd", "grade": true, "grade_id": "cell-d5cee0eb7c6aebc8", "locked": true, @@ -947,10 +947,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_7)).encode(\"utf-8\")+b\"100f106959fc503a\").hexdigest() == \"39d3e9693a12c8b439721fc41fb578dffd62cb51\", \"type of answer1_7 is not str. answer1_7 should be an str\"\n", - "assert sha1(str(len(answer1_7)).encode(\"utf-8\")+b\"100f106959fc503a\").hexdigest() == \"6c8ae1b915da6ede249ff73e720b401082abd7b5\", \"length of answer1_7 is not correct\"\n", - "assert sha1(str(answer1_7.lower()).encode(\"utf-8\")+b\"100f106959fc503a\").hexdigest() == \"39b58552840cc14e6cbf424887e9a35966540752\", \"value of answer1_7 is not correct\"\n", - "assert sha1(str(answer1_7).encode(\"utf-8\")+b\"100f106959fc503a\").hexdigest() == \"08f759a4cbae7466b0aeb96725513359bfb19827\", \"correct string value of answer1_7 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_7)).encode(\"utf-8\")+b\"0c44197a5b13d62b\").hexdigest() == \"3e5f42329289fadf8a5eff9bb12b1dfa64e6063b\", \"type of answer1_7 is not str. answer1_7 should be an str\"\n", + "assert sha1(str(len(answer1_7)).encode(\"utf-8\")+b\"0c44197a5b13d62b\").hexdigest() == \"8f936a89d040b0b7d016c459f54933404015a5e5\", \"length of answer1_7 is not correct\"\n", + "assert sha1(str(answer1_7.lower()).encode(\"utf-8\")+b\"0c44197a5b13d62b\").hexdigest() == \"cdc59cfdf512c7c2907d10ed0305a99c036451dc\", \"value of answer1_7 is not correct\"\n", + "assert sha1(str(answer1_7).encode(\"utf-8\")+b\"0c44197a5b13d62b\").hexdigest() == \"f53ba18bc101851724e0203e45079d4c1cfef0a4\", \"correct string value of answer1_7 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1034,7 +1034,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f51e248a46050681ce32bd44b093435d", + "checksum": "aee00518166cc14b285a125d72be1b14", "grade": true, "grade_id": "cell-87ae342a039c4eb0", "locked": true, @@ -1047,46 +1047,46 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sample_2.shape[0])).encode(\"utf-8\")+b\"61c626948827cc10\").hexdigest() == \"983259e8018e248246d75c59fae958c72d947fcd\", \"type of sample_2.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_2.shape[0]).encode(\"utf-8\")+b\"61c626948827cc10\").hexdigest() == \"1873ba99a3586caec42546e639067570d2b3354d\", \"value of sample_2.shape[0] is not correct\"\n", + "assert sha1(str(type(sample_2.shape[0])).encode(\"utf-8\")+b\"a891d245099ed1b0\").hexdigest() == \"faec8ea49c8081f91f5377ee79d8231f834e2698\", \"type of sample_2.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_2.shape[0]).encode(\"utf-8\")+b\"a891d245099ed1b0\").hexdigest() == \"19f467e9ae724423f0c1aa9a2e0d1b78a711f17d\", \"value of sample_2.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(sample_2.shape[1])).encode(\"utf-8\")+b\"1083a5f31eb3f112\").hexdigest() == \"f8bbafeb4576d24f4b6c3da81e5b35e9d846f488\", \"type of sample_2.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_2.shape[1]).encode(\"utf-8\")+b\"1083a5f31eb3f112\").hexdigest() == \"018242960aafcb9650af049ff78d7d5fd48acd05\", \"value of sample_2.shape[1] is not correct\"\n", + "assert sha1(str(type(sample_2.shape[1])).encode(\"utf-8\")+b\"11b790f602266020\").hexdigest() == \"2b65f31756a3d1243f6f5f31829b3b97e568ffdc\", \"type of sample_2.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_2.shape[1]).encode(\"utf-8\")+b\"11b790f602266020\").hexdigest() == \"f22bf902bcc92f679ba5493788c52d18d5a3aaba\", \"value of sample_2.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(sample_2.columns.values))).encode(\"utf-8\")+b\"70436ca1b257dda4\").hexdigest() == \"2187d9a54d26e4e071f46dc4f2791989f82ea5f5\", \"type of \\\"\\\".join(sample_2.columns.values) is not str. \\\"\\\".join(sample_2.columns.values) should be an str\"\n", - "assert sha1(str(len(\"\".join(sample_2.columns.values))).encode(\"utf-8\")+b\"70436ca1b257dda4\").hexdigest() == \"c78540ed75ea00a0fe9c557efd57b4525b448dc6\", \"length of \\\"\\\".join(sample_2.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(sample_2.columns.values).lower()).encode(\"utf-8\")+b\"70436ca1b257dda4\").hexdigest() == \"5a84d8817e5566e8bf8ee26235f8dfb75840333e\", \"value of \\\"\\\".join(sample_2.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(sample_2.columns.values)).encode(\"utf-8\")+b\"70436ca1b257dda4\").hexdigest() == \"5a84d8817e5566e8bf8ee26235f8dfb75840333e\", \"correct string value of \\\"\\\".join(sample_2.columns.values) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(sample_2.columns.values))).encode(\"utf-8\")+b\"5dac17a4c85d2401\").hexdigest() == \"cc4052fe95f788cd87c831deadbb587a4e4510c8\", \"type of \\\"\\\".join(sample_2.columns.values) is not str. \\\"\\\".join(sample_2.columns.values) should be an str\"\n", + "assert sha1(str(len(\"\".join(sample_2.columns.values))).encode(\"utf-8\")+b\"5dac17a4c85d2401\").hexdigest() == \"d4928866aa825aafb99715094ecaf5f4acf6cec5\", \"length of \\\"\\\".join(sample_2.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(sample_2.columns.values).lower()).encode(\"utf-8\")+b\"5dac17a4c85d2401\").hexdigest() == \"022ceebcdd34b36916b6d73baeaf032aaeaaa806\", \"value of \\\"\\\".join(sample_2.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(sample_2.columns.values)).encode(\"utf-8\")+b\"5dac17a4c85d2401\").hexdigest() == \"022ceebcdd34b36916b6d73baeaf032aaeaaa806\", \"correct string value of \\\"\\\".join(sample_2.columns.values) but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sample_2_estimates.shape[0])).encode(\"utf-8\")+b\"62b8e9e7b7700ed8\").hexdigest() == \"d875ddd412601cb7895cb40ee4899aca82e1dd2d\", \"type of sample_2_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_2_estimates.shape[0]).encode(\"utf-8\")+b\"62b8e9e7b7700ed8\").hexdigest() == \"656d5cad16e43c16811a49b0fb3e2200323f6787\", \"value of sample_2_estimates.shape[0] is not correct\"\n", + "assert sha1(str(type(sample_2_estimates.shape[0])).encode(\"utf-8\")+b\"002d8c8cf3158909\").hexdigest() == \"9d0f34b5815c1665fbd4c41a8ab005dea27df368\", \"type of sample_2_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_2_estimates.shape[0]).encode(\"utf-8\")+b\"002d8c8cf3158909\").hexdigest() == \"2460e28481bb401a909cf9a8a9ebb19e83b5789e\", \"value of sample_2_estimates.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(sample_2_estimates.shape[1])).encode(\"utf-8\")+b\"9fba718a83ea581b\").hexdigest() == \"916f2c7fe4bdcba1365e6e973caef741b1ff5c7b\", \"type of sample_2_estimates.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_2_estimates.shape[1]).encode(\"utf-8\")+b\"9fba718a83ea581b\").hexdigest() == \"9d424b047e52943cd342316911b6809306cce1df\", \"value of sample_2_estimates.shape[1] is not correct\"\n", + "assert sha1(str(type(sample_2_estimates.shape[1])).encode(\"utf-8\")+b\"c1261e386d0820e8\").hexdigest() == \"d98215c6d5772b9446ec97cda90040128aa468fa\", \"type of sample_2_estimates.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_2_estimates.shape[1]).encode(\"utf-8\")+b\"c1261e386d0820e8\").hexdigest() == \"6c31227b9c8f0ab67a020a41c57877f5b1985614\", \"value of sample_2_estimates.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(sample_2_estimates.columns.values)).encode(\"utf-8\")+b\"460be1723fec610d\").hexdigest() == \"b46b6af9d7db4ddbff315d369eebadb4a6550a3e\", \"type of sample_2_estimates.columns.values is not correct\"\n", - "assert sha1(str(sample_2_estimates.columns.values).encode(\"utf-8\")+b\"460be1723fec610d\").hexdigest() == \"cf81a88fc9daa45e99978a273fe527f4a512f61d\", \"value of sample_2_estimates.columns.values is not correct\"\n", + "assert sha1(str(type(sample_2_estimates.columns.values)).encode(\"utf-8\")+b\"89727e8dfe1916f2\").hexdigest() == \"209dc4926ad5fde53b905901809e2b38aa04fb10\", \"type of sample_2_estimates.columns.values is not correct\"\n", + "assert sha1(str(sample_2_estimates.columns.values).encode(\"utf-8\")+b\"89727e8dfe1916f2\").hexdigest() == \"240ebdf15463891a6bd4519928034a6e373e4462\", \"value of sample_2_estimates.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sample_2_dist.mark)).encode(\"utf-8\")+b\"74366074644ba9a1\").hexdigest() == \"6769e6b937067025d168bbca3d66abadd416bb2f\", \"type of sample_2_dist.mark is not str. sample_2_dist.mark should be an str\"\n", - "assert sha1(str(len(sample_2_dist.mark)).encode(\"utf-8\")+b\"74366074644ba9a1\").hexdigest() == \"4d538f4b5a83d4adee0de81a8f6b1418d3cb88d9\", \"length of sample_2_dist.mark is not correct\"\n", - "assert sha1(str(sample_2_dist.mark.lower()).encode(\"utf-8\")+b\"74366074644ba9a1\").hexdigest() == \"7976f1083797f0b96345f1d267cb3ea0b83a0253\", \"value of sample_2_dist.mark is not correct\"\n", - "assert sha1(str(sample_2_dist.mark).encode(\"utf-8\")+b\"74366074644ba9a1\").hexdigest() == \"7976f1083797f0b96345f1d267cb3ea0b83a0253\", \"correct string value of sample_2_dist.mark but incorrect case of letters\"\n", + "assert sha1(str(type(sample_2_dist.mark)).encode(\"utf-8\")+b\"53f821365bb733ce\").hexdigest() == \"0e63d6f1aacabaa03d6cf990c9b7d406e0fff298\", \"type of sample_2_dist.mark is not str. sample_2_dist.mark should be an str\"\n", + "assert sha1(str(len(sample_2_dist.mark)).encode(\"utf-8\")+b\"53f821365bb733ce\").hexdigest() == \"36aac1c2e6bf4d707e104b7719ba38f889ff388b\", \"length of sample_2_dist.mark is not correct\"\n", + "assert sha1(str(sample_2_dist.mark.lower()).encode(\"utf-8\")+b\"53f821365bb733ce\").hexdigest() == \"f72a75ec176c97c35e2e43859fa97fb5676a54ac\", \"value of sample_2_dist.mark is not correct\"\n", + "assert sha1(str(sample_2_dist.mark).encode(\"utf-8\")+b\"53f821365bb733ce\").hexdigest() == \"f72a75ec176c97c35e2e43859fa97fb5676a54ac\", \"correct string value of sample_2_dist.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sample_2_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f507f8849b7f62db\").hexdigest() == \"4ca93a52b88c5ffdbcbcef1c6cefecc7004e2ea2\", \"type of sample_2_dist.encoding.x['shorthand'] is not str. sample_2_dist.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(sample_2_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f507f8849b7f62db\").hexdigest() == \"33d4a03e21ca037f1d370ab6f31f45e2c20d7759\", \"length of sample_2_dist.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sample_2_dist.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"f507f8849b7f62db\").hexdigest() == \"b68b786531957beef75e912fd17f8ff089e4c9af\", \"value of sample_2_dist.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sample_2_dist.encoding.x['shorthand']).encode(\"utf-8\")+b\"f507f8849b7f62db\").hexdigest() == \"b68b786531957beef75e912fd17f8ff089e4c9af\", \"correct string value of sample_2_dist.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sample_2_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3807432e11ab8148\").hexdigest() == \"25fa2b9773a0559f9ba1be3c4ea0729dc4d45700\", \"type of sample_2_dist.encoding.x['shorthand'] is not str. sample_2_dist.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(sample_2_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3807432e11ab8148\").hexdigest() == \"a724176b068219c99feac03dd78b4bb031cbf233\", \"length of sample_2_dist.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sample_2_dist.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"3807432e11ab8148\").hexdigest() == \"dcc78f88819180f6bcbdad0e203e0d4c607880b8\", \"value of sample_2_dist.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sample_2_dist.encoding.x['shorthand']).encode(\"utf-8\")+b\"3807432e11ab8148\").hexdigest() == \"dcc78f88819180f6bcbdad0e203e0d4c607880b8\", \"correct string value of sample_2_dist.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sample_2_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"695e590a0b9273aa\").hexdigest() == \"f7339772fa2c37b0a11aa4a4a069204f15f352c2\", \"type of sample_2_dist.encoding.y['shorthand'] is not str. sample_2_dist.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(sample_2_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"695e590a0b9273aa\").hexdigest() == \"dfbae8ced2c426b8e23429508693656cf6619f02\", \"length of sample_2_dist.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sample_2_dist.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"695e590a0b9273aa\").hexdigest() == \"a9e3d5af50982ce3e81cf8a2bc9d564af89fb3ca\", \"value of sample_2_dist.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sample_2_dist.encoding.y['shorthand']).encode(\"utf-8\")+b\"695e590a0b9273aa\").hexdigest() == \"a9e3d5af50982ce3e81cf8a2bc9d564af89fb3ca\", \"correct string value of sample_2_dist.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sample_2_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"6e6d669989901da3\").hexdigest() == \"79dbfcb8bc8a4cda6d9c9c1070d1804a8a557934\", \"type of sample_2_dist.encoding.y['shorthand'] is not str. sample_2_dist.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(sample_2_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"6e6d669989901da3\").hexdigest() == \"fdf9fc6a861550d77e4f744adeda0dbf60bb6d1c\", \"length of sample_2_dist.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sample_2_dist.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"6e6d669989901da3\").hexdigest() == \"0eb7abef69ecdae34a846257105afbb0f3ab8fb7\", \"value of sample_2_dist.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sample_2_dist.encoding.y['shorthand']).encode(\"utf-8\")+b\"6e6d669989901da3\").hexdigest() == \"0eb7abef69ecdae34a846257105afbb0f3ab8fb7\", \"correct string value of sample_2_dist.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(sample_2_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"aa6cf34bff0ab22f\").hexdigest() == \"d658355b015a4592d5e99a16dea51fbf1f39c8ad\", \"type of isinstance(sample_2_dist.encoding.x['title'], str) is not bool. isinstance(sample_2_dist.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(sample_2_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"aa6cf34bff0ab22f\").hexdigest() == \"8be7970224727e40b58c08920b5f422046ab2970\", \"boolean value of isinstance(sample_2_dist.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(sample_2_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"93db8e626aafaa26\").hexdigest() == \"ab1e0bb009af12fd8730c3970aff0295c2c2042b\", \"type of isinstance(sample_2_dist.encoding.x['title'], str) is not bool. isinstance(sample_2_dist.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(sample_2_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"93db8e626aafaa26\").hexdigest() == \"ad3cd54d25040e24deca310ca5ce02b5de97f19d\", \"boolean value of isinstance(sample_2_dist.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(sample_2_dist.data.equals(sample_2))).encode(\"utf-8\")+b\"2a9f296654a118c1\").hexdigest() == \"d9e8df9ee67071a1f417590156782d6ed5b1da39\", \"type of sample_2_dist.data.equals(sample_2) is not bool. sample_2_dist.data.equals(sample_2) should be a bool\"\n", - "assert sha1(str(sample_2_dist.data.equals(sample_2)).encode(\"utf-8\")+b\"2a9f296654a118c1\").hexdigest() == \"50c73c088884c8ef6a175d30feccf6fdfbab794b\", \"boolean value of sample_2_dist.data.equals(sample_2) is not correct\"\n", + "assert sha1(str(type(sample_2_dist.data.equals(sample_2))).encode(\"utf-8\")+b\"0b318c5121361a47\").hexdigest() == \"dc4485a048654627c3e6208bca5f4e280a17a8cb\", \"type of sample_2_dist.data.equals(sample_2) is not bool. sample_2_dist.data.equals(sample_2) should be a bool\"\n", + "assert sha1(str(sample_2_dist.data.equals(sample_2)).encode(\"utf-8\")+b\"0b318c5121361a47\").hexdigest() == \"8b9314bc59a119218fb18ff0936b01ded3d0a2d1\", \"boolean value of sample_2_dist.data.equals(sample_2) is not correct\"\n", "\n", "print('Success!')" ] @@ -1152,7 +1152,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0e24d5951b91228d357e901813b63a6d", + "checksum": "528f57497f1f973d7d8ec1597beff107", "grade": true, "grade_id": "cell-00564a8c56afa5c2", "locked": true, @@ -1165,10 +1165,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_8_1)).encode(\"utf-8\")+b\"108f500e36b8474f\").hexdigest() == \"668b719bb47b16823e4dc67ebdde300d6eb1be6a\", \"type of answer1_8_1 is not str. answer1_8_1 should be an str\"\n", - "assert sha1(str(len(answer1_8_1)).encode(\"utf-8\")+b\"108f500e36b8474f\").hexdigest() == \"2cd3fa01cb073be8c47f63fe6af644bcb5907caa\", \"length of answer1_8_1 is not correct\"\n", - "assert sha1(str(answer1_8_1.lower()).encode(\"utf-8\")+b\"108f500e36b8474f\").hexdigest() == \"86867f73c4c0b04a38027067a1b2c03286a4fcb2\", \"value of answer1_8_1 is not correct\"\n", - "assert sha1(str(answer1_8_1).encode(\"utf-8\")+b\"108f500e36b8474f\").hexdigest() == \"5403e3f5ca18e9989602a86c255c89f951e18b3a\", \"correct string value of answer1_8_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_8_1)).encode(\"utf-8\")+b\"c0738a295a21d63d\").hexdigest() == \"9db93e6ab81ea06efc3c5d5ec6936c08218ec900\", \"type of answer1_8_1 is not str. answer1_8_1 should be an str\"\n", + "assert sha1(str(len(answer1_8_1)).encode(\"utf-8\")+b\"c0738a295a21d63d\").hexdigest() == \"27143576e400b2cf62e2f6783bf08b978bd3c416\", \"length of answer1_8_1 is not correct\"\n", + "assert sha1(str(answer1_8_1.lower()).encode(\"utf-8\")+b\"c0738a295a21d63d\").hexdigest() == \"d1b7b2d5551bc9ee52f9c9bb2b00b575cd1652fb\", \"value of answer1_8_1 is not correct\"\n", + "assert sha1(str(answer1_8_1).encode(\"utf-8\")+b\"c0738a295a21d63d\").hexdigest() == \"23cb30525eabe4b07ff421cc44d88902f0f93280\", \"correct string value of answer1_8_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1256,7 +1256,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6cc15630e5cd2e94a1f82a984985cb13", + "checksum": "f9ab9b7d73fb5ae9725aac9ea26c903f", "grade": true, "grade_id": "cell-c58c6bf8b51e07c5", "locked": true, @@ -1269,16 +1269,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(samples.shape[0])).encode(\"utf-8\")+b\"2f7aa3f55ac13549\").hexdigest() == \"89feffa3dfcc9d85fa452301c769ce9fe68a8fb3\", \"type of samples.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(samples.shape[0]).encode(\"utf-8\")+b\"2f7aa3f55ac13549\").hexdigest() == \"a7ecc64a15ccb03d8bec8c12fa343e84f7f67efb\", \"value of samples.shape[0] is not correct\"\n", + "assert sha1(str(type(samples.shape[0])).encode(\"utf-8\")+b\"59a681eb44740aa5\").hexdigest() == \"a60f7849f5b090a4f627ef363655de8d70f12465\", \"type of samples.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(samples.shape[0]).encode(\"utf-8\")+b\"59a681eb44740aa5\").hexdigest() == \"abd020941639d3fb9394cb72e6e98e0c494b1b3f\", \"value of samples.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(samples.shape[1])).encode(\"utf-8\")+b\"f01395ac112da0dd\").hexdigest() == \"a7201e6baa4603ff9735e32a80b07b0185da0638\", \"type of samples.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(samples.shape[1]).encode(\"utf-8\")+b\"f01395ac112da0dd\").hexdigest() == \"2eaf7f2b0a582de37fb4f2e85afa1b4fdd874255\", \"value of samples.shape[1] is not correct\"\n", + "assert sha1(str(type(samples.shape[1])).encode(\"utf-8\")+b\"e6361ea914d94cd6\").hexdigest() == \"e74faa6c1d812d8729a02864f79564b03bf2e8d7\", \"type of samples.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(samples.shape[1]).encode(\"utf-8\")+b\"e6361ea914d94cd6\").hexdigest() == \"502eefbbb70ae1f754f1c406eb2d76a0d38da498\", \"value of samples.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(samples.columns.values))).encode(\"utf-8\")+b\"8967b012f05434fc\").hexdigest() == \"3ff4679ce0ce5c29ea21d2c6ca56734db5fb4e5c\", \"type of \\\"\\\".join(samples.columns.values) is not str. \\\"\\\".join(samples.columns.values) should be an str\"\n", - "assert sha1(str(len(\"\".join(samples.columns.values))).encode(\"utf-8\")+b\"8967b012f05434fc\").hexdigest() == \"5093018435d135646a5e829a40aeed06934fc638\", \"length of \\\"\\\".join(samples.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(samples.columns.values).lower()).encode(\"utf-8\")+b\"8967b012f05434fc\").hexdigest() == \"4bf03da67486fc0444000fa40027f1872029959c\", \"value of \\\"\\\".join(samples.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(samples.columns.values)).encode(\"utf-8\")+b\"8967b012f05434fc\").hexdigest() == \"4bf03da67486fc0444000fa40027f1872029959c\", \"correct string value of \\\"\\\".join(samples.columns.values) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(samples.columns.values))).encode(\"utf-8\")+b\"e119024a846ddacb\").hexdigest() == \"ddd0a2542d6f840d8b9738f4a797db603d16dd4a\", \"type of \\\"\\\".join(samples.columns.values) is not str. \\\"\\\".join(samples.columns.values) should be an str\"\n", + "assert sha1(str(len(\"\".join(samples.columns.values))).encode(\"utf-8\")+b\"e119024a846ddacb\").hexdigest() == \"1df4104e6e148272ca2f23a1d2b52da14bc14a35\", \"length of \\\"\\\".join(samples.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(samples.columns.values).lower()).encode(\"utf-8\")+b\"e119024a846ddacb\").hexdigest() == \"2ed6aeaaa81fed87b57c5e01b5b7cce9b6004385\", \"value of \\\"\\\".join(samples.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(samples.columns.values)).encode(\"utf-8\")+b\"e119024a846ddacb\").hexdigest() == \"2ed6aeaaa81fed87b57c5e01b5b7cce9b6004385\", \"correct string value of \\\"\\\".join(samples.columns.values) but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1337,7 +1337,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "a3bb6deb6afde38317ef785b2d3ea50c", + "checksum": "014f5d07354e86f3c7bc5301d8e88c1c", "grade": true, "grade_id": "cell-009a8fb2b91b528c", "locked": true, @@ -1350,16 +1350,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sample_estimates.shape[0])).encode(\"utf-8\")+b\"a3fd52d533f1f5ed\").hexdigest() == \"637406481e95fa5357cb5c6eb603e289781f7621\", \"type of sample_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_estimates.shape[0]).encode(\"utf-8\")+b\"a3fd52d533f1f5ed\").hexdigest() == \"bb47f3683e022ce852f9ac531f4f557c8902c22d\", \"value of sample_estimates.shape[0] is not correct\"\n", + "assert sha1(str(type(sample_estimates.shape[0])).encode(\"utf-8\")+b\"b1bc056b9f18cfab\").hexdigest() == \"66696b5b2e16a37d6e3f2e6a8e05ecd5aebb757a\", \"type of sample_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_estimates.shape[0]).encode(\"utf-8\")+b\"b1bc056b9f18cfab\").hexdigest() == \"7f4ae68c745f2e5fed8246dbcb415c4294ca1811\", \"value of sample_estimates.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(sample_estimates.shape[1])).encode(\"utf-8\")+b\"621c824b72930fed\").hexdigest() == \"ab0ef161952012d4829e7206951911a99beb80e0\", \"type of sample_estimates.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sample_estimates.shape[1]).encode(\"utf-8\")+b\"621c824b72930fed\").hexdigest() == \"e2c057f1b5d63d20c8dbb28e28dbfcdd5f9132cd\", \"value of sample_estimates.shape[1] is not correct\"\n", + "assert sha1(str(type(sample_estimates.shape[1])).encode(\"utf-8\")+b\"aa581e6c8295aa35\").hexdigest() == \"dc6fbb522e4701cc41f57036c4fcc71b3c39d460\", \"type of sample_estimates.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sample_estimates.shape[1]).encode(\"utf-8\")+b\"aa581e6c8295aa35\").hexdigest() == \"3c863680548322b78233afd2aed7455447ae2432\", \"value of sample_estimates.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(sample_estimates.columns.values))).encode(\"utf-8\")+b\"44c0bf3a279bb8eb\").hexdigest() == \"441e974d37f8ebbd54c11330a16e920fd2e42064\", \"type of \\\"\\\".join(sample_estimates.columns.values) is not str. \\\"\\\".join(sample_estimates.columns.values) should be an str\"\n", - "assert sha1(str(len(\"\".join(sample_estimates.columns.values))).encode(\"utf-8\")+b\"44c0bf3a279bb8eb\").hexdigest() == \"02e9298e03d112fd5e34c70362be824eb27fe56d\", \"length of \\\"\\\".join(sample_estimates.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(sample_estimates.columns.values).lower()).encode(\"utf-8\")+b\"44c0bf3a279bb8eb\").hexdigest() == \"7d7566a5797b310e19ae01f98692c4c507bdd0f6\", \"value of \\\"\\\".join(sample_estimates.columns.values) is not correct\"\n", - "assert sha1(str(\"\".join(sample_estimates.columns.values)).encode(\"utf-8\")+b\"44c0bf3a279bb8eb\").hexdigest() == \"7d7566a5797b310e19ae01f98692c4c507bdd0f6\", \"correct string value of \\\"\\\".join(sample_estimates.columns.values) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(sample_estimates.columns.values))).encode(\"utf-8\")+b\"bdfee114ac80f765\").hexdigest() == \"d20abacb98c469f1d8550c05390b80e44e699efd\", \"type of \\\"\\\".join(sample_estimates.columns.values) is not str. \\\"\\\".join(sample_estimates.columns.values) should be an str\"\n", + "assert sha1(str(len(\"\".join(sample_estimates.columns.values))).encode(\"utf-8\")+b\"bdfee114ac80f765\").hexdigest() == \"9e1ce67b9fccfd66f69cd25ca66a5d1c015e251a\", \"length of \\\"\\\".join(sample_estimates.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(sample_estimates.columns.values).lower()).encode(\"utf-8\")+b\"bdfee114ac80f765\").hexdigest() == \"cb28948f4a98198bc1d3d01211c49e5ab5b09bf8\", \"value of \\\"\\\".join(sample_estimates.columns.values) is not correct\"\n", + "assert sha1(str(\"\".join(sample_estimates.columns.values)).encode(\"utf-8\")+b\"bdfee114ac80f765\").hexdigest() == \"cb28948f4a98198bc1d3d01211c49e5ab5b09bf8\", \"correct string value of \\\"\\\".join(sample_estimates.columns.values) but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1418,7 +1418,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "10e2cdb4a621476097ddc3b89b9f9225", + "checksum": "8501b79de2b3a7175ae429aa4e1f5ced", "grade": true, "grade_id": "cell-63a57e1040dc4a79", "locked": true, @@ -1431,26 +1431,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sampling_distribution.mark)).encode(\"utf-8\")+b\"e986f26426483a8a\").hexdigest() == \"afa7243645464fe63044860701773ef5d2e10b33\", \"type of sampling_distribution.mark is not str. sampling_distribution.mark should be an str\"\n", - "assert sha1(str(len(sampling_distribution.mark)).encode(\"utf-8\")+b\"e986f26426483a8a\").hexdigest() == \"93b96dfd6ae1e3c846bfd9a77d8b44b6473b843a\", \"length of sampling_distribution.mark is not correct\"\n", - "assert sha1(str(sampling_distribution.mark.lower()).encode(\"utf-8\")+b\"e986f26426483a8a\").hexdigest() == \"85726e2405e7925c18690f70666a71687cfce6d6\", \"value of sampling_distribution.mark is not correct\"\n", - "assert sha1(str(sampling_distribution.mark).encode(\"utf-8\")+b\"e986f26426483a8a\").hexdigest() == \"85726e2405e7925c18690f70666a71687cfce6d6\", \"correct string value of sampling_distribution.mark but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution.mark)).encode(\"utf-8\")+b\"f2f8487e4762ae6d\").hexdigest() == \"a115da924a326a46da2a2b6c4710752d45644033\", \"type of sampling_distribution.mark is not str. sampling_distribution.mark should be an str\"\n", + "assert sha1(str(len(sampling_distribution.mark)).encode(\"utf-8\")+b\"f2f8487e4762ae6d\").hexdigest() == \"3a38b53590a5d27c8f6efe384cafa20f7841e5ce\", \"length of sampling_distribution.mark is not correct\"\n", + "assert sha1(str(sampling_distribution.mark.lower()).encode(\"utf-8\")+b\"f2f8487e4762ae6d\").hexdigest() == \"6744f4e9235d3ee7c0306be58b9c7fc19b409ab8\", \"value of sampling_distribution.mark is not correct\"\n", + "assert sha1(str(sampling_distribution.mark).encode(\"utf-8\")+b\"f2f8487e4762ae6d\").hexdigest() == \"6744f4e9235d3ee7c0306be58b9c7fc19b409ab8\", \"correct string value of sampling_distribution.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"e4174740e7c7137c\").hexdigest() == \"8bdbfd8689257ac383730b52f3f1510ccee6e5e7\", \"type of sampling_distribution.encoding.x['shorthand'] is not str. sampling_distribution.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"e4174740e7c7137c\").hexdigest() == \"3f1204634aceb21d3dd99ffa48a98fa802d85747\", \"length of sampling_distribution.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"e4174740e7c7137c\").hexdigest() == \"0451de84d92f9bf6c1ed323dbd04efa31ad54a18\", \"value of sampling_distribution.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution.encoding.x['shorthand']).encode(\"utf-8\")+b\"e4174740e7c7137c\").hexdigest() == \"0451de84d92f9bf6c1ed323dbd04efa31ad54a18\", \"correct string value of sampling_distribution.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"8ee9986c89c8924e\").hexdigest() == \"2b74b59c728631311cf56e7394b7d966fedf0cc1\", \"type of sampling_distribution.encoding.x['shorthand'] is not str. sampling_distribution.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"8ee9986c89c8924e\").hexdigest() == \"96f6534e99898bd7acaf6b6b0a9c1012199663b8\", \"length of sampling_distribution.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"8ee9986c89c8924e\").hexdigest() == \"0f4de867ce24660bb34f8c62372a1f59238bd317\", \"value of sampling_distribution.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution.encoding.x['shorthand']).encode(\"utf-8\")+b\"8ee9986c89c8924e\").hexdigest() == \"0f4de867ce24660bb34f8c62372a1f59238bd317\", \"correct string value of sampling_distribution.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a2c97e85f783be9f\").hexdigest() == \"bfda58029b6eb26b9bcc51eb89e4d0a05afdc9c8\", \"type of sampling_distribution.encoding.y['shorthand'] is not str. sampling_distribution.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a2c97e85f783be9f\").hexdigest() == \"dc385320b02175312fe00a5f5a2617a89ddd5035\", \"length of sampling_distribution.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"a2c97e85f783be9f\").hexdigest() == \"68ed33dc863e3c71e1c874a6d671ae117490ce56\", \"value of sampling_distribution.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution.encoding.y['shorthand']).encode(\"utf-8\")+b\"a2c97e85f783be9f\").hexdigest() == \"68ed33dc863e3c71e1c874a6d671ae117490ce56\", \"correct string value of sampling_distribution.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"aa710a345329c8e4\").hexdigest() == \"44722bb8f0b6034e3105fd9c0128f075c125c69d\", \"type of sampling_distribution.encoding.y['shorthand'] is not str. sampling_distribution.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"aa710a345329c8e4\").hexdigest() == \"56b7d46b52f465141a3573e771b9cc9d2e9b2a3e\", \"length of sampling_distribution.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"aa710a345329c8e4\").hexdigest() == \"3fcd28905a92de255939c93eb0f4646e07646ef6\", \"value of sampling_distribution.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution.encoding.y['shorthand']).encode(\"utf-8\")+b\"aa710a345329c8e4\").hexdigest() == \"3fcd28905a92de255939c93eb0f4646e07646ef6\", \"correct string value of sampling_distribution.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(sampling_distribution.encoding.x['title'], str))).encode(\"utf-8\")+b\"b6524c993f79bf11\").hexdigest() == \"3bb7d2fce45eb0f33f512b7dac3d489f45e9accd\", \"type of isinstance(sampling_distribution.encoding.x['title'], str) is not bool. isinstance(sampling_distribution.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(sampling_distribution.encoding.x['title'], str)).encode(\"utf-8\")+b\"b6524c993f79bf11\").hexdigest() == \"034d179fd4bebf7944c079953643afa3142aef2e\", \"boolean value of isinstance(sampling_distribution.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(sampling_distribution.encoding.x['title'], str))).encode(\"utf-8\")+b\"35307c5692bbf015\").hexdigest() == \"c1b93deb44c04282a0a788657e129812e8e6da43\", \"type of isinstance(sampling_distribution.encoding.x['title'], str) is not bool. isinstance(sampling_distribution.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(sampling_distribution.encoding.x['title'], str)).encode(\"utf-8\")+b\"35307c5692bbf015\").hexdigest() == \"a90d916cdf4eeb0c8a083db4804e3088ebfa2ea7\", \"boolean value of isinstance(sampling_distribution.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(sampling_distribution.data.equals(sample_estimates))).encode(\"utf-8\")+b\"406860229a53c8ad\").hexdigest() == \"dca00a024ab5cdb0f75be221545cadc77daa0eda\", \"type of sampling_distribution.data.equals(sample_estimates) is not bool. sampling_distribution.data.equals(sample_estimates) should be a bool\"\n", - "assert sha1(str(sampling_distribution.data.equals(sample_estimates)).encode(\"utf-8\")+b\"406860229a53c8ad\").hexdigest() == \"85b2c34eb1d46ed9bc5879fa34300c11b54d610d\", \"boolean value of sampling_distribution.data.equals(sample_estimates) is not correct\"\n", + "assert sha1(str(type(sampling_distribution.data.equals(sample_estimates))).encode(\"utf-8\")+b\"93fb04fd0c377f10\").hexdigest() == \"a814d48224fe3517d9e660f8d8cbf66ecc0a22da\", \"type of sampling_distribution.data.equals(sample_estimates) is not bool. sampling_distribution.data.equals(sample_estimates) should be a bool\"\n", + "assert sha1(str(sampling_distribution.data.equals(sample_estimates)).encode(\"utf-8\")+b\"93fb04fd0c377f10\").hexdigest() == \"0538b460420741b0839482e9378ecd1e1d836aa2\", \"boolean value of sampling_distribution.data.equals(sample_estimates) is not correct\"\n", "\n", "print('Success!')" ] @@ -1509,7 +1509,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bd8269340a4d6d48b36d0e4853d5dc0c", + "checksum": "cd8e08c8cad92c1edcd607359993b4f9", "grade": true, "grade_id": "cell-859e93c62242915f", "locked": true, @@ -1522,8 +1522,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(round(answer2_2, 1))).encode(\"utf-8\")+b\"ae0b710c822b3b1a\").hexdigest() == \"d0e4588043bccf405ce6db26cef3beef1afeb425\", \"type of round(answer2_2, 1) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(answer2_2, 1), 2)).encode(\"utf-8\")+b\"ae0b710c822b3b1a\").hexdigest() == \"ba317ed5adac77710a99b4b0914a539ddf545f23\", \"value of round(answer2_2, 1) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(answer2_2, 1))).encode(\"utf-8\")+b\"48f395892d4cdd7b\").hexdigest() == \"45172be4b4dcf521ff15e363144ed3414dd83edc\", \"type of round(answer2_2, 1) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(answer2_2, 1), 2)).encode(\"utf-8\")+b\"48f395892d4cdd7b\").hexdigest() == \"94b5e3b78baedee15495919cbf0e2a20a747ccf0\", \"value of round(answer2_2, 1) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1592,7 +1592,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4953dcd24c5152f417271580e7efc8a4", + "checksum": "afdbd2675401ce949d5159bb3952e5d2", "grade": true, "grade_id": "cell-d79f9703b99565f3", "locked": true, @@ -1605,10 +1605,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"cbae7083dda1212b\").hexdigest() == \"df6cd51904f25083be36c788c44f112f215e5256\", \"type of answer2_3 is not str. answer2_3 should be an str\"\n", - "assert sha1(str(len(answer2_3)).encode(\"utf-8\")+b\"cbae7083dda1212b\").hexdigest() == \"33f733a97f11ab04086d1d6de4669572ea02f7ea\", \"length of answer2_3 is not correct\"\n", - "assert sha1(str(answer2_3.lower()).encode(\"utf-8\")+b\"cbae7083dda1212b\").hexdigest() == \"a7cc8efde67803db27e35366b0aba4c1ee74b920\", \"value of answer2_3 is not correct\"\n", - "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"cbae7083dda1212b\").hexdigest() == \"831e979b2517f302799070042321efa395e37497\", \"correct string value of answer2_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"872f070c85b795ac\").hexdigest() == \"48a16f89913d286c4f5aaccbc5682d2cc24fd0e6\", \"type of answer2_3 is not str. answer2_3 should be an str\"\n", + "assert sha1(str(len(answer2_3)).encode(\"utf-8\")+b\"872f070c85b795ac\").hexdigest() == \"03e1560c1253cd881cf2e628c992a511781f53a1\", \"length of answer2_3 is not correct\"\n", + "assert sha1(str(answer2_3.lower()).encode(\"utf-8\")+b\"872f070c85b795ac\").hexdigest() == \"b5cabc97c47f98eab9d18dc005b049c9763f213c\", \"value of answer2_3 is not correct\"\n", + "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"872f070c85b795ac\").hexdigest() == \"a7723193c8b1f0ad82aba2c26e6c69714ee4e046\", \"correct string value of answer2_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1669,7 +1669,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "50f59676307535fe3b605729e9664835", + "checksum": "91faa9ce62fe0e8804ab7a9b0a0ae3e0", "grade": true, "grade_id": "cell-83c05f5c808126c1", "locked": true, @@ -1682,8 +1682,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_4)).encode(\"utf-8\")+b\"3a5f3d03c57c6e90\").hexdigest() == \"3c81792a3258afce19821f920749eae8bcfe5080\", \"type of answer2_4 is not bool. answer2_4 should be a bool\"\n", - "assert sha1(str(answer2_4).encode(\"utf-8\")+b\"3a5f3d03c57c6e90\").hexdigest() == \"49c9a32f27dbf95ae87775ae6d2675d0595c09ee\", \"boolean value of answer2_4 is not correct\"\n", + "assert sha1(str(type(answer2_4)).encode(\"utf-8\")+b\"2e30d2101adabff0\").hexdigest() == \"062d56e96de6195e29e1ff6addef3d4fdb356683\", \"type of answer2_4 is not bool. answer2_4 should be a bool\"\n", + "assert sha1(str(answer2_4).encode(\"utf-8\")+b\"2e30d2101adabff0\").hexdigest() == \"d76d380715bff7f93823b92a535ade479fbd0734\", \"boolean value of answer2_4 is not correct\"\n", "\n", "print('Success!')" ] @@ -1768,7 +1768,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b577ec77ff656f8230f21559b7999190", + "checksum": "2b8e637c08f13f4298392485f7ec8daa", "grade": true, "grade_id": "cell-fae3123c38b31ad8", "locked": true, @@ -1781,26 +1781,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sampling_distribution_20.mark)).encode(\"utf-8\")+b\"e3ce8622af5b4b78\").hexdigest() == \"bdfac2c65c691a0d703208585cc1ab6ccb0481f9\", \"type of sampling_distribution_20.mark is not str. sampling_distribution_20.mark should be an str\"\n", - "assert sha1(str(len(sampling_distribution_20.mark)).encode(\"utf-8\")+b\"e3ce8622af5b4b78\").hexdigest() == \"ecb6ea754978297b62cd330fc71ff041f8c492dc\", \"length of sampling_distribution_20.mark is not correct\"\n", - "assert sha1(str(sampling_distribution_20.mark.lower()).encode(\"utf-8\")+b\"e3ce8622af5b4b78\").hexdigest() == \"c05c721d2c64f08dec61bcedf8402497986440e1\", \"value of sampling_distribution_20.mark is not correct\"\n", - "assert sha1(str(sampling_distribution_20.mark).encode(\"utf-8\")+b\"e3ce8622af5b4b78\").hexdigest() == \"c05c721d2c64f08dec61bcedf8402497986440e1\", \"correct string value of sampling_distribution_20.mark but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_20.mark)).encode(\"utf-8\")+b\"61357c5fe90abcd6\").hexdigest() == \"d3c5a7231b27b6362187b568c7d81fe950e0f020\", \"type of sampling_distribution_20.mark is not str. sampling_distribution_20.mark should be an str\"\n", + "assert sha1(str(len(sampling_distribution_20.mark)).encode(\"utf-8\")+b\"61357c5fe90abcd6\").hexdigest() == \"3842ea55848df0270dd0f5010afdbabe02987cae\", \"length of sampling_distribution_20.mark is not correct\"\n", + "assert sha1(str(sampling_distribution_20.mark.lower()).encode(\"utf-8\")+b\"61357c5fe90abcd6\").hexdigest() == \"d332c6e5402a761922a0e766ba216987604c7e3f\", \"value of sampling_distribution_20.mark is not correct\"\n", + "assert sha1(str(sampling_distribution_20.mark).encode(\"utf-8\")+b\"61357c5fe90abcd6\").hexdigest() == \"d332c6e5402a761922a0e766ba216987604c7e3f\", \"correct string value of sampling_distribution_20.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution_20.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3575e0d40cbb46b7\").hexdigest() == \"5d9b1293748efa76e44ac543a6860a6ff1d98ec4\", \"type of sampling_distribution_20.encoding.x['shorthand'] is not str. sampling_distribution_20.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_20.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3575e0d40cbb46b7\").hexdigest() == \"bac333b20ba84a29b6d42a411f8eff01f0d8c36e\", \"length of sampling_distribution_20.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_20.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"3575e0d40cbb46b7\").hexdigest() == \"164003895ed5f7e83afdce3cd99dd1c3e318daa6\", \"value of sampling_distribution_20.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_20.encoding.x['shorthand']).encode(\"utf-8\")+b\"3575e0d40cbb46b7\").hexdigest() == \"164003895ed5f7e83afdce3cd99dd1c3e318daa6\", \"correct string value of sampling_distribution_20.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_20.encoding.x['shorthand'])).encode(\"utf-8\")+b\"06a520850b92f529\").hexdigest() == \"f43516b2038f69d87b11ce311cbecc948c050258\", \"type of sampling_distribution_20.encoding.x['shorthand'] is not str. sampling_distribution_20.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_20.encoding.x['shorthand'])).encode(\"utf-8\")+b\"06a520850b92f529\").hexdigest() == \"c2b844d3ba02ce0d2145931346f90c2aa5c24e61\", \"length of sampling_distribution_20.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_20.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"06a520850b92f529\").hexdigest() == \"43d7c34f1d66c6f67a6e9ad8e058cb1ee14f63ed\", \"value of sampling_distribution_20.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_20.encoding.x['shorthand']).encode(\"utf-8\")+b\"06a520850b92f529\").hexdigest() == \"43d7c34f1d66c6f67a6e9ad8e058cb1ee14f63ed\", \"correct string value of sampling_distribution_20.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution_20.encoding.y['shorthand'])).encode(\"utf-8\")+b\"02692cad007ecf85\").hexdigest() == \"bdab3e9514725cf30fe87a5264f8e211cb302826\", \"type of sampling_distribution_20.encoding.y['shorthand'] is not str. sampling_distribution_20.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_20.encoding.y['shorthand'])).encode(\"utf-8\")+b\"02692cad007ecf85\").hexdigest() == \"86aea928b2d40b1128fa519963863f7aad5dc48e\", \"length of sampling_distribution_20.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_20.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"02692cad007ecf85\").hexdigest() == \"6dfa7437402bc1e5757f0648b039235f1c4247ae\", \"value of sampling_distribution_20.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_20.encoding.y['shorthand']).encode(\"utf-8\")+b\"02692cad007ecf85\").hexdigest() == \"6dfa7437402bc1e5757f0648b039235f1c4247ae\", \"correct string value of sampling_distribution_20.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_20.encoding.y['shorthand'])).encode(\"utf-8\")+b\"aadf2ee561b75f49\").hexdigest() == \"68aaeb6c7904b6d71474e473d2de71519e735e76\", \"type of sampling_distribution_20.encoding.y['shorthand'] is not str. sampling_distribution_20.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_20.encoding.y['shorthand'])).encode(\"utf-8\")+b\"aadf2ee561b75f49\").hexdigest() == \"b764d56320aef40185662ec974b3071d288dd846\", \"length of sampling_distribution_20.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_20.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"aadf2ee561b75f49\").hexdigest() == \"44f096eb38334f75b5be04be10fd4ee11a21cd34\", \"value of sampling_distribution_20.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_20.encoding.y['shorthand']).encode(\"utf-8\")+b\"aadf2ee561b75f49\").hexdigest() == \"44f096eb38334f75b5be04be10fd4ee11a21cd34\", \"correct string value of sampling_distribution_20.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(sampling_distribution_20.encoding.x['title'], str))).encode(\"utf-8\")+b\"cf0ea6ed7ca7d24e\").hexdigest() == \"5e2d130594a180f9c3a835a0aa2a6b8fc6465149\", \"type of isinstance(sampling_distribution_20.encoding.x['title'], str) is not bool. isinstance(sampling_distribution_20.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(sampling_distribution_20.encoding.x['title'], str)).encode(\"utf-8\")+b\"cf0ea6ed7ca7d24e\").hexdigest() == \"3b5fe83ef51a2edce8eb2f5e4083304b70a25f7c\", \"boolean value of isinstance(sampling_distribution_20.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(sampling_distribution_20.encoding.x['title'], str))).encode(\"utf-8\")+b\"2ba430fcbd840054\").hexdigest() == \"9d00748615af8c6f18476966d2c866bc6792ed8c\", \"type of isinstance(sampling_distribution_20.encoding.x['title'], str) is not bool. isinstance(sampling_distribution_20.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(sampling_distribution_20.encoding.x['title'], str)).encode(\"utf-8\")+b\"2ba430fcbd840054\").hexdigest() == \"5fffc99b73e1c7fd9e94b3f2f93a9c9b2808d73c\", \"boolean value of isinstance(sampling_distribution_20.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(sampling_distribution_20.data.equals(sample_estimates_20))).encode(\"utf-8\")+b\"7260c2515c7f0552\").hexdigest() == \"045fd0a5f024aa2b5a8893efbb33e43795fa11a3\", \"type of sampling_distribution_20.data.equals(sample_estimates_20) is not bool. sampling_distribution_20.data.equals(sample_estimates_20) should be a bool\"\n", - "assert sha1(str(sampling_distribution_20.data.equals(sample_estimates_20)).encode(\"utf-8\")+b\"7260c2515c7f0552\").hexdigest() == \"ecd3b0c20375d26c1250f1c1111d7f8b666302a3\", \"boolean value of sampling_distribution_20.data.equals(sample_estimates_20) is not correct\"\n", + "assert sha1(str(type(sampling_distribution_20.data.equals(sample_estimates_20))).encode(\"utf-8\")+b\"9904605f29bc7e8b\").hexdigest() == \"9607730a5774673d7a371968909f64d688d2c122\", \"type of sampling_distribution_20.data.equals(sample_estimates_20) is not bool. sampling_distribution_20.data.equals(sample_estimates_20) should be a bool\"\n", + "assert sha1(str(sampling_distribution_20.data.equals(sample_estimates_20)).encode(\"utf-8\")+b\"9904605f29bc7e8b\").hexdigest() == \"1e43b48d916ae87d6644e113169fbb748061e5cb\", \"boolean value of sampling_distribution_20.data.equals(sample_estimates_20) is not correct\"\n", "\n", "print('Success!')" ] @@ -1863,7 +1863,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f595dcf7cfbe3a80a445f336b9ffa9e9", + "checksum": "17ecaf76186aaede3009bd0581070b67", "grade": true, "grade_id": "cell-5cc24d62254b5bc5", "locked": true, @@ -1876,26 +1876,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sampling_distribution_100.mark)).encode(\"utf-8\")+b\"f573431c06f9ba73\").hexdigest() == \"7ea4c902b638fc5bea017a7ca96a5e49cc9d03f1\", \"type of sampling_distribution_100.mark is not str. sampling_distribution_100.mark should be an str\"\n", - "assert sha1(str(len(sampling_distribution_100.mark)).encode(\"utf-8\")+b\"f573431c06f9ba73\").hexdigest() == \"391ed250109af2cfb629a95fdb9b6bed82e170c1\", \"length of sampling_distribution_100.mark is not correct\"\n", - "assert sha1(str(sampling_distribution_100.mark.lower()).encode(\"utf-8\")+b\"f573431c06f9ba73\").hexdigest() == \"fbaaa405356a418f69079dbec21c9c247e51e00b\", \"value of sampling_distribution_100.mark is not correct\"\n", - "assert sha1(str(sampling_distribution_100.mark).encode(\"utf-8\")+b\"f573431c06f9ba73\").hexdigest() == \"fbaaa405356a418f69079dbec21c9c247e51e00b\", \"correct string value of sampling_distribution_100.mark but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_100.mark)).encode(\"utf-8\")+b\"0eab918807e6b019\").hexdigest() == \"6f1bbc03b4b74b555ee44ba88616ce8b027a7391\", \"type of sampling_distribution_100.mark is not str. sampling_distribution_100.mark should be an str\"\n", + "assert sha1(str(len(sampling_distribution_100.mark)).encode(\"utf-8\")+b\"0eab918807e6b019\").hexdigest() == \"dde8d5cf126cc3dcdf15d95ed6c376b5d597e355\", \"length of sampling_distribution_100.mark is not correct\"\n", + "assert sha1(str(sampling_distribution_100.mark.lower()).encode(\"utf-8\")+b\"0eab918807e6b019\").hexdigest() == \"a873e1d6f4c6688a003177a573b602e373d30c1d\", \"value of sampling_distribution_100.mark is not correct\"\n", + "assert sha1(str(sampling_distribution_100.mark).encode(\"utf-8\")+b\"0eab918807e6b019\").hexdigest() == \"a873e1d6f4c6688a003177a573b602e373d30c1d\", \"correct string value of sampling_distribution_100.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution_100.encoding.x['shorthand'])).encode(\"utf-8\")+b\"2a276c97ffbb015c\").hexdigest() == \"8117c2df6dc7b233c5c4722450e0613e1b1cd531\", \"type of sampling_distribution_100.encoding.x['shorthand'] is not str. sampling_distribution_100.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_100.encoding.x['shorthand'])).encode(\"utf-8\")+b\"2a276c97ffbb015c\").hexdigest() == \"21380ac8dd02644d31e0423322b563895b195408\", \"length of sampling_distribution_100.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_100.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"2a276c97ffbb015c\").hexdigest() == \"a0d1897b07ec7a0cc8f71a37cd5b05ccf6ae5487\", \"value of sampling_distribution_100.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_100.encoding.x['shorthand']).encode(\"utf-8\")+b\"2a276c97ffbb015c\").hexdigest() == \"a0d1897b07ec7a0cc8f71a37cd5b05ccf6ae5487\", \"correct string value of sampling_distribution_100.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_100.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ab01681cdd177107\").hexdigest() == \"7a8f7ed83b8d8d8edd03c4da3e387787b2335cf6\", \"type of sampling_distribution_100.encoding.x['shorthand'] is not str. sampling_distribution_100.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_100.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ab01681cdd177107\").hexdigest() == \"b441556b43f4ae9b06e026668e720ebe96972bc4\", \"length of sampling_distribution_100.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_100.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"ab01681cdd177107\").hexdigest() == \"e13fd83eb36030a498e72d0d1ec0df3f0d908242\", \"value of sampling_distribution_100.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_100.encoding.x['shorthand']).encode(\"utf-8\")+b\"ab01681cdd177107\").hexdigest() == \"e13fd83eb36030a498e72d0d1ec0df3f0d908242\", \"correct string value of sampling_distribution_100.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution_100.encoding.y['shorthand'])).encode(\"utf-8\")+b\"7d1dfafca7927504\").hexdigest() == \"66ff0cfe0c049622054f62f45a380b400105a7a0\", \"type of sampling_distribution_100.encoding.y['shorthand'] is not str. sampling_distribution_100.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_100.encoding.y['shorthand'])).encode(\"utf-8\")+b\"7d1dfafca7927504\").hexdigest() == \"f09457b502d28097b859c79c154d228b2237aed5\", \"length of sampling_distribution_100.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_100.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"7d1dfafca7927504\").hexdigest() == \"cc04abf9fda10a4b64788f5039e2d0d665d48c78\", \"value of sampling_distribution_100.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(sampling_distribution_100.encoding.y['shorthand']).encode(\"utf-8\")+b\"7d1dfafca7927504\").hexdigest() == \"cc04abf9fda10a4b64788f5039e2d0d665d48c78\", \"correct string value of sampling_distribution_100.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_100.encoding.y['shorthand'])).encode(\"utf-8\")+b\"6ed742334d286f4b\").hexdigest() == \"0f9405393ea45355bcc40eef1356e4cd8091f53b\", \"type of sampling_distribution_100.encoding.y['shorthand'] is not str. sampling_distribution_100.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_100.encoding.y['shorthand'])).encode(\"utf-8\")+b\"6ed742334d286f4b\").hexdigest() == \"107a3fd95c2c27c47bd016a5b0b6572c20c3517c\", \"length of sampling_distribution_100.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_100.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"6ed742334d286f4b\").hexdigest() == \"ed07483718d25ea5072ad149230f96e8bea9f8d2\", \"value of sampling_distribution_100.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(sampling_distribution_100.encoding.y['shorthand']).encode(\"utf-8\")+b\"6ed742334d286f4b\").hexdigest() == \"ed07483718d25ea5072ad149230f96e8bea9f8d2\", \"correct string value of sampling_distribution_100.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(sampling_distribution_100.encoding.x['title'], str))).encode(\"utf-8\")+b\"bf26059a096eddda\").hexdigest() == \"2ed24ec72f3db9f08946b708d97884cfe6758fc7\", \"type of isinstance(sampling_distribution_100.encoding.x['title'], str) is not bool. isinstance(sampling_distribution_100.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(sampling_distribution_100.encoding.x['title'], str)).encode(\"utf-8\")+b\"bf26059a096eddda\").hexdigest() == \"5d824c3f2abe591d32c86cb05ea3ca5f3832e0e7\", \"boolean value of isinstance(sampling_distribution_100.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(sampling_distribution_100.encoding.x['title'], str))).encode(\"utf-8\")+b\"4e50c8be530a5d54\").hexdigest() == \"f4dfac08e0aadec501b6b9d87e8ae8db74dfa3ba\", \"type of isinstance(sampling_distribution_100.encoding.x['title'], str) is not bool. isinstance(sampling_distribution_100.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(sampling_distribution_100.encoding.x['title'], str)).encode(\"utf-8\")+b\"4e50c8be530a5d54\").hexdigest() == \"0ad7b470ed101aa7f8dc39cd0a841d373a9a5657\", \"boolean value of isinstance(sampling_distribution_100.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(sampling_distribution_100.data.equals(sample_estimates_100))).encode(\"utf-8\")+b\"a35eac987e6f6413\").hexdigest() == \"95be3e7798fe0d22b9773b1bb2b4ac7ef8ace15b\", \"type of sampling_distribution_100.data.equals(sample_estimates_100) is not bool. sampling_distribution_100.data.equals(sample_estimates_100) should be a bool\"\n", - "assert sha1(str(sampling_distribution_100.data.equals(sample_estimates_100)).encode(\"utf-8\")+b\"a35eac987e6f6413\").hexdigest() == \"5f0719f23bc1e373438538330be7a190eea19e84\", \"boolean value of sampling_distribution_100.data.equals(sample_estimates_100) is not correct\"\n", + "assert sha1(str(type(sampling_distribution_100.data.equals(sample_estimates_100))).encode(\"utf-8\")+b\"e0eb8c597e49b73d\").hexdigest() == \"a912eb03dc1343ac4900a47173a5f032bab30f3b\", \"type of sampling_distribution_100.data.equals(sample_estimates_100) is not bool. sampling_distribution_100.data.equals(sample_estimates_100) should be a bool\"\n", + "assert sha1(str(sampling_distribution_100.data.equals(sample_estimates_100)).encode(\"utf-8\")+b\"e0eb8c597e49b73d\").hexdigest() == \"a9456290d8299566a8aae53e08c00864c9ff30a0\", \"boolean value of sampling_distribution_100.data.equals(sample_estimates_100) is not correct\"\n", "\n", "print('Success!')" ] @@ -1970,7 +1970,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e0870d6cff08378452e934d8b02853b2", + "checksum": "fa334b5cb2214cebdfdcd1ad1f3abe72", "grade": true, "grade_id": "cell-ed03c64897c5640f", "locked": true, @@ -1983,25 +1983,25 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(sampling_distribution_panel)).encode(\"utf-8\")+b\"66f8edd435d18e15\").hexdigest() == \"342da6f37aa61bec15ad23307f35a7027fe6e578\", \"type of type(sampling_distribution_panel) is not correct\"\n", + "assert sha1(str(type(sampling_distribution_panel)).encode(\"utf-8\")+b\"e881778058ea90fe\").hexdigest() == \"3d89e441e82beb49c64b2a998b1d746dd630565d\", \"type of type(sampling_distribution_panel) is not correct\"\n", "\n", - "assert sha1(str(type(sampling_distribution_panel.vconcat[0]['title'])).encode(\"utf-8\")+b\"384a4601145c0654\").hexdigest() == \"151d306cd9b9b7413d5d50d3681cfdb53a5ca825\", \"type of sampling_distribution_panel.vconcat[0]['title'] is not str. sampling_distribution_panel.vconcat[0]['title'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_panel.vconcat[0]['title'])).encode(\"utf-8\")+b\"384a4601145c0654\").hexdigest() == \"b3e5096809de18365c30df71a4d355b3787a3414\", \"length of sampling_distribution_panel.vconcat[0]['title'] is not correct\"\n", - "assert sha1(str(sampling_distribution_panel.vconcat[0]['title'].lower()).encode(\"utf-8\")+b\"384a4601145c0654\").hexdigest() == \"43821e7a4850173cbd0416287e4eced9c9b1441f\", \"value of sampling_distribution_panel.vconcat[0]['title'] is not correct\"\n", - "assert sha1(str(sampling_distribution_panel.vconcat[0]['title']).encode(\"utf-8\")+b\"384a4601145c0654\").hexdigest() == \"43821e7a4850173cbd0416287e4eced9c9b1441f\", \"correct string value of sampling_distribution_panel.vconcat[0]['title'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_panel.vconcat[0]['title'])).encode(\"utf-8\")+b\"e0e69539b2d070fc\").hexdigest() == \"2837a80d44f5756db9e587ff50d80017808605d0\", \"type of sampling_distribution_panel.vconcat[0]['title'] is not str. sampling_distribution_panel.vconcat[0]['title'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_panel.vconcat[0]['title'])).encode(\"utf-8\")+b\"e0e69539b2d070fc\").hexdigest() == \"ca64a14ff67e12d4327d7ce73eba9cbf169ab454\", \"length of sampling_distribution_panel.vconcat[0]['title'] is not correct\"\n", + "assert sha1(str(sampling_distribution_panel.vconcat[0]['title'].lower()).encode(\"utf-8\")+b\"e0e69539b2d070fc\").hexdigest() == \"6268b68e9625a6cc3eb58069724fa2d1a394218a\", \"value of sampling_distribution_panel.vconcat[0]['title'] is not correct\"\n", + "assert sha1(str(sampling_distribution_panel.vconcat[0]['title']).encode(\"utf-8\")+b\"e0e69539b2d070fc\").hexdigest() == \"6268b68e9625a6cc3eb58069724fa2d1a394218a\", \"correct string value of sampling_distribution_panel.vconcat[0]['title'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution_panel.vconcat[1]['title'])).encode(\"utf-8\")+b\"a263c9ea1bfd7363\").hexdigest() == \"ac69f47748c090ae0c00b59240027cdf7186f917\", \"type of sampling_distribution_panel.vconcat[1]['title'] is not str. sampling_distribution_panel.vconcat[1]['title'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_panel.vconcat[1]['title'])).encode(\"utf-8\")+b\"a263c9ea1bfd7363\").hexdigest() == \"c9cfa4333866a9a8422c6e7f6f4acee1675df0bf\", \"length of sampling_distribution_panel.vconcat[1]['title'] is not correct\"\n", - "assert sha1(str(sampling_distribution_panel.vconcat[1]['title'].lower()).encode(\"utf-8\")+b\"a263c9ea1bfd7363\").hexdigest() == \"8f52c83de35b7a8e78903786350d13a1132dbfb2\", \"value of sampling_distribution_panel.vconcat[1]['title'] is not correct\"\n", - "assert sha1(str(sampling_distribution_panel.vconcat[1]['title']).encode(\"utf-8\")+b\"a263c9ea1bfd7363\").hexdigest() == \"8f52c83de35b7a8e78903786350d13a1132dbfb2\", \"correct string value of sampling_distribution_panel.vconcat[1]['title'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_panel.vconcat[1]['title'])).encode(\"utf-8\")+b\"cc9b0fe7a118affb\").hexdigest() == \"4b82994c572004a3bba869de6ed5573a4d217875\", \"type of sampling_distribution_panel.vconcat[1]['title'] is not str. sampling_distribution_panel.vconcat[1]['title'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_panel.vconcat[1]['title'])).encode(\"utf-8\")+b\"cc9b0fe7a118affb\").hexdigest() == \"aa2f69c54adb820503e60b261d3e546a261a670a\", \"length of sampling_distribution_panel.vconcat[1]['title'] is not correct\"\n", + "assert sha1(str(sampling_distribution_panel.vconcat[1]['title'].lower()).encode(\"utf-8\")+b\"cc9b0fe7a118affb\").hexdigest() == \"c9d181dbd75002533cbef095b381ae2ac2053cbd\", \"value of sampling_distribution_panel.vconcat[1]['title'] is not correct\"\n", + "assert sha1(str(sampling_distribution_panel.vconcat[1]['title']).encode(\"utf-8\")+b\"cc9b0fe7a118affb\").hexdigest() == \"c9d181dbd75002533cbef095b381ae2ac2053cbd\", \"correct string value of sampling_distribution_panel.vconcat[1]['title'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(sampling_distribution_panel.vconcat[2]['title'])).encode(\"utf-8\")+b\"5647cddb0bb68fa4\").hexdigest() == \"5de40f177ee699be880544f26aa417198ced8536\", \"type of sampling_distribution_panel.vconcat[2]['title'] is not str. sampling_distribution_panel.vconcat[2]['title'] should be an str\"\n", - "assert sha1(str(len(sampling_distribution_panel.vconcat[2]['title'])).encode(\"utf-8\")+b\"5647cddb0bb68fa4\").hexdigest() == \"82b080363ff9ded98e08e93cb750c0adc946afbc\", \"length of sampling_distribution_panel.vconcat[2]['title'] is not correct\"\n", - "assert sha1(str(sampling_distribution_panel.vconcat[2]['title'].lower()).encode(\"utf-8\")+b\"5647cddb0bb68fa4\").hexdigest() == \"9cad2f43a043be6e777d9a898f570a6e37b31dc9\", \"value of sampling_distribution_panel.vconcat[2]['title'] is not correct\"\n", - "assert sha1(str(sampling_distribution_panel.vconcat[2]['title']).encode(\"utf-8\")+b\"5647cddb0bb68fa4\").hexdigest() == \"9cad2f43a043be6e777d9a898f570a6e37b31dc9\", \"correct string value of sampling_distribution_panel.vconcat[2]['title'] but incorrect case of letters\"\n", + "assert sha1(str(type(sampling_distribution_panel.vconcat[2]['title'])).encode(\"utf-8\")+b\"f53a263221a8972f\").hexdigest() == \"351d664d4395ec903bd767ce85d69ba1b5aa8174\", \"type of sampling_distribution_panel.vconcat[2]['title'] is not str. sampling_distribution_panel.vconcat[2]['title'] should be an str\"\n", + "assert sha1(str(len(sampling_distribution_panel.vconcat[2]['title'])).encode(\"utf-8\")+b\"f53a263221a8972f\").hexdigest() == \"71518169f06127cc7823c31f8885ff595aa55e34\", \"length of sampling_distribution_panel.vconcat[2]['title'] is not correct\"\n", + "assert sha1(str(sampling_distribution_panel.vconcat[2]['title'].lower()).encode(\"utf-8\")+b\"f53a263221a8972f\").hexdigest() == \"2883816a843144c29e0b1d7ae0d6ee061d52c74c\", \"value of sampling_distribution_panel.vconcat[2]['title'] is not correct\"\n", + "assert sha1(str(sampling_distribution_panel.vconcat[2]['title']).encode(\"utf-8\")+b\"f53a263221a8972f\").hexdigest() == \"2883816a843144c29e0b1d7ae0d6ee061d52c74c\", \"correct string value of sampling_distribution_panel.vconcat[2]['title'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(len(sampling_distribution_panel.vconcat))).encode(\"utf-8\")+b\"5187395e4a6c42c9\").hexdigest() == \"58bec4406226d22c835a05601df87eb3636b2eb5\", \"type of len(sampling_distribution_panel.vconcat) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(sampling_distribution_panel.vconcat)).encode(\"utf-8\")+b\"5187395e4a6c42c9\").hexdigest() == \"4b1631b035dd989474b3b995be5a2b46de21650e\", \"value of len(sampling_distribution_panel.vconcat) is not correct\"\n", + "assert sha1(str(type(len(sampling_distribution_panel.vconcat))).encode(\"utf-8\")+b\"44c7b2368f054b06\").hexdigest() == \"cf0931571446b696d9ae37acff7d6c9b5ac33b91\", \"type of len(sampling_distribution_panel.vconcat) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(sampling_distribution_panel.vconcat)).encode(\"utf-8\")+b\"44c7b2368f054b06\").hexdigest() == \"cd5a50b28600f1329f76cd9853f3fec802b55f60\", \"value of len(sampling_distribution_panel.vconcat) is not correct\"\n", "\n", "print('Success!')" ] @@ -2070,7 +2070,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2bbd5917d544b577796a0c38d7544782", + "checksum": "9cf58f73f60e082c413f1023dd430ae8", "grade": true, "grade_id": "cell-4bd59f7910e865dc", "locked": true, @@ -2083,10 +2083,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_8)).encode(\"utf-8\")+b\"b846d50aec9bafc0\").hexdigest() == \"9a1aced494e97c55a6fc52b64534f6f970b47157\", \"type of answer2_8 is not str. answer2_8 should be an str\"\n", - "assert sha1(str(len(answer2_8)).encode(\"utf-8\")+b\"b846d50aec9bafc0\").hexdigest() == \"78f99126f417bd751e3b16827eff0df106618947\", \"length of answer2_8 is not correct\"\n", - "assert sha1(str(answer2_8.lower()).encode(\"utf-8\")+b\"b846d50aec9bafc0\").hexdigest() == \"08cad462c589b8fdc00a669ae61ff52672fbaade\", \"value of answer2_8 is not correct\"\n", - "assert sha1(str(answer2_8).encode(\"utf-8\")+b\"b846d50aec9bafc0\").hexdigest() == \"5bd50c001328682dc80f99d1623f9d392b7f5099\", \"correct string value of answer2_8 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_8)).encode(\"utf-8\")+b\"bf6fdd29f748e6c3\").hexdigest() == \"bf671ab87fdfe0baf232b8ed935698baaabd652a\", \"type of answer2_8 is not str. answer2_8 should be an str\"\n", + "assert sha1(str(len(answer2_8)).encode(\"utf-8\")+b\"bf6fdd29f748e6c3\").hexdigest() == \"13ccecabb3ffc0f9fcd6a0e753e4d14a9a74658d\", \"length of answer2_8 is not correct\"\n", + "assert sha1(str(answer2_8.lower()).encode(\"utf-8\")+b\"bf6fdd29f748e6c3\").hexdigest() == \"967196286f0fe7837db9db8f781d4c9bb1187e58\", \"value of answer2_8 is not correct\"\n", + "assert sha1(str(answer2_8).encode(\"utf-8\")+b\"bf6fdd29f748e6c3\").hexdigest() == \"06cfdd66739a6c21b348efec346bef5112cc3cb5\", \"correct string value of answer2_8 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2149,7 +2149,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "741b45425a724e013c1590edfca93734", + "checksum": "0f6c5a29ffce0aa5ddaa37cf4b15f8f4", "grade": true, "grade_id": "cell-d346c550b654bff1", "locked": true, @@ -2162,8 +2162,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_9)).encode(\"utf-8\")+b\"4f78aeecf84b521a\").hexdigest() == \"23bee81db930de1d628cd59d9c98b65b9cb7b077\", \"type of answer2_9 is not bool. answer2_9 should be a bool\"\n", - "assert sha1(str(answer2_9).encode(\"utf-8\")+b\"4f78aeecf84b521a\").hexdigest() == \"b6ac5963857d557cb41bbc874526c4a0ed23bced\", \"boolean value of answer2_9 is not correct\"\n", + "assert sha1(str(type(answer2_9)).encode(\"utf-8\")+b\"0bb9919405a22986\").hexdigest() == \"5f93e86965174baa7251b4324aacc8451429f249\", \"type of answer2_9 is not bool. answer2_9 should be a bool\"\n", + "assert sha1(str(answer2_9).encode(\"utf-8\")+b\"0bb9919405a22986\").hexdigest() == \"eeb690609d79a15649c147d7d793d94ab94b94ae\", \"boolean value of answer2_9 is not correct\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_inference2/py_worksheet_inference2.ipynb b/py_worksheet_inference2/py_worksheet_inference2.ipynb index 6a28f45..e0d919d 100644 --- a/py_worksheet_inference2/py_worksheet_inference2.ipynb +++ b/py_worksheet_inference2/py_worksheet_inference2.ipynb @@ -7,7 +7,7 @@ "editable": false, "nbgrader": { "cell_type": "markdown", - "checksum": "e97748a474a0df6ff260b7c277e15f8f", + "checksum": "d79f41ef0204beaa753e32623c9017e4", "grade": false, "grade_id": "cell-f863750069537ead", "locked": true, @@ -19,29 +19,6 @@ "source": [ "# Worksheet 12 - The Bootstrap\n", "\n", - "We will cover 2 things today:\n", - "\n", - "1. [Estimation when you only have 1 sample (like in real life!)](#Estimation-with-only-one-sample)\n", - "2. [Getting Python + Jupyter working for you outside of our course](#Getting-Python-+-Jupyter-working-for-you-outside-of-our-course)" - ] - }, - { - "cell_type": "markdown", - "metadata": { - "deletable": false, - "editable": false, - "nbgrader": { - "cell_type": "markdown", - "checksum": "0af84829498faa595f70b807bf9c3f97", - "grade": false, - "grade_id": "cell-feeb551ce9229310", - "locked": true, - "schema_version": 3, - "solution": false, - "task": false - } - }, - "source": [ "### Lecture and Tutorial Learning Goals:\n", "\n", "After completing this week's lecture and tutorial work, you will be able to:\n", @@ -136,7 +113,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bf179876e02025fc98cb15b650311e28", + "checksum": "9c6ccd313c05efc407b91f7e56f890f1", "grade": true, "grade_id": "cell-e8aa24da1ef5f535", "locked": true, @@ -149,8 +126,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"8da4bbc0859f604a\").hexdigest() == \"b76620c1c8bc935d3179b39f2a5204ded4b903a1\", \"type of answer1_1 is not bool. answer1_1 should be a bool\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"8da4bbc0859f604a\").hexdigest() == \"31eef0f177c268972d150b081401556810440f74\", \"boolean value of answer1_1 is not correct\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"ad23c99d94c4f70b\").hexdigest() == \"74468a53356a373ee4766188a060b6c7c6fb15bb\", \"type of answer1_1 is not bool. answer1_1 should be a bool\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"ad23c99d94c4f70b\").hexdigest() == \"90d6fbe05fae2e770901a6272cc8b41307ab6bb9\", \"boolean value of answer1_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -216,7 +193,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "32b4a9af98c1a7ae98812645665a019b", + "checksum": "6c0118aabab9950f286c8091aacf154c", "grade": true, "grade_id": "cell-8a257d7535ce46fe", "locked": true, @@ -229,10 +206,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(\"\".join(map(str, answer1_2)))).encode(\"utf-8\")+b\"d1d0f0ca1c34363f\").hexdigest() == \"09e7deb757bb1d7e956b40e620828fe40b5fb353\", \"type of \\\"\\\".join(map(str, answer1_2)) is not str. \\\"\\\".join(map(str, answer1_2)) should be an str\"\n", - "assert sha1(str(len(\"\".join(map(str, answer1_2)))).encode(\"utf-8\")+b\"d1d0f0ca1c34363f\").hexdigest() == \"238d23ad17748b8d1d630bb0f0c84478506ad7f0\", \"length of \\\"\\\".join(map(str, answer1_2)) is not correct\"\n", - "assert sha1(str(\"\".join(map(str, answer1_2)).lower()).encode(\"utf-8\")+b\"d1d0f0ca1c34363f\").hexdigest() == \"644d626173633edddc1653f2bc4f82c861daf9fa\", \"value of \\\"\\\".join(map(str, answer1_2)) is not correct\"\n", - "assert sha1(str(\"\".join(map(str, answer1_2))).encode(\"utf-8\")+b\"d1d0f0ca1c34363f\").hexdigest() == \"644d626173633edddc1653f2bc4f82c861daf9fa\", \"correct string value of \\\"\\\".join(map(str, answer1_2)) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(map(str, answer1_2)))).encode(\"utf-8\")+b\"c90054188c11293f\").hexdigest() == \"e1bb5c071e8fc2ee7878a568ec102d8674d1d1b6\", \"type of \\\"\\\".join(map(str, answer1_2)) is not str. \\\"\\\".join(map(str, answer1_2)) should be an str\"\n", + "assert sha1(str(len(\"\".join(map(str, answer1_2)))).encode(\"utf-8\")+b\"c90054188c11293f\").hexdigest() == \"882a96be0c8f0051ba23c8be73b63f17dcc1cdc9\", \"length of \\\"\\\".join(map(str, answer1_2)) is not correct\"\n", + "assert sha1(str(\"\".join(map(str, answer1_2)).lower()).encode(\"utf-8\")+b\"c90054188c11293f\").hexdigest() == \"813444c98fc003381f7e04433266b0728b076bc2\", \"value of \\\"\\\".join(map(str, answer1_2)) is not correct\"\n", + "assert sha1(str(\"\".join(map(str, answer1_2))).encode(\"utf-8\")+b\"c90054188c11293f\").hexdigest() == \"813444c98fc003381f7e04433266b0728b076bc2\", \"correct string value of \\\"\\\".join(map(str, answer1_2)) but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -300,7 +277,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "798036f4608f78293e61a03ff279d63e", + "checksum": "8be310fdb94ebb7fbc2d058e2c0f0079", "grade": true, "grade_id": "cell-59dbb6a427a133c5", "locked": true, @@ -313,10 +290,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"696d3cd8aef8f352\").hexdigest() == \"d69c63d5d41a39ff40ec930ed727a4773c34f5de\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", - "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"696d3cd8aef8f352\").hexdigest() == \"8c36003872fa22cdf617118c1869e86ae49512c1\", \"length of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"696d3cd8aef8f352\").hexdigest() == \"e053209ed89dba4b8bc001d6f1b6bbf2ce407ad1\", \"value of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"696d3cd8aef8f352\").hexdigest() == \"d76047d9b3801e57b310a1e67c3dd86277d15926\", \"correct string value of answer1_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"2d7b5284427dcb32\").hexdigest() == \"12e543895b61e6ed3e25f5550fc60fdfc8457486\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", + "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"2d7b5284427dcb32\").hexdigest() == \"e342b7dcc2815316590501b234acea536ff2a9d3\", \"length of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"2d7b5284427dcb32\").hexdigest() == \"50132999762bf2ab11b42b60eea691de3f458113\", \"value of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"2d7b5284427dcb32\").hexdigest() == \"10e35d4a1c4b9c5336134c7925589e4e4cbcedf0\", \"correct string value of answer1_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -388,7 +365,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6b6959c3d991bb42f287961e14c32171", + "checksum": "aa85956d467545b0e295982dc33ce306", "grade": true, "grade_id": "cell-9448b3731eccbe8c", "locked": true, @@ -401,10 +378,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_4)).encode(\"utf-8\")+b\"79b871a543ff7413\").hexdigest() == \"adcc024cdc4142ddf63d2662c2b29d5caa7755ac\", \"type of answer1_4 is not str. answer1_4 should be an str\"\n", - "assert sha1(str(len(answer1_4)).encode(\"utf-8\")+b\"79b871a543ff7413\").hexdigest() == \"f4149939b26bc1109fd9f5d005dc6da0c16f0e3e\", \"length of answer1_4 is not correct\"\n", - "assert sha1(str(answer1_4.lower()).encode(\"utf-8\")+b\"79b871a543ff7413\").hexdigest() == \"1918537ccd231d61285f0c0c1c944121c35b7b6c\", \"value of answer1_4 is not correct\"\n", - "assert sha1(str(answer1_4).encode(\"utf-8\")+b\"79b871a543ff7413\").hexdigest() == \"1e09197c80d6953c73f8a886348773d07fea357c\", \"correct string value of answer1_4 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_4)).encode(\"utf-8\")+b\"f726159d6f88bac1\").hexdigest() == \"122ec4d1677d9cf30c567476b1cb2e740dec2add\", \"type of answer1_4 is not str. answer1_4 should be an str\"\n", + "assert sha1(str(len(answer1_4)).encode(\"utf-8\")+b\"f726159d6f88bac1\").hexdigest() == \"ff7bc79bd7114f6146f7f22da8244da210d6ec4e\", \"length of answer1_4 is not correct\"\n", + "assert sha1(str(answer1_4.lower()).encode(\"utf-8\")+b\"f726159d6f88bac1\").hexdigest() == \"15222f2f7f75b1a4e14a5a568b1fe7938b61b974\", \"value of answer1_4 is not correct\"\n", + "assert sha1(str(answer1_4).encode(\"utf-8\")+b\"f726159d6f88bac1\").hexdigest() == \"2e2567b1683b402ee7d728d1c4dc3d8450123967\", \"correct string value of answer1_4 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -662,7 +639,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "670e455422d43c16a2a94b52cc5c1dff", + "checksum": "d417c07a73c668c28dd9a11dd931d908", "grade": true, "grade_id": "cell-8e9e83895e2967dd", "locked": true, @@ -675,11 +652,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(one_sample_estimates.shape[0])).encode(\"utf-8\")+b\"5a8bfbf75ef41be0\").hexdigest() == \"256fbed4833c4eee2a87636e236be8a1a587130d\", \"type of one_sample_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(one_sample_estimates.shape[0]).encode(\"utf-8\")+b\"5a8bfbf75ef41be0\").hexdigest() == \"dcb6fc42a583d727cdc927e0e72c368ed13c435c\", \"value of one_sample_estimates.shape[0] is not correct\"\n", + "assert sha1(str(type(one_sample_estimates.shape[0])).encode(\"utf-8\")+b\"341ecb74ba65f45e\").hexdigest() == \"51c7869b0389c5b0b4c28cf591d2f61e20e6e313\", \"type of one_sample_estimates.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(one_sample_estimates.shape[0]).encode(\"utf-8\")+b\"341ecb74ba65f45e\").hexdigest() == \"cbf0f0e4fea314f2f90a8038d46ee92a28ad6053\", \"value of one_sample_estimates.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(round(one_sample_estimates, 2))).encode(\"utf-8\")+b\"aa4592981272dd3e\").hexdigest() == \"779b44a8bb321f66fa2ad9582fe1889cd5e3e7ca\", \"type of round(one_sample_estimates, 2) is not correct\"\n", - "assert sha1(str(round(one_sample_estimates, 2)).encode(\"utf-8\")+b\"aa4592981272dd3e\").hexdigest() == \"2d7e692b12287413d27a5810bef5907cb3ac163d\", \"value of round(one_sample_estimates, 2) is not correct\"\n", + "assert sha1(str(type(round(one_sample_estimates, 2))).encode(\"utf-8\")+b\"8e6640caa7b42693\").hexdigest() == \"bb4dba71f5d06315cd5cfe313fccb202b57588d1\", \"type of round(one_sample_estimates, 2) is not correct\"\n", + "assert sha1(str(round(one_sample_estimates, 2)).encode(\"utf-8\")+b\"8e6640caa7b42693\").hexdigest() == \"f1c1edbe689ac0a82f3cd47a90fdbf0b6e9c6930\", \"value of round(one_sample_estimates, 2) is not correct\"\n", "\n", "print('Success!')" ] @@ -742,7 +719,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e97eba8676b51ce8ed7ac6239781aab5", + "checksum": "2ba5efa83f8f8610971cb2e353ac126d", "grade": true, "grade_id": "cell-af716b8959aee1ac", "locked": true, @@ -755,19 +732,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(\"\".join(boot1.columns))).encode(\"utf-8\")+b\"baced830d0eb0145\").hexdigest() == \"06e06d8967e9cb183c071aac11539da1ba85c40a\", \"type of \\\"\\\".join(boot1.columns) is not str. \\\"\\\".join(boot1.columns) should be an str\"\n", - "assert sha1(str(len(\"\".join(boot1.columns))).encode(\"utf-8\")+b\"baced830d0eb0145\").hexdigest() == \"797272f83add551f7a69f8a4d396b94641cc8216\", \"length of \\\"\\\".join(boot1.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot1.columns).lower()).encode(\"utf-8\")+b\"baced830d0eb0145\").hexdigest() == \"65ff91f48f8fe3dfaba0bd1cadf4f772c21a10b3\", \"value of \\\"\\\".join(boot1.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot1.columns)).encode(\"utf-8\")+b\"baced830d0eb0145\").hexdigest() == \"65ff91f48f8fe3dfaba0bd1cadf4f772c21a10b3\", \"correct string value of \\\"\\\".join(boot1.columns) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(boot1.columns))).encode(\"utf-8\")+b\"321935f434040271\").hexdigest() == \"9c9ac8dd2d9c61c1ccaef0a6dfa36cb0eb8c67e6\", \"type of \\\"\\\".join(boot1.columns) is not str. \\\"\\\".join(boot1.columns) should be an str\"\n", + "assert sha1(str(len(\"\".join(boot1.columns))).encode(\"utf-8\")+b\"321935f434040271\").hexdigest() == \"c12683f301de2ee424006988b9f0fa0d26dcae8c\", \"length of \\\"\\\".join(boot1.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot1.columns).lower()).encode(\"utf-8\")+b\"321935f434040271\").hexdigest() == \"20287640881934c6e88a079bed3aebe8a660b571\", \"value of \\\"\\\".join(boot1.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot1.columns)).encode(\"utf-8\")+b\"321935f434040271\").hexdigest() == \"20287640881934c6e88a079bed3aebe8a660b571\", \"correct string value of \\\"\\\".join(boot1.columns) but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot1.shape[0])).encode(\"utf-8\")+b\"c353a3e60c1b902f\").hexdigest() == \"e36a6a96b65ca68beffbba92b246509d53d6f3fe\", \"type of boot1.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot1.shape[0]).encode(\"utf-8\")+b\"c353a3e60c1b902f\").hexdigest() == \"804c9f32f182a37fe8def5c75c664fa4c5bab046\", \"value of boot1.shape[0] is not correct\"\n", + "assert sha1(str(type(boot1.shape[0])).encode(\"utf-8\")+b\"8ac01486cfc16b9e\").hexdigest() == \"5fa13c5bfd0a2e6325ed8f5aa21376b9b664990d\", \"type of boot1.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot1.shape[0]).encode(\"utf-8\")+b\"8ac01486cfc16b9e\").hexdigest() == \"dfb97046a4af270df4a7102953513952e7205461\", \"value of boot1.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(boot1.age), 2))).encode(\"utf-8\")+b\"c7271b9193fb13c6\").hexdigest() == \"0b32ed5ec57a9d1fc80bfb84945a21c3016b9201\", \"type of round(sum(boot1.age), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(boot1.age), 2), 2)).encode(\"utf-8\")+b\"c7271b9193fb13c6\").hexdigest() == \"d8cb3b7632db9d1235c4d95280cdd4607115e416\", \"value of round(sum(boot1.age), 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(boot1.age), 2))).encode(\"utf-8\")+b\"786c70ba460b4f23\").hexdigest() == \"49ef776c4288203a37f1ba0c34fb8588ae6d558b\", \"type of round(sum(boot1.age), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(boot1.age), 2), 2)).encode(\"utf-8\")+b\"786c70ba460b4f23\").hexdigest() == \"4f8e58d027907ba242ef4818e4db03076fbc8dcb\", \"value of round(sum(boot1.age), 2) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(range(boot1.shape[0])))).encode(\"utf-8\")+b\"43bd071a6a5ee204\").hexdigest() == \"e5b85d9434cbafb29cfa79327dc75bfa1874c141\", \"type of sum(range(boot1.shape[0])) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(range(boot1.shape[0]))).encode(\"utf-8\")+b\"43bd071a6a5ee204\").hexdigest() == \"4a484ec0109380ae7a86670a7ac891d015a195d3\", \"value of sum(range(boot1.shape[0])) is not correct\"\n", + "assert sha1(str(type(sum(range(boot1.shape[0])))).encode(\"utf-8\")+b\"bff42704aedf8c3a\").hexdigest() == \"087d188ae0d4065b075f4cc99edaed74bf0ed89c\", \"type of sum(range(boot1.shape[0])) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(range(boot1.shape[0]))).encode(\"utf-8\")+b\"bff42704aedf8c3a\").hexdigest() == \"2b6deb77b590d7db89027d326ee6dfe074e8f7d0\", \"value of sum(range(boot1.shape[0])) is not correct\"\n", "\n", "print('Success!')" ] @@ -835,7 +812,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0b1870499bc28bd2a55396c1e9a179ed", + "checksum": "36473d8f7cb439d176f1a9c485741d42", "grade": true, "grade_id": "cell-1b79e9b905b70215", "locked": true, @@ -848,10 +825,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_7)).encode(\"utf-8\")+b\"e4c9d91535aa4410\").hexdigest() == \"96de88c83150d4408080a7c64dd8cf2b562ee6b8\", \"type of answer1_7 is not str. answer1_7 should be an str\"\n", - "assert sha1(str(len(answer1_7)).encode(\"utf-8\")+b\"e4c9d91535aa4410\").hexdigest() == \"ed9d66f2fde029578a25a39c8318befc731e2a40\", \"length of answer1_7 is not correct\"\n", - "assert sha1(str(answer1_7.lower()).encode(\"utf-8\")+b\"e4c9d91535aa4410\").hexdigest() == \"14371fd21f08b8b7a53fc79f10719dad2045246b\", \"value of answer1_7 is not correct\"\n", - "assert sha1(str(answer1_7).encode(\"utf-8\")+b\"e4c9d91535aa4410\").hexdigest() == \"a8c78f5a68c55ca6b6945502492bbcc93a069e7b\", \"correct string value of answer1_7 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_7)).encode(\"utf-8\")+b\"8ebf4a3003a27da4\").hexdigest() == \"96998d3b118145e0529c2ecb838514af2b016e35\", \"type of answer1_7 is not str. answer1_7 should be an str\"\n", + "assert sha1(str(len(answer1_7)).encode(\"utf-8\")+b\"8ebf4a3003a27da4\").hexdigest() == \"bd04158dababec1145691b79d20e1a226587bfcc\", \"length of answer1_7 is not correct\"\n", + "assert sha1(str(answer1_7.lower()).encode(\"utf-8\")+b\"8ebf4a3003a27da4\").hexdigest() == \"d507611a6c3f3c06dff530130450d55e3d3fa672\", \"value of answer1_7 is not correct\"\n", + "assert sha1(str(answer1_7).encode(\"utf-8\")+b\"8ebf4a3003a27da4\").hexdigest() == \"7528894d1974b1b484dc7d05a135310f4f76994c\", \"correct string value of answer1_7 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -910,7 +887,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "977a6982ec2e03e3501e26ded43d68d5", + "checksum": "03f2c9a1b1b70e856eb572e200ccc87b", "grade": true, "grade_id": "cell-3b7b4b4c4cc4971e", "locked": true, @@ -923,35 +900,35 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(boot1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ffcf0644d4cac0b7\").hexdigest() == \"2a91f8ee4262bb3bb21ae560fcf4a0b111b902a2\", \"type of boot1_dist.encoding.x['shorthand'] is not str. boot1_dist.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(boot1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ffcf0644d4cac0b7\").hexdigest() == \"32162f2cb4f7d448cdb73a39462b87b48d2339c3\", \"length of boot1_dist.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(boot1_dist.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"ffcf0644d4cac0b7\").hexdigest() == \"ca74598a9232f8e5070ec1a7495efbe79de6bfb0\", \"value of boot1_dist.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(boot1_dist.encoding.x['shorthand']).encode(\"utf-8\")+b\"ffcf0644d4cac0b7\").hexdigest() == \"ca74598a9232f8e5070ec1a7495efbe79de6bfb0\", \"correct string value of boot1_dist.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(boot1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3ac684da4e1d4fc3\").hexdigest() == \"e396093f358908dda52b7d574e96fae8fed213d7\", \"type of boot1_dist.encoding.x['shorthand'] is not str. boot1_dist.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(boot1_dist.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3ac684da4e1d4fc3\").hexdigest() == \"58e86fc43b3cd59dd9f9394af7ed3aabc6f616e5\", \"length of boot1_dist.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(boot1_dist.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"3ac684da4e1d4fc3\").hexdigest() == \"b5552ad72d5f5eca39f99b9da16567e0450edec4\", \"value of boot1_dist.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(boot1_dist.encoding.x['shorthand']).encode(\"utf-8\")+b\"3ac684da4e1d4fc3\").hexdigest() == \"b5552ad72d5f5eca39f99b9da16567e0450edec4\", \"correct string value of boot1_dist.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"638d94695be1919a\").hexdigest() == \"3240649eeb9808ed7bb97e8442ae351df2c8cb25\", \"type of boot1_dist.encoding.y['shorthand'] is not str. boot1_dist.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(boot1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"638d94695be1919a\").hexdigest() == \"d7bdb292156397d131a86ae5eab4bc223020e5ef\", \"length of boot1_dist.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(boot1_dist.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"638d94695be1919a\").hexdigest() == \"162963803f5f38c479d7577f35666552d1dbb3f4\", \"value of boot1_dist.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(boot1_dist.encoding.y['shorthand']).encode(\"utf-8\")+b\"638d94695be1919a\").hexdigest() == \"162963803f5f38c479d7577f35666552d1dbb3f4\", \"correct string value of boot1_dist.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(boot1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"b7eff062cad2f7ba\").hexdigest() == \"acf5a3f5af3696a7f96e8309379498bb036e14db\", \"type of boot1_dist.encoding.y['shorthand'] is not str. boot1_dist.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(boot1_dist.encoding.y['shorthand'])).encode(\"utf-8\")+b\"b7eff062cad2f7ba\").hexdigest() == \"6c9e7c8a4d9e85385eca751c17b04ecb5db75ca6\", \"length of boot1_dist.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(boot1_dist.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"b7eff062cad2f7ba\").hexdigest() == \"98886ea005fc3d9ccaa31eedbc543af8f5f12a79\", \"value of boot1_dist.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(boot1_dist.encoding.y['shorthand']).encode(\"utf-8\")+b\"b7eff062cad2f7ba\").hexdigest() == \"98886ea005fc3d9ccaa31eedbc543af8f5f12a79\", \"correct string value of boot1_dist.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot1_dist.mark)).encode(\"utf-8\")+b\"d57e07d32077ca4c\").hexdigest() == \"e83e1a5ce622f159643709f11c04541f950fbfda\", \"type of boot1_dist.mark is not str. boot1_dist.mark should be an str\"\n", - "assert sha1(str(len(boot1_dist.mark)).encode(\"utf-8\")+b\"d57e07d32077ca4c\").hexdigest() == \"5b0b208b6c910f142c432c417fbc7f80b88360fe\", \"length of boot1_dist.mark is not correct\"\n", - "assert sha1(str(boot1_dist.mark.lower()).encode(\"utf-8\")+b\"d57e07d32077ca4c\").hexdigest() == \"3cf0be5388af4375859773f005103cc1b2830cf0\", \"value of boot1_dist.mark is not correct\"\n", - "assert sha1(str(boot1_dist.mark).encode(\"utf-8\")+b\"d57e07d32077ca4c\").hexdigest() == \"3cf0be5388af4375859773f005103cc1b2830cf0\", \"correct string value of boot1_dist.mark but incorrect case of letters\"\n", + "assert sha1(str(type(boot1_dist.mark)).encode(\"utf-8\")+b\"6b3889cefc5ca388\").hexdigest() == \"1d39d87d214372e01a2802d8fe68d0b65b03c838\", \"type of boot1_dist.mark is not str. boot1_dist.mark should be an str\"\n", + "assert sha1(str(len(boot1_dist.mark)).encode(\"utf-8\")+b\"6b3889cefc5ca388\").hexdigest() == \"73c213cf92131eca98bb10a595d463f6683d4d57\", \"length of boot1_dist.mark is not correct\"\n", + "assert sha1(str(boot1_dist.mark.lower()).encode(\"utf-8\")+b\"6b3889cefc5ca388\").hexdigest() == \"c99cf40ffa7554884430d6cfe7c8aca8dc339c09\", \"value of boot1_dist.mark is not correct\"\n", + "assert sha1(str(boot1_dist.mark).encode(\"utf-8\")+b\"6b3889cefc5ca388\").hexdigest() == \"c99cf40ffa7554884430d6cfe7c8aca8dc339c09\", \"correct string value of boot1_dist.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot1_dist.data.shape[0])).encode(\"utf-8\")+b\"65c18456b1808eaa\").hexdigest() == \"9b391bb28cec73e6b5625fca3b4eff46e097b18f\", \"type of boot1_dist.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot1_dist.data.shape[0]).encode(\"utf-8\")+b\"65c18456b1808eaa\").hexdigest() == \"affbbde9733a3f171f1f513755a626c658478cba\", \"value of boot1_dist.data.shape[0] is not correct\"\n", + "assert sha1(str(type(boot1_dist.data.shape[0])).encode(\"utf-8\")+b\"8ac7e92a598a6afc\").hexdigest() == \"f000a79dd9ac9ca76171d5959114ce1824a0f84e\", \"type of boot1_dist.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot1_dist.data.shape[0]).encode(\"utf-8\")+b\"8ac7e92a598a6afc\").hexdigest() == \"73d0bf620389158c87b679884dae64af809fde31\", \"value of boot1_dist.data.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(round(boot1_dist.data.sum(), 2))).encode(\"utf-8\")+b\"b92c15ad17e02c21\").hexdigest() == \"343af00aacb8fca94df22ce3b7560d4b4687f0b1\", \"type of round(boot1_dist.data.sum(), 2) is not correct\"\n", - "assert sha1(str(round(boot1_dist.data.sum(), 2)).encode(\"utf-8\")+b\"b92c15ad17e02c21\").hexdigest() == \"f98becc5bd1a63538f0caf207b99a60147f1250c\", \"value of round(boot1_dist.data.sum(), 2) is not correct\"\n", + "assert sha1(str(type(round(boot1_dist.data.sum(), 2))).encode(\"utf-8\")+b\"9cc0db4e6fd95c04\").hexdigest() == \"9aaf518f46f6c2fc9336c747df2aacc059b7493d\", \"type of round(boot1_dist.data.sum(), 2) is not correct\"\n", + "assert sha1(str(round(boot1_dist.data.sum(), 2)).encode(\"utf-8\")+b\"9cc0db4e6fd95c04\").hexdigest() == \"a827ef9db4f689c798f8d7597a9e6251b2c792ad\", \"value of round(boot1_dist.data.sum(), 2) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(boot1_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"5616060c4d5b8f76\").hexdigest() == \"09a86aa9e356a55ecd3f848b696ff18f6d7214c5\", \"type of isinstance(boot1_dist.encoding.x['title'], str) is not bool. isinstance(boot1_dist.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(boot1_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"5616060c4d5b8f76\").hexdigest() == \"66bc343574c1686fc4b97878cea58f0b729d477f\", \"boolean value of isinstance(boot1_dist.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(boot1_dist.encoding.x['title'], str))).encode(\"utf-8\")+b\"1d7fdfe16143b359\").hexdigest() == \"b374841ee49b437fb51601103fe75372b2985a6b\", \"type of isinstance(boot1_dist.encoding.x['title'], str) is not bool. isinstance(boot1_dist.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(boot1_dist.encoding.x['title'], str)).encode(\"utf-8\")+b\"1d7fdfe16143b359\").hexdigest() == \"263ac86a15c444480a3e18e14c6891c822bee421\", \"boolean value of isinstance(boot1_dist.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(boot1_dist.encoding.y['title'], str))).encode(\"utf-8\")+b\"6e6a5b3c1de74405\").hexdigest() == \"cdc0da723eb71c0aeb3d4862a1cbb59e877c269c\", \"type of isinstance(boot1_dist.encoding.y['title'], str) is not bool. isinstance(boot1_dist.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(boot1_dist.encoding.y['title'], str)).encode(\"utf-8\")+b\"6e6a5b3c1de74405\").hexdigest() == \"df12da08aff52f88798a634d3bc3b84032b2e318\", \"boolean value of isinstance(boot1_dist.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(boot1_dist.encoding.y['title'], str))).encode(\"utf-8\")+b\"81a4c9c74732fb0e\").hexdigest() == \"0881a1f2bcdbaa6fc3ae9a88aaa0087fe44468d1\", \"type of isinstance(boot1_dist.encoding.y['title'], str) is not bool. isinstance(boot1_dist.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(boot1_dist.encoding.y['title'], str)).encode(\"utf-8\")+b\"81a4c9c74732fb0e\").hexdigest() == \"8d81581fd4166ce38695d5808d5314b2132dcd8d\", \"boolean value of isinstance(boot1_dist.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(boot1_dist.title is not None)).encode(\"utf-8\")+b\"97c80974ddd0a031\").hexdigest() == \"3f3b85b832740760b62eae5b2f4918799ff1a265\", \"type of boot1_dist.title is not None is not bool. boot1_dist.title is not None should be a bool\"\n", - "assert sha1(str(boot1_dist.title is not None).encode(\"utf-8\")+b\"97c80974ddd0a031\").hexdigest() == \"46cfdcf11414ef300ee3650e11c9c1f95bc44aa3\", \"boolean value of boot1_dist.title is not None is not correct\"\n", + "assert sha1(str(type(boot1_dist.title is not None)).encode(\"utf-8\")+b\"44b674a031a81ff7\").hexdigest() == \"8634298eb4ca23cd83cc0074f1c4a85e5d15776d\", \"type of boot1_dist.title is not None is not bool. boot1_dist.title is not None should be a bool\"\n", + "assert sha1(str(boot1_dist.title is not None).encode(\"utf-8\")+b\"44b674a031a81ff7\").hexdigest() == \"a6e78d3a02df5ecbabffa08450d67f3528d57f0b\", \"boolean value of boot1_dist.title is not None is not correct\"\n", "\n", "print('Success!')" ] @@ -1121,7 +1098,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5910e71004d800aad3de26477e293c95", + "checksum": "3a29d703fd634b37b4a33e980789a4e1", "grade": true, "grade_id": "cell-e57717e45df34f9a", "locked": true, @@ -1134,19 +1111,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(\"\".join(boot6.columns))).encode(\"utf-8\")+b\"941f9e4fa84c020e\").hexdigest() == \"53df5ce8b4c00b72b7d583d318fd538111ae9631\", \"type of \\\"\\\".join(boot6.columns) is not str. \\\"\\\".join(boot6.columns) should be an str\"\n", - "assert sha1(str(len(\"\".join(boot6.columns))).encode(\"utf-8\")+b\"941f9e4fa84c020e\").hexdigest() == \"f7389b568c9e860ffd96927e768be8d7e186ad8e\", \"length of \\\"\\\".join(boot6.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot6.columns).lower()).encode(\"utf-8\")+b\"941f9e4fa84c020e\").hexdigest() == \"c6fd06f360ab300782c5619b3d2f0c83bdf164aa\", \"value of \\\"\\\".join(boot6.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot6.columns)).encode(\"utf-8\")+b\"941f9e4fa84c020e\").hexdigest() == \"c6fd06f360ab300782c5619b3d2f0c83bdf164aa\", \"correct string value of \\\"\\\".join(boot6.columns) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(boot6.columns))).encode(\"utf-8\")+b\"4a424a930e1771ce\").hexdigest() == \"a3a139f0c5ba297fa0c1f2ddefbb9e5eff55f669\", \"type of \\\"\\\".join(boot6.columns) is not str. \\\"\\\".join(boot6.columns) should be an str\"\n", + "assert sha1(str(len(\"\".join(boot6.columns))).encode(\"utf-8\")+b\"4a424a930e1771ce\").hexdigest() == \"b90575ccb36feda7b2ba25dd8785a2ec702d19e2\", \"length of \\\"\\\".join(boot6.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot6.columns).lower()).encode(\"utf-8\")+b\"4a424a930e1771ce\").hexdigest() == \"1496bfda1768eaddfa40d8a29e71a107a2ccaa25\", \"value of \\\"\\\".join(boot6.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot6.columns)).encode(\"utf-8\")+b\"4a424a930e1771ce\").hexdigest() == \"1496bfda1768eaddfa40d8a29e71a107a2ccaa25\", \"correct string value of \\\"\\\".join(boot6.columns) but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot6.shape[0])).encode(\"utf-8\")+b\"780d823fce2b7da7\").hexdigest() == \"51605d12b87d25e22153d723c00a9d3c18c15588\", \"type of boot6.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot6.shape[0]).encode(\"utf-8\")+b\"780d823fce2b7da7\").hexdigest() == \"2e09203e98ed8d6097b3e6afb72b2df319beba4e\", \"value of boot6.shape[0] is not correct\"\n", + "assert sha1(str(type(boot6.shape[0])).encode(\"utf-8\")+b\"cd356122549048bc\").hexdigest() == \"b01795ce316857b330edc361dfc497f82d3f9754\", \"type of boot6.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot6.shape[0]).encode(\"utf-8\")+b\"cd356122549048bc\").hexdigest() == \"c809fd98d7834dfdb069768b5b779d913a1689f8\", \"value of boot6.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(boot6.age), 2))).encode(\"utf-8\")+b\"d6757d2ded553b7f\").hexdigest() == \"8757ab32c3c9ff2b60b1aced1ddac1e2b8b7835e\", \"type of round(sum(boot6.age), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(boot6.age), 2), 2)).encode(\"utf-8\")+b\"d6757d2ded553b7f\").hexdigest() == \"68f7a7955f13fc24158346f272468aeba5b440af\", \"value of round(sum(boot6.age), 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(boot6.age), 2))).encode(\"utf-8\")+b\"49be53a805816f5c\").hexdigest() == \"ac237c7a7ca781ec7cd6a83e6e07c7af9a3fd77c\", \"type of round(sum(boot6.age), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(boot6.age), 2), 2)).encode(\"utf-8\")+b\"49be53a805816f5c\").hexdigest() == \"4398de4f5ff652c7f32cb39b7ba4c864a9fab287\", \"value of round(sum(boot6.age), 2) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(boot6.replicate.unique()))).encode(\"utf-8\")+b\"5d02f6bcd0f693f0\").hexdigest() == \"d6e67da831cece8c871df89e1a3fe27c080138bf\", \"type of sum(boot6.replicate.unique()) is not correct\"\n", - "assert sha1(str(sum(boot6.replicate.unique())).encode(\"utf-8\")+b\"5d02f6bcd0f693f0\").hexdigest() == \"d6b71232e41e23119479fe5d8fb416be94fe7e7a\", \"value of sum(boot6.replicate.unique()) is not correct\"\n", + "assert sha1(str(type(sum(boot6.replicate.unique()))).encode(\"utf-8\")+b\"266c20581e7e569a\").hexdigest() == \"59ee68edde2f3ea4530c7bfa23d6f27f439e98f4\", \"type of sum(boot6.replicate.unique()) is not correct\"\n", + "assert sha1(str(sum(boot6.replicate.unique())).encode(\"utf-8\")+b\"266c20581e7e569a\").hexdigest() == \"146342279c410e5b5eda0d3292a1240e2dd8f48c\", \"value of sum(boot6.replicate.unique()) is not correct\"\n", "\n", "print('Success!')" ] @@ -1217,7 +1194,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5918b463cafdfb98c078396d93147ca6", + "checksum": "96880b1a32a7e93574ccb1661a090065", "grade": true, "grade_id": "cell-38e6f9e544c5ce17", "locked": true, @@ -1230,16 +1207,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(boot6_dist.facet['shorthand'])).encode(\"utf-8\")+b\"d1c2fe63e79c708c\").hexdigest() == \"554afdb3b28d2d426afc03af592f332e0a3deb2f\", \"type of boot6_dist.facet['shorthand'] is not str. boot6_dist.facet['shorthand'] should be an str\"\n", - "assert sha1(str(len(boot6_dist.facet['shorthand'])).encode(\"utf-8\")+b\"d1c2fe63e79c708c\").hexdigest() == \"32dec15683cd0ff9d0fdb7cbda6a737ff606201a\", \"length of boot6_dist.facet['shorthand'] is not correct\"\n", - "assert sha1(str(boot6_dist.facet['shorthand'].lower()).encode(\"utf-8\")+b\"d1c2fe63e79c708c\").hexdigest() == \"b1aba475fec8a1ac975a96de874e14c4916ba0f4\", \"value of boot6_dist.facet['shorthand'] is not correct\"\n", - "assert sha1(str(boot6_dist.facet['shorthand']).encode(\"utf-8\")+b\"d1c2fe63e79c708c\").hexdigest() == \"b1aba475fec8a1ac975a96de874e14c4916ba0f4\", \"correct string value of boot6_dist.facet['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(boot6_dist.facet['shorthand'])).encode(\"utf-8\")+b\"7840f0a8ba1ca416\").hexdigest() == \"a7467ed4ec0a8d03b177cf7cdb482ec60f5eb2b7\", \"type of boot6_dist.facet['shorthand'] is not str. boot6_dist.facet['shorthand'] should be an str\"\n", + "assert sha1(str(len(boot6_dist.facet['shorthand'])).encode(\"utf-8\")+b\"7840f0a8ba1ca416\").hexdigest() == \"999a28b56681541c0e6ea2bf004d222a36addeae\", \"length of boot6_dist.facet['shorthand'] is not correct\"\n", + "assert sha1(str(boot6_dist.facet['shorthand'].lower()).encode(\"utf-8\")+b\"7840f0a8ba1ca416\").hexdigest() == \"b4f362dfd38f21571be1f570c6e0bd1fe4392234\", \"value of boot6_dist.facet['shorthand'] is not correct\"\n", + "assert sha1(str(boot6_dist.facet['shorthand']).encode(\"utf-8\")+b\"7840f0a8ba1ca416\").hexdigest() == \"b4f362dfd38f21571be1f570c6e0bd1fe4392234\", \"correct string value of boot6_dist.facet['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot6_dist.data.shape[0])).encode(\"utf-8\")+b\"edf1ae5de24351a3\").hexdigest() == \"33cb8db0de5524c4b458c6439f099850ff6bfdb9\", \"type of boot6_dist.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot6_dist.data.shape[0]).encode(\"utf-8\")+b\"edf1ae5de24351a3\").hexdigest() == \"485960a1686769baa489c434b35cf6683a205f29\", \"value of boot6_dist.data.shape[0] is not correct\"\n", + "assert sha1(str(type(boot6_dist.data.shape[0])).encode(\"utf-8\")+b\"19a48ed66b92868d\").hexdigest() == \"67695ff01378844eb583abb67ae738ace4c6e1d7\", \"type of boot6_dist.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot6_dist.data.shape[0]).encode(\"utf-8\")+b\"19a48ed66b92868d\").hexdigest() == \"a4756fa0cf5fae0cc9d0b0b443e54236bf976076\", \"value of boot6_dist.data.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(boot6_dist.title is not None)).encode(\"utf-8\")+b\"7160d84fd646426e\").hexdigest() == \"d0b299ae2a4e86999fd21fffdfd41f9f2d392d5f\", \"type of boot6_dist.title is not None is not bool. boot6_dist.title is not None should be a bool\"\n", - "assert sha1(str(boot6_dist.title is not None).encode(\"utf-8\")+b\"7160d84fd646426e\").hexdigest() == \"2aef56d483ae116657f6163a1730d66e4c1f084e\", \"boolean value of boot6_dist.title is not None is not correct\"\n", + "assert sha1(str(type(boot6_dist.title is not None)).encode(\"utf-8\")+b\"6278fbadb610e512\").hexdigest() == \"51d04e181dceececeff33087f883df3126713b83\", \"type of boot6_dist.title is not None is not bool. boot6_dist.title is not None should be a bool\"\n", + "assert sha1(str(boot6_dist.title is not None).encode(\"utf-8\")+b\"6278fbadb610e512\").hexdigest() == \"80e0903cac64b86cc96b0e7c3862d2d70b40420d\", \"boolean value of boot6_dist.title is not None is not correct\"\n", "\n", "print('Success!')" ] @@ -1298,7 +1275,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5d2968a924436561944bc2fa27d76920", + "checksum": "532a202f7075563faa1dca8fd41e96cb", "grade": true, "grade_id": "cell-f2cfe994fece602d", "locked": true, @@ -1311,19 +1288,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(boot6_means.shape[0])).encode(\"utf-8\")+b\"da6b67a5dc64285f\").hexdigest() == \"517b2813255e2e9e6eb4681f24218eef4d042686\", \"type of boot6_means.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot6_means.shape[0]).encode(\"utf-8\")+b\"da6b67a5dc64285f\").hexdigest() == \"6fa0df9151383a1100d8bfc3f5ea7e0748cf9eb9\", \"value of boot6_means.shape[0] is not correct\"\n", + "assert sha1(str(type(boot6_means.shape[0])).encode(\"utf-8\")+b\"fee6d7e7d3ff3ee8\").hexdigest() == \"0742403d3d325d185a68f2bb32d6ac430e8babe7\", \"type of boot6_means.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot6_means.shape[0]).encode(\"utf-8\")+b\"fee6d7e7d3ff3ee8\").hexdigest() == \"294750ad25f8b987571a0561bf864683842f2b11\", \"value of boot6_means.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(boot6_means.shape[1])).encode(\"utf-8\")+b\"a3dff58db9c9c0e6\").hexdigest() == \"74eeb061932ac0545a9771b84d08f089fb9863b6\", \"type of boot6_means.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot6_means.shape[1]).encode(\"utf-8\")+b\"a3dff58db9c9c0e6\").hexdigest() == \"ae4610041f4439a0f81cc4701fca6a3b941356a0\", \"value of boot6_means.shape[1] is not correct\"\n", + "assert sha1(str(type(boot6_means.shape[1])).encode(\"utf-8\")+b\"d35ad7b2d5859bae\").hexdigest() == \"01479148023e8ae6b5a72618a78e6bec6c4ef555\", \"type of boot6_means.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot6_means.shape[1]).encode(\"utf-8\")+b\"d35ad7b2d5859bae\").hexdigest() == \"8a0cd598f3578fa7919ff2c1f24959ed7316bb90\", \"value of boot6_means.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(boot6_means.columns))).encode(\"utf-8\")+b\"30ef07ddac45c626\").hexdigest() == \"f1493e7841f82032c7d85097df8d32b88fe55fde\", \"type of \\\"\\\".join(boot6_means.columns) is not str. \\\"\\\".join(boot6_means.columns) should be an str\"\n", - "assert sha1(str(len(\"\".join(boot6_means.columns))).encode(\"utf-8\")+b\"30ef07ddac45c626\").hexdigest() == \"43bf199914c67e360bd7ecf69d2c1004a4594c5e\", \"length of \\\"\\\".join(boot6_means.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot6_means.columns).lower()).encode(\"utf-8\")+b\"30ef07ddac45c626\").hexdigest() == \"de471b8b41dfebd8970cced11a31122044db83ef\", \"value of \\\"\\\".join(boot6_means.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot6_means.columns)).encode(\"utf-8\")+b\"30ef07ddac45c626\").hexdigest() == \"de471b8b41dfebd8970cced11a31122044db83ef\", \"correct string value of \\\"\\\".join(boot6_means.columns) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(boot6_means.columns))).encode(\"utf-8\")+b\"d0baf2878f1b2012\").hexdigest() == \"adcfb3c8d8fded2a6682912c0c04f7322c12de1b\", \"type of \\\"\\\".join(boot6_means.columns) is not str. \\\"\\\".join(boot6_means.columns) should be an str\"\n", + "assert sha1(str(len(\"\".join(boot6_means.columns))).encode(\"utf-8\")+b\"d0baf2878f1b2012\").hexdigest() == \"68b4d11f67c47fd5f814fde6d9a4033bba6413a9\", \"length of \\\"\\\".join(boot6_means.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot6_means.columns).lower()).encode(\"utf-8\")+b\"d0baf2878f1b2012\").hexdigest() == \"85b7f063b8f87621fd7f27b8f57e46422ee69e72\", \"value of \\\"\\\".join(boot6_means.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot6_means.columns)).encode(\"utf-8\")+b\"d0baf2878f1b2012\").hexdigest() == \"85b7f063b8f87621fd7f27b8f57e46422ee69e72\", \"correct string value of \\\"\\\".join(boot6_means.columns) but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(round(boot6_means[\"mean_age\"][0], 2))).encode(\"utf-8\")+b\"f313f2d35d51f4b0\").hexdigest() == \"428d1612fe134ab110e709e9198f8fc7d76abfed\", \"type of round(boot6_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", - "assert sha1(str(round(boot6_means[\"mean_age\"][0], 2)).encode(\"utf-8\")+b\"f313f2d35d51f4b0\").hexdigest() == \"3b9953cb5ba4be1675c83a7c50a0ad1555318ff5\", \"value of round(boot6_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", + "assert sha1(str(type(round(boot6_means[\"mean_age\"][0], 2))).encode(\"utf-8\")+b\"71f17e361909b26c\").hexdigest() == \"48b1eda3b392fa0fe363ab74bc8d1ec230aff4f7\", \"type of round(boot6_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", + "assert sha1(str(round(boot6_means[\"mean_age\"][0], 2)).encode(\"utf-8\")+b\"71f17e361909b26c\").hexdigest() == \"a43bc830d674f3a38895d65c58bef7ec2244cf87\", \"value of round(boot6_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", "\n", "print('Success!')" ] @@ -1385,7 +1362,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "06a2980e3625530b9f267bc961e45e0c", + "checksum": "82fbd69b703321dd80da55b141a1ac9a", "grade": true, "grade_id": "cell-343d880b6f801822", "locked": true, @@ -1398,19 +1375,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(\"\".join(boot1000.columns))).encode(\"utf-8\")+b\"fab82ccb08ca682f\").hexdigest() == \"bdbcca31139addc3224b375019f0a8608f6239d9\", \"type of \\\"\\\".join(boot1000.columns) is not str. \\\"\\\".join(boot1000.columns) should be an str\"\n", - "assert sha1(str(len(\"\".join(boot1000.columns))).encode(\"utf-8\")+b\"fab82ccb08ca682f\").hexdigest() == \"50d28b3e4b41d77cd3442c96f074e84e61951977\", \"length of \\\"\\\".join(boot1000.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot1000.columns).lower()).encode(\"utf-8\")+b\"fab82ccb08ca682f\").hexdigest() == \"156ccedf4fcba6c6b340a709289e746a3bcf0196\", \"value of \\\"\\\".join(boot1000.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot1000.columns)).encode(\"utf-8\")+b\"fab82ccb08ca682f\").hexdigest() == \"156ccedf4fcba6c6b340a709289e746a3bcf0196\", \"correct string value of \\\"\\\".join(boot1000.columns) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(boot1000.columns))).encode(\"utf-8\")+b\"63ea4e07561ddf09\").hexdigest() == \"b01ec271521d6df183bfc2a779592eff17481240\", \"type of \\\"\\\".join(boot1000.columns) is not str. \\\"\\\".join(boot1000.columns) should be an str\"\n", + "assert sha1(str(len(\"\".join(boot1000.columns))).encode(\"utf-8\")+b\"63ea4e07561ddf09\").hexdigest() == \"3bb3f30a50b4f5a9cde6a6e85234b412cb36c1dd\", \"length of \\\"\\\".join(boot1000.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot1000.columns).lower()).encode(\"utf-8\")+b\"63ea4e07561ddf09\").hexdigest() == \"aeb7c6b6b021583a6c75d4a04b3124745ea1b495\", \"value of \\\"\\\".join(boot1000.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot1000.columns)).encode(\"utf-8\")+b\"63ea4e07561ddf09\").hexdigest() == \"aeb7c6b6b021583a6c75d4a04b3124745ea1b495\", \"correct string value of \\\"\\\".join(boot1000.columns) but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot1000.shape[0])).encode(\"utf-8\")+b\"d85870fec100fde1\").hexdigest() == \"01fc8671b6c1f67acfa96c7a719ef2c9d94fa019\", \"type of boot1000.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot1000.shape[0]).encode(\"utf-8\")+b\"d85870fec100fde1\").hexdigest() == \"3db4bb3fa25e1e6f46e493de68c1680b704477e7\", \"value of boot1000.shape[0] is not correct\"\n", + "assert sha1(str(type(boot1000.shape[0])).encode(\"utf-8\")+b\"3ea327557f6eab73\").hexdigest() == \"48da29bd7a46007a274c21ada92c85974e458eb9\", \"type of boot1000.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot1000.shape[0]).encode(\"utf-8\")+b\"3ea327557f6eab73\").hexdigest() == \"2071cc49e555e315e8c3fc08c44a0a620d8ecb13\", \"value of boot1000.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(boot1000.age), 2))).encode(\"utf-8\")+b\"ed7f3bebacd8daab\").hexdigest() == \"b268b07f763d1daac43e0530ea3937e5f0538772\", \"type of round(sum(boot1000.age), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(boot1000.age), 2), 2)).encode(\"utf-8\")+b\"ed7f3bebacd8daab\").hexdigest() == \"822716009bb248f11d5017f59fd077e73fbfeced\", \"value of round(sum(boot1000.age), 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(boot1000.age), 2))).encode(\"utf-8\")+b\"31c88848d898e601\").hexdigest() == \"7596397603fe220139e0fe69b56d2e516d885cf1\", \"type of round(sum(boot1000.age), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(boot1000.age), 2), 2)).encode(\"utf-8\")+b\"31c88848d898e601\").hexdigest() == \"852ef783bf8397129afa3aecf87017431a503ff9\", \"value of round(sum(boot1000.age), 2) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum([x for x in range(boot1000.shape[0])]))).encode(\"utf-8\")+b\"ca1e2b4af0f838cd\").hexdigest() == \"73222ccdbf9f74501ab6f670ca43d0629f9fda59\", \"type of sum([x for x in range(boot1000.shape[0])]) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum([x for x in range(boot1000.shape[0])])).encode(\"utf-8\")+b\"ca1e2b4af0f838cd\").hexdigest() == \"63d9b6968f52f6abf489b1e3d9d8a8d2e8c21880\", \"value of sum([x for x in range(boot1000.shape[0])]) is not correct\"\n", + "assert sha1(str(type(sum([x for x in range(boot1000.shape[0])]))).encode(\"utf-8\")+b\"1b92d85d10a9e979\").hexdigest() == \"c37bf45cc5c9c133920b082cc2382825a40c714b\", \"type of sum([x for x in range(boot1000.shape[0])]) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum([x for x in range(boot1000.shape[0])])).encode(\"utf-8\")+b\"1b92d85d10a9e979\").hexdigest() == \"b5ecd16717565d4481cf4f39cc9bae49c5d88682\", \"value of sum([x for x in range(boot1000.shape[0])]) is not correct\"\n", "\n", "print('Success!')" ] @@ -1468,7 +1445,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d168af9949c99a094b9323b9c5dfc2e3", + "checksum": "7833e6a3adf92183c05b55876e034bba", "grade": true, "grade_id": "cell-bcf16788d57cef52", "locked": true, @@ -1481,19 +1458,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(boot1000_means.shape[0])).encode(\"utf-8\")+b\"14406c237a8080ef\").hexdigest() == \"277b26acc62bc184a61c9563f7d04191bc358384\", \"type of boot1000_means.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot1000_means.shape[0]).encode(\"utf-8\")+b\"14406c237a8080ef\").hexdigest() == \"b94c84f9d48abf9215ea4f19ef73e42f5ec7986c\", \"value of boot1000_means.shape[0] is not correct\"\n", + "assert sha1(str(type(boot1000_means.shape[0])).encode(\"utf-8\")+b\"3674122a6d8854c8\").hexdigest() == \"28a76771c0b951ef3b034a3ed6b550b87bd66946\", \"type of boot1000_means.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot1000_means.shape[0]).encode(\"utf-8\")+b\"3674122a6d8854c8\").hexdigest() == \"d77231498d483051818598673d885d07daf16aa0\", \"value of boot1000_means.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(boot1000_means.shape[1])).encode(\"utf-8\")+b\"ee16ef4810ccd00e\").hexdigest() == \"e4fcd95927b06502c835fc867424e7d6fe4ac9cd\", \"type of boot1000_means.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot1000_means.shape[1]).encode(\"utf-8\")+b\"ee16ef4810ccd00e\").hexdigest() == \"795391dd59904cbdb2083f4da2409c5e32a34053\", \"value of boot1000_means.shape[1] is not correct\"\n", + "assert sha1(str(type(boot1000_means.shape[1])).encode(\"utf-8\")+b\"540c96d6113009ae\").hexdigest() == \"4921a207aa1fecad4551b22ed2c922fae7aa7c26\", \"type of boot1000_means.shape[1] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot1000_means.shape[1]).encode(\"utf-8\")+b\"540c96d6113009ae\").hexdigest() == \"527c1570d667354d15c8cbe7c36fa15afe7a2e8b\", \"value of boot1000_means.shape[1] is not correct\"\n", "\n", - "assert sha1(str(type(\"\".join(boot1000_means.columns))).encode(\"utf-8\")+b\"f82706726418d8f3\").hexdigest() == \"2d84da79bffb66ab5169a0169f107eaeebc9725f\", \"type of \\\"\\\".join(boot1000_means.columns) is not str. \\\"\\\".join(boot1000_means.columns) should be an str\"\n", - "assert sha1(str(len(\"\".join(boot1000_means.columns))).encode(\"utf-8\")+b\"f82706726418d8f3\").hexdigest() == \"c52f7f550e9820b2be9800aef198e63fb172107b\", \"length of \\\"\\\".join(boot1000_means.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot1000_means.columns).lower()).encode(\"utf-8\")+b\"f82706726418d8f3\").hexdigest() == \"aa53ea505136cf70d768e577d83347dc2530e7da\", \"value of \\\"\\\".join(boot1000_means.columns) is not correct\"\n", - "assert sha1(str(\"\".join(boot1000_means.columns)).encode(\"utf-8\")+b\"f82706726418d8f3\").hexdigest() == \"aa53ea505136cf70d768e577d83347dc2530e7da\", \"correct string value of \\\"\\\".join(boot1000_means.columns) but incorrect case of letters\"\n", + "assert sha1(str(type(\"\".join(boot1000_means.columns))).encode(\"utf-8\")+b\"6264e31c8bda0d24\").hexdigest() == \"904c03056201d4d45ae371079ea0dcfdd1c28dd7\", \"type of \\\"\\\".join(boot1000_means.columns) is not str. \\\"\\\".join(boot1000_means.columns) should be an str\"\n", + "assert sha1(str(len(\"\".join(boot1000_means.columns))).encode(\"utf-8\")+b\"6264e31c8bda0d24\").hexdigest() == \"d827aa18ecec8547aa032abe14c68af2933ebb34\", \"length of \\\"\\\".join(boot1000_means.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot1000_means.columns).lower()).encode(\"utf-8\")+b\"6264e31c8bda0d24\").hexdigest() == \"50ecfe8571c3eee96997bb1211b7d58b0695c316\", \"value of \\\"\\\".join(boot1000_means.columns) is not correct\"\n", + "assert sha1(str(\"\".join(boot1000_means.columns)).encode(\"utf-8\")+b\"6264e31c8bda0d24\").hexdigest() == \"50ecfe8571c3eee96997bb1211b7d58b0695c316\", \"correct string value of \\\"\\\".join(boot1000_means.columns) but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(round(boot1000_means[\"mean_age\"][0], 2))).encode(\"utf-8\")+b\"1d9accfce20d4ac7\").hexdigest() == \"79fab0be5873c6a8d760c1ff9be9c783818722cf\", \"type of round(boot1000_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", - "assert sha1(str(round(boot1000_means[\"mean_age\"][0], 2)).encode(\"utf-8\")+b\"1d9accfce20d4ac7\").hexdigest() == \"1d416a84d3c4b5a0db51a53753178d2fdcbcfd92\", \"value of round(boot1000_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", + "assert sha1(str(type(round(boot1000_means[\"mean_age\"][0], 2))).encode(\"utf-8\")+b\"07f7ca853d7cf586\").hexdigest() == \"324d1f74eba722006a41d18f94611a7b52aa54a8\", \"type of round(boot1000_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", + "assert sha1(str(round(boot1000_means[\"mean_age\"][0], 2)).encode(\"utf-8\")+b\"07f7ca853d7cf586\").hexdigest() == \"1ff94d78cd163c085c8fefc9c810354acf499920\", \"value of round(boot1000_means[\\\"mean_age\\\"][0], 2) is not correct\"\n", "\n", "print('Success!')" ] @@ -1552,7 +1529,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2613903f6e622d53d6c12ce17cdd5ead", + "checksum": "f27d5cf930f67e627928d5b4ff434eb5", "grade": true, "grade_id": "cell-13a4f6d6fbcd8cbb", "locked": true, @@ -1565,25 +1542,25 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(boot_est_dist.encoding.x.field)).encode(\"utf-8\")+b\"22048e0dbe3d3f50\").hexdigest() == \"755c27b781a23c17f44e3c72ecaeb8242ffe79e9\", \"type of boot_est_dist.encoding.x.field is not correct\"\n", - "assert sha1(str(boot_est_dist.encoding.x.field).encode(\"utf-8\")+b\"22048e0dbe3d3f50\").hexdigest() == \"05309ec03d2008ceb920cd852e2146dfe9fc8065\", \"value of boot_est_dist.encoding.x.field is not correct\"\n", + "assert sha1(str(type(boot_est_dist.encoding.x.field)).encode(\"utf-8\")+b\"e1ae5db11524e510\").hexdigest() == \"2c5a25b9e120d0defe18f47dfefc7386eae4882c\", \"type of boot_est_dist.encoding.x.field is not correct\"\n", + "assert sha1(str(boot_est_dist.encoding.x.field).encode(\"utf-8\")+b\"e1ae5db11524e510\").hexdigest() == \"aec24360d1624d42df526d785e46a01efd273bef\", \"value of boot_est_dist.encoding.x.field is not correct\"\n", "\n", - "assert sha1(str(type(boot_est_dist.mark)).encode(\"utf-8\")+b\"ed58c5b3e239c248\").hexdigest() == \"3bb96e7f5c0ca83dbf4cff6818b79e77067eacbd\", \"type of boot_est_dist.mark is not str. boot_est_dist.mark should be an str\"\n", - "assert sha1(str(len(boot_est_dist.mark)).encode(\"utf-8\")+b\"ed58c5b3e239c248\").hexdigest() == \"22655a894f282f13145724a9cdb5a8db862d2334\", \"length of boot_est_dist.mark is not correct\"\n", - "assert sha1(str(boot_est_dist.mark.lower()).encode(\"utf-8\")+b\"ed58c5b3e239c248\").hexdigest() == \"6cc2b7dc8341f270154bac9b7cb3651274bc208b\", \"value of boot_est_dist.mark is not correct\"\n", - "assert sha1(str(boot_est_dist.mark).encode(\"utf-8\")+b\"ed58c5b3e239c248\").hexdigest() == \"6cc2b7dc8341f270154bac9b7cb3651274bc208b\", \"correct string value of boot_est_dist.mark but incorrect case of letters\"\n", + "assert sha1(str(type(boot_est_dist.mark)).encode(\"utf-8\")+b\"a797208c2c3dd03a\").hexdigest() == \"ab501753fb06f3c4205999f3b9eff9ec56194614\", \"type of boot_est_dist.mark is not str. boot_est_dist.mark should be an str\"\n", + "assert sha1(str(len(boot_est_dist.mark)).encode(\"utf-8\")+b\"a797208c2c3dd03a\").hexdigest() == \"5703bb20fb240e8c980564d69e18f23f006519b6\", \"length of boot_est_dist.mark is not correct\"\n", + "assert sha1(str(boot_est_dist.mark.lower()).encode(\"utf-8\")+b\"a797208c2c3dd03a\").hexdigest() == \"21a4c0f0e2111658883a05f6529baaf477247aa6\", \"value of boot_est_dist.mark is not correct\"\n", + "assert sha1(str(boot_est_dist.mark).encode(\"utf-8\")+b\"a797208c2c3dd03a\").hexdigest() == \"21a4c0f0e2111658883a05f6529baaf477247aa6\", \"correct string value of boot_est_dist.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(boot_est_dist.data.shape[0])).encode(\"utf-8\")+b\"c37e1be3479089dc\").hexdigest() == \"eb0676b4ed465a79ea9024d6b07c94febfeba79c\", \"type of boot_est_dist.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(boot_est_dist.data.shape[0]).encode(\"utf-8\")+b\"c37e1be3479089dc\").hexdigest() == \"7115d517a3c7b6085636007ebac4a1c88c9c8180\", \"value of boot_est_dist.data.shape[0] is not correct\"\n", + "assert sha1(str(type(boot_est_dist.data.shape[0])).encode(\"utf-8\")+b\"434f41bc420f7bd2\").hexdigest() == \"4a7022d9e530bdfadc84417a861aa42b25fd02d9\", \"type of boot_est_dist.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(boot_est_dist.data.shape[0]).encode(\"utf-8\")+b\"434f41bc420f7bd2\").hexdigest() == \"a2f5a706cb8d3bb8db6e3a44c7c4900c2ed9afa1\", \"value of boot_est_dist.data.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(boot_est_dist.data.sum()), 2))).encode(\"utf-8\")+b\"bfab34be361ac256\").hexdigest() == \"0ba6110bd4a5eca1ce460343e3753d2f946bc5dc\", \"type of round(sum(boot_est_dist.data.sum()), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(boot_est_dist.data.sum()), 2), 2)).encode(\"utf-8\")+b\"bfab34be361ac256\").hexdigest() == \"356c52883daaf216e8eb1fbeb71deb19f8a6ad6f\", \"value of round(sum(boot_est_dist.data.sum()), 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(boot_est_dist.data.sum()), 2))).encode(\"utf-8\")+b\"8b6ca1f486f46b6e\").hexdigest() == \"7f275bc6ccf20168f73385911160ee6918541cc7\", \"type of round(sum(boot_est_dist.data.sum()), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(boot_est_dist.data.sum()), 2), 2)).encode(\"utf-8\")+b\"8b6ca1f486f46b6e\").hexdigest() == \"ef18739285b1b9c432684ee6777e2db901ea5db1\", \"value of round(sum(boot_est_dist.data.sum()), 2) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title)).encode(\"utf-8\")+b\"64a097ac8fab43d2\").hexdigest() == \"32618dae6126eca1fe456371056d9570d4efe86a\", \"type of boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title is not bool. boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title should be a bool\"\n", - "assert sha1(str(boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title).encode(\"utf-8\")+b\"64a097ac8fab43d2\").hexdigest() == \"d683a3af45f4c410adc3b11cb175b027bf165d5e\", \"boolean value of boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title is not correct\"\n", + "assert sha1(str(type(boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title)).encode(\"utf-8\")+b\"336cb3d6102af7cb\").hexdigest() == \"1b848c0593112ad816dfa04a8c0299a60b5fff2d\", \"type of boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title is not bool. boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title should be a bool\"\n", + "assert sha1(str(boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title).encode(\"utf-8\")+b\"336cb3d6102af7cb\").hexdigest() == \"7bbd880f3f14181189f0c7cdb38a3e0fb46b83bf\", \"boolean value of boot_est_dist.encoding.x.field != boot_est_dist.encoding.x.title is not correct\"\n", "\n", - "assert sha1(str(type(boot_est_dist.title is not None)).encode(\"utf-8\")+b\"c4d1ad0e3b54845f\").hexdigest() == \"b7c593e5fa0b6bc3bbf7dc3f8c611edc5f40fdb9\", \"type of boot_est_dist.title is not None is not bool. boot_est_dist.title is not None should be a bool\"\n", - "assert sha1(str(boot_est_dist.title is not None).encode(\"utf-8\")+b\"c4d1ad0e3b54845f\").hexdigest() == \"758095916899fdf1775ed4a898e11776d185644d\", \"boolean value of boot_est_dist.title is not None is not correct\"\n", + "assert sha1(str(type(boot_est_dist.title is not None)).encode(\"utf-8\")+b\"6cce87db33c09439\").hexdigest() == \"7c84e15e94c14d8955c2e5659bdedaf36c87908d\", \"type of boot_est_dist.title is not None is not bool. boot_est_dist.title is not None should be a bool\"\n", + "assert sha1(str(boot_est_dist.title is not None).encode(\"utf-8\")+b\"6cce87db33c09439\").hexdigest() == \"c17848957d745c692e48f5a67344ebe1d9e3cfea\", \"boolean value of boot_est_dist.title is not None is not correct\"\n", "\n", "print('Success!')" ] @@ -1765,7 +1742,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d96c5635c9de75d9b2938063b562e789", + "checksum": "82c9d736f9b9f47af98962c632b7c9a1", "grade": true, "grade_id": "cell-3ea212ad593b9f57", "locked": true, @@ -1778,8 +1755,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_5)).encode(\"utf-8\")+b\"416ba23a942572e2\").hexdigest() == \"f3cb4e785b52da86f3deac20e896447180701c49\", \"type of answer2_5 is not bool. answer2_5 should be a bool\"\n", - "assert sha1(str(answer2_5).encode(\"utf-8\")+b\"416ba23a942572e2\").hexdigest() == \"bd4fa09eb4438887270d18dc5ad3cbef71b198e3\", \"boolean value of answer2_5 is not correct\"\n", + "assert sha1(str(type(answer2_5)).encode(\"utf-8\")+b\"333109d573571c48\").hexdigest() == \"d618314225389beb0290bfb10d387a32cd60d128\", \"type of answer2_5 is not bool. answer2_5 should be a bool\"\n", + "assert sha1(str(answer2_5).encode(\"utf-8\")+b\"333109d573571c48\").hexdigest() == \"a59fe9c410208efa31f91b58e1c553bedc1e3aa6\", \"boolean value of answer2_5 is not correct\"\n", "\n", "print('Success!')" ] @@ -1839,7 +1816,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d840bbfd12ca60558c790e1a67ac184c", + "checksum": "e5a4ff746589d886bfb3472a4641ba8b", "grade": true, "grade_id": "cell-b167494acba2816d", "locked": true, @@ -1852,8 +1829,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"7a8e1bca45b2049b\").hexdigest() == \"9d339753b5ac9e7c30edebf0fd609ad060dc15a9\", \"type of answer2_6 is not bool. answer2_6 should be a bool\"\n", - "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"7a8e1bca45b2049b\").hexdigest() == \"46a61683b1d7d3e1811a19a4aa6f123ee0237d71\", \"boolean value of answer2_6 is not correct\"\n", + "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"a894b33697ac9a10\").hexdigest() == \"e9b4b2abef496dc57a308a7475f233297be3c714\", \"type of answer2_6 is not bool. answer2_6 should be a bool\"\n", + "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"a894b33697ac9a10\").hexdigest() == \"9a21d707cf0fb5353389b8e11284f8e181e822e1\", \"boolean value of answer2_6 is not correct\"\n", "\n", "print('Success!')" ] @@ -1913,7 +1890,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "923b3435f5671bc729c5aea893c248bb", + "checksum": "e7c5bb659e05302ff758831d7e312ef2", "grade": true, "grade_id": "cell-2ab1350547ae451d", "locked": true, @@ -1926,8 +1903,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_7)).encode(\"utf-8\")+b\"c9e7c687b8d4b2a4\").hexdigest() == \"6f46310549b19d7e2e1a887c8f272abd90cdb0b7\", \"type of answer2_7 is not bool. answer2_7 should be a bool\"\n", - "assert sha1(str(answer2_7).encode(\"utf-8\")+b\"c9e7c687b8d4b2a4\").hexdigest() == \"1d3295a05057824c61183b2ea28d83393c8ffcdf\", \"boolean value of answer2_7 is not correct\"\n", + "assert sha1(str(type(answer2_7)).encode(\"utf-8\")+b\"bdbc82c0515a9d0b\").hexdigest() == \"cc0f0c1808e5fde91662e9fc5185cafe398a610b\", \"type of answer2_7 is not bool. answer2_7 should be a bool\"\n", + "assert sha1(str(answer2_7).encode(\"utf-8\")+b\"bdbc82c0515a9d0b\").hexdigest() == \"06fe92e661e89166e8952db2c3dfddbd0aa9d533\", \"boolean value of answer2_7 is not correct\"\n", "\n", "print('Success!')" ] @@ -1987,7 +1964,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "9662accc445609032e61086f6a9223af", + "checksum": "f1bc15bcefa42075a545f2af6ac3c85f", "grade": true, "grade_id": "cell-4d2a0325f4fd2406", "locked": true, @@ -2000,8 +1977,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_8)).encode(\"utf-8\")+b\"c99b7194247c469e\").hexdigest() == \"3667b761c05968723112cc1bd4e7731159531948\", \"type of answer2_8 is not bool. answer2_8 should be a bool\"\n", - "assert sha1(str(answer2_8).encode(\"utf-8\")+b\"c99b7194247c469e\").hexdigest() == \"1d9983b1f3d2b8506f2d05ae998165297f74b3fc\", \"boolean value of answer2_8 is not correct\"\n", + "assert sha1(str(type(answer2_8)).encode(\"utf-8\")+b\"1371c1dcf5207cb7\").hexdigest() == \"193b81d90fa1297e597dafe9dbff63d1a145d14b\", \"type of answer2_8 is not bool. answer2_8 should be a bool\"\n", + "assert sha1(str(answer2_8).encode(\"utf-8\")+b\"1371c1dcf5207cb7\").hexdigest() == \"33dd7313ca3d23098f3f2b3be236b1c14fbe67fd\", \"boolean value of answer2_8 is not correct\"\n", "\n", "print('Success!')" ] @@ -2135,7 +2112,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "cd97c4b39ba755347bf0f29c17b761ed", + "checksum": "0d479a1e9790a37739ffd793cbe76e0d", "grade": true, "grade_id": "cell-e0a24858ef65cea9", "locked": true, @@ -2148,8 +2125,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_9)).encode(\"utf-8\")+b\"d8cb590d181270bf\").hexdigest() == \"51a50aacd6479a8fc3411a3a1752c141362eeb8c\", \"type of answer2_9 is not bool. answer2_9 should be a bool\"\n", - "assert sha1(str(answer2_9).encode(\"utf-8\")+b\"d8cb590d181270bf\").hexdigest() == \"a52d19b6c70dd180dab23a73a91be741928e071c\", \"boolean value of answer2_9 is not correct\"\n", + "assert sha1(str(type(answer2_9)).encode(\"utf-8\")+b\"2f9650a96fd69a6e\").hexdigest() == \"1e705bec67edddd3e0c1c67873a1cb4408ceefa5\", \"type of answer2_9 is not bool. answer2_9 should be a bool\"\n", + "assert sha1(str(answer2_9).encode(\"utf-8\")+b\"2f9650a96fd69a6e\").hexdigest() == \"0f98b3a0d6530b7653ec812b3140431b5c7376c8\", \"boolean value of answer2_9 is not correct\"\n", "\n", "print('Success!')" ] @@ -2174,7 +2151,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/py_worksheet_intro/py_worksheet_intro.ipynb b/py_worksheet_intro/py_worksheet_intro.ipynb index d28ceb7..f755709 100644 --- a/py_worksheet_intro/py_worksheet_intro.ipynb +++ b/py_worksheet_intro/py_worksheet_intro.ipynb @@ -1057,7 +1057,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "01e6a46d1f0eb162eec6f8fadfd12bb3", + "checksum": "00e9b5fccfbe078168bb1e8cf7e66cc6", "grade": true, "grade_id": "cell-7529fc41097cffcd", "locked": true, @@ -1070,11 +1070,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(seconds_in_a_minute)).encode(\"utf-8\")+b\"14e54c56e6ac1180\").hexdigest() == \"8b0b99671b53d5799a57c7c81439e5c767665d5a\", \"type of seconds_in_a_minute is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(seconds_in_a_minute).encode(\"utf-8\")+b\"14e54c56e6ac1180\").hexdigest() == \"714429c8045e3953c74c8e262eee577abf13d775\", \"value of seconds_in_a_minute is not correct\"\n", + "assert sha1(str(type(seconds_in_a_minute)).encode(\"utf-8\")+b\"f63740cc00b619a8\").hexdigest() == \"3477a35744ae914d16ea34e3ef0503296d1c60fa\", \"type of seconds_in_a_minute is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(seconds_in_a_minute).encode(\"utf-8\")+b\"f63740cc00b619a8\").hexdigest() == \"00b3dd93aa1831461b8ead8a8420a12b56f5a557\", \"value of seconds_in_a_minute is not correct\"\n", "\n", - "assert sha1(str(type(seconds_in_an_hour)).encode(\"utf-8\")+b\"5e70d19020e7010d\").hexdigest() == \"b53c2024479afd7f41b3045da28b4fb86f8b4e53\", \"type of seconds_in_an_hour is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(seconds_in_an_hour).encode(\"utf-8\")+b\"5e70d19020e7010d\").hexdigest() == \"2c075ab4ba1e627434229186669eb126ef664351\", \"value of seconds_in_an_hour is not correct\"\n", + "assert sha1(str(type(seconds_in_an_hour)).encode(\"utf-8\")+b\"accddfbdb25cbb86\").hexdigest() == \"9318290a0f9316c20adb638b9ca35ef30802ba13\", \"type of seconds_in_an_hour is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(seconds_in_an_hour).encode(\"utf-8\")+b\"accddfbdb25cbb86\").hexdigest() == \"58b911d62083514b7978a0b375da4244c33afa17\", \"value of seconds_in_an_hour is not correct\"\n", "\n", "print('Success!')" ] @@ -1253,7 +1253,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5138b63d8e7d2834e1047a8b91bdf34c", + "checksum": "912e560a7280173abcdd2c7de1b72a3b", "grade": true, "grade_id": "cell-2503df230be07a99", "locked": true, @@ -1266,10 +1266,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(title)).encode(\"utf-8\")+b\"71ed406b47391386\").hexdigest() == \"8d39bf517b4e7c0a7bc83decaec3bdf6ce44fd42\", \"type of title is not str. title should be an str\"\n", - "assert sha1(str(len(title)).encode(\"utf-8\")+b\"71ed406b47391386\").hexdigest() == \"5ccedd32b6c715c6162d97d1cf55d7c4f6525377\", \"length of title is not correct\"\n", - "assert sha1(str(title.lower()).encode(\"utf-8\")+b\"71ed406b47391386\").hexdigest() == \"fdb4c8e4fe364cb6d763cfa0689a4cbb4c861be4\", \"value of title is not correct\"\n", - "assert sha1(str(title).encode(\"utf-8\")+b\"71ed406b47391386\").hexdigest() == \"fdb4c8e4fe364cb6d763cfa0689a4cbb4c861be4\", \"correct string value of title but incorrect case of letters\"\n", + "assert sha1(str(type(title)).encode(\"utf-8\")+b\"4a02a9fac26f187c\").hexdigest() == \"74e6c7cd604c219a09657981da8cac1adb50e305\", \"type of title is not str. title should be an str\"\n", + "assert sha1(str(len(title)).encode(\"utf-8\")+b\"4a02a9fac26f187c\").hexdigest() == \"cc89838a600cb96ac4f19d08a922e8a008ddec11\", \"length of title is not correct\"\n", + "assert sha1(str(title.lower()).encode(\"utf-8\")+b\"4a02a9fac26f187c\").hexdigest() == \"0ca4232ae884265060d5127e1d428043a1936534\", \"value of title is not correct\"\n", + "assert sha1(str(title).encode(\"utf-8\")+b\"4a02a9fac26f187c\").hexdigest() == \"0ca4232ae884265060d5127e1d428043a1936534\", \"correct string value of title but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1365,7 +1365,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "837d25b0b4c3c3b9d537b9fd70d2c07d", + "checksum": "d9886fd4ff0f8a0f1c92dbbadffc0a8e", "grade": true, "grade_id": "cell-b6d12a49c1b99ec4", "locked": true, @@ -1378,8 +1378,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(smallest)).encode(\"utf-8\")+b\"93019d88aadb409c\").hexdigest() == \"e64da006656d1e9b04da832b2b3191188dc6014c\", \"type of smallest is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(smallest).encode(\"utf-8\")+b\"93019d88aadb409c\").hexdigest() == \"c370eb5d2f72feedd9fc23603b67b73837d7e9fd\", \"value of smallest is not correct\"\n", + "assert sha1(str(type(smallest)).encode(\"utf-8\")+b\"4eea41f2186b858d\").hexdigest() == \"510a0d1322c553ff0a9812872f837985fab18af9\", \"type of smallest is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(smallest).encode(\"utf-8\")+b\"4eea41f2186b858d\").hexdigest() == \"16fd87481587d2508b6cc8d19a93d6cebd8854b4\", \"value of smallest is not correct\"\n", "\n", "print('Success!')" ] @@ -1497,7 +1497,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5259aed88fde6591036f7a9b96fe7a2a", + "checksum": "451209143807f0d714631aa2d76fa216", "grade": true, "grade_id": "cell-d3b2c1f9214bc7eb", "locked": true, @@ -1510,11 +1510,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(('numpy' in sys.modules))).encode(\"utf-8\")+b\"ac021ab079d6c7e7\").hexdigest() == \"7ef978c74f04dc6356ddad0cc36f479a396f756b\", \"type of ('numpy' in sys.modules) is not bool. ('numpy' in sys.modules) should be a bool\"\n", - "assert sha1(str(('numpy' in sys.modules)).encode(\"utf-8\")+b\"ac021ab079d6c7e7\").hexdigest() == \"37a3cd9ffecb78b87d8625439a3b544bc70c0e48\", \"boolean value of ('numpy' in sys.modules) is not correct\"\n", + "assert sha1(str(type(('numpy' in sys.modules))).encode(\"utf-8\")+b\"bf63784a0c69bee8\").hexdigest() == \"a2e7805fff17c59d5a3468875322a2367d784d5c\", \"type of ('numpy' in sys.modules) is not bool. ('numpy' in sys.modules) should be a bool\"\n", + "assert sha1(str(('numpy' in sys.modules)).encode(\"utf-8\")+b\"bf63784a0c69bee8\").hexdigest() == \"6bc7e0c230b8393a77b624b1c6e7539605237284\", \"boolean value of ('numpy' in sys.modules) is not correct\"\n", "\n", - "assert sha1(str(type((np.__name__ == 'numpy'))).encode(\"utf-8\")+b\"85bd526ac1749075\").hexdigest() == \"dbca21d9b6488e19a50e179c14662f8b308769da\", \"type of (np.__name__ == 'numpy') is not bool. (np.__name__ == 'numpy') should be a bool\"\n", - "assert sha1(str((np.__name__ == 'numpy')).encode(\"utf-8\")+b\"85bd526ac1749075\").hexdigest() == \"e91e45d5ba839f9376da35a7b6b12a4ac66fbbe9\", \"boolean value of (np.__name__ == 'numpy') is not correct\"\n", + "assert sha1(str(type((np.__name__ == 'numpy'))).encode(\"utf-8\")+b\"cccdab030c8b29ca\").hexdigest() == \"202f26d6310e1f7ff6be7f4a604e3f2b552aa238\", \"type of (np.__name__ == 'numpy') is not bool. (np.__name__ == 'numpy') should be a bool\"\n", + "assert sha1(str((np.__name__ == 'numpy')).encode(\"utf-8\")+b\"cccdab030c8b29ca\").hexdigest() == \"0f6ea0dcc7eac6bb48393e207c0c9f6eb1bf9b2f\", \"boolean value of (np.__name__ == 'numpy') is not correct\"\n", "\n", "print('Success!')" ] @@ -1674,7 +1674,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "488fff96f7cdb6f1f6d0ac23cf41fe4c", + "checksum": "e5c04f8cfbf86113b892dea3335fb468", "grade": true, "grade_id": "cell-56242dcedf383fac", "locked": true, @@ -1687,10 +1687,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer6_1)).encode(\"utf-8\")+b\"0142b53dc347542f\").hexdigest() == \"69aa4c128ad131863c97abb9ffceab42c3c01307\", \"type of answer6_1 is not str. answer6_1 should be an str\"\n", - "assert sha1(str(len(answer6_1)).encode(\"utf-8\")+b\"0142b53dc347542f\").hexdigest() == \"f5829f570770d66cd59900c4747ffb4813f609e2\", \"length of answer6_1 is not correct\"\n", - "assert sha1(str(answer6_1.lower()).encode(\"utf-8\")+b\"0142b53dc347542f\").hexdigest() == \"754b2d77038095c3e8f1c98cd8404ef6eaa3b0c5\", \"value of answer6_1 is not correct\"\n", - "assert sha1(str(answer6_1).encode(\"utf-8\")+b\"0142b53dc347542f\").hexdigest() == \"38b2f7a0c08abec2d920be7dcf1a6b57ca49b5bf\", \"correct string value of answer6_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer6_1)).encode(\"utf-8\")+b\"883c4754b8b7a3f9\").hexdigest() == \"6ef96ab387b289051f15fe12f1999a6b5b0e33c1\", \"type of answer6_1 is not str. answer6_1 should be an str\"\n", + "assert sha1(str(len(answer6_1)).encode(\"utf-8\")+b\"883c4754b8b7a3f9\").hexdigest() == \"26d3690b8eb0adbf5db9718db7cd3dc913366a42\", \"length of answer6_1 is not correct\"\n", + "assert sha1(str(answer6_1.lower()).encode(\"utf-8\")+b\"883c4754b8b7a3f9\").hexdigest() == \"989c06535122a1e83624b49f0a2867f063bfe178\", \"value of answer6_1 is not correct\"\n", + "assert sha1(str(answer6_1).encode(\"utf-8\")+b\"883c4754b8b7a3f9\").hexdigest() == \"e3f0f0d669a2123352473067a8698a5f147ac10d\", \"correct string value of answer6_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1818,7 +1818,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "23c3881169a4420dce76b6a16bab0574", + "checksum": "4daeb264511461c4db903240ec5989c5", "grade": true, "grade_id": "cell-6985376adde63175", "locked": true, @@ -1831,10 +1831,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_0_1)).encode(\"utf-8\")+b\"f071ee815e010c24\").hexdigest() == \"17b3878beb5d8e5d18cc4d0affc22a42a32b66cf\", \"type of answer7_0_1 is not str. answer7_0_1 should be an str\"\n", - "assert sha1(str(len(answer7_0_1)).encode(\"utf-8\")+b\"f071ee815e010c24\").hexdigest() == \"097c75f5dbaf9df6bbfee87573522b4bcbe26572\", \"length of answer7_0_1 is not correct\"\n", - "assert sha1(str(answer7_0_1.lower()).encode(\"utf-8\")+b\"f071ee815e010c24\").hexdigest() == \"e96fa77927419d351785e7e113c2430e05cb300a\", \"value of answer7_0_1 is not correct\"\n", - "assert sha1(str(answer7_0_1).encode(\"utf-8\")+b\"f071ee815e010c24\").hexdigest() == \"78905197497f0f55808ab2fa380c293ea60a3711\", \"correct string value of answer7_0_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer7_0_1)).encode(\"utf-8\")+b\"e95a1a9739dd8f02\").hexdigest() == \"f0fc578f4448ba4b0222b897ea62ead7b00c6aec\", \"type of answer7_0_1 is not str. answer7_0_1 should be an str\"\n", + "assert sha1(str(len(answer7_0_1)).encode(\"utf-8\")+b\"e95a1a9739dd8f02\").hexdigest() == \"1a671eea6191956499dde85d140af122e1b98fbd\", \"length of answer7_0_1 is not correct\"\n", + "assert sha1(str(answer7_0_1.lower()).encode(\"utf-8\")+b\"e95a1a9739dd8f02\").hexdigest() == \"79ed31bb1136ab2d71571ad4f818f241c821c7b1\", \"value of answer7_0_1 is not correct\"\n", + "assert sha1(str(answer7_0_1).encode(\"utf-8\")+b\"e95a1a9739dd8f02\").hexdigest() == \"ff4e126d329172756e2d8da6cad72647d1e2f1d1\", \"correct string value of answer7_0_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1897,7 +1897,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "515901b22b7db12a2b917b47b57d6106", + "checksum": "5459e559023df81cb00b2feffb1b94d4", "grade": true, "grade_id": "cell-403f625bd1bc2a0d", "locked": true, @@ -1910,8 +1910,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_0_2)).encode(\"utf-8\")+b\"3ee4b6c7da189887\").hexdigest() == \"ea4a2f2bc682da55197b4394c4cf080a10c1f51e\", \"type of answer7_0_2 is not bool. answer7_0_2 should be a bool\"\n", - "assert sha1(str(answer7_0_2).encode(\"utf-8\")+b\"3ee4b6c7da189887\").hexdigest() == \"854eedb70eb83d545b274eb1e023582b596d20bf\", \"boolean value of answer7_0_2 is not correct\"\n", + "assert sha1(str(type(answer7_0_2)).encode(\"utf-8\")+b\"2836086c95a7907f\").hexdigest() == \"45eb09084073819c0a304d4790629bcb81670bf1\", \"type of answer7_0_2 is not bool. answer7_0_2 should be a bool\"\n", + "assert sha1(str(answer7_0_2).encode(\"utf-8\")+b\"2836086c95a7907f\").hexdigest() == \"f1c2021a498614a2ff707056aa4717c9b7577b98\", \"boolean value of answer7_0_2 is not correct\"\n", "\n", "print('Success!')" ] @@ -1982,7 +1982,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ae0c4125d0c9e5cca1c36b6e4858e2be", + "checksum": "b37ce78b5da51504e877a2e05a54ddd3", "grade": true, "grade_id": "cell-fd2aff2cf89d487b", "locked": true, @@ -1995,10 +1995,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_0_3)).encode(\"utf-8\")+b\"f89aca9a84751b8e\").hexdigest() == \"5592c12e4406d4f629a0fb5cffa695f1eb5060be\", \"type of answer7_0_3 is not str. answer7_0_3 should be an str\"\n", - "assert sha1(str(len(answer7_0_3)).encode(\"utf-8\")+b\"f89aca9a84751b8e\").hexdigest() == \"2987234051bd57ead279858e5755b775591255b1\", \"length of answer7_0_3 is not correct\"\n", - "assert sha1(str(answer7_0_3.lower()).encode(\"utf-8\")+b\"f89aca9a84751b8e\").hexdigest() == \"65f19c054e6dd17f6f297fda2ba4a8b632f060fb\", \"value of answer7_0_3 is not correct\"\n", - "assert sha1(str(answer7_0_3).encode(\"utf-8\")+b\"f89aca9a84751b8e\").hexdigest() == \"6e48acaba368a916d583e2b71481ecbf50784969\", \"correct string value of answer7_0_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer7_0_3)).encode(\"utf-8\")+b\"69f0b8467af40818\").hexdigest() == \"e42b5befbba34eca5df749889358d48033300d10\", \"type of answer7_0_3 is not str. answer7_0_3 should be an str\"\n", + "assert sha1(str(len(answer7_0_3)).encode(\"utf-8\")+b\"69f0b8467af40818\").hexdigest() == \"5f13f211f39f378913515d3f2c23cfc4b5a4f231\", \"length of answer7_0_3 is not correct\"\n", + "assert sha1(str(answer7_0_3.lower()).encode(\"utf-8\")+b\"69f0b8467af40818\").hexdigest() == \"e4ed89359a4b65d72707d4dc013d3926f49f0ae0\", \"value of answer7_0_3 is not correct\"\n", + "assert sha1(str(answer7_0_3).encode(\"utf-8\")+b\"69f0b8467af40818\").hexdigest() == \"af40803cebbf272c09f500c64833537c55585e2e\", \"correct string value of answer7_0_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2104,7 +2104,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "97fc37f9f1ac5d4710129ff620dadc04", + "checksum": "8e06626d1ef36c98b10c8de8c705a05c", "grade": true, "grade_id": "cell-240e3959187bfdd4", "locked": true, @@ -2117,18 +2117,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_small)).encode(\"utf-8\")+b\"2d1efc1f0099f19b\").hexdigest() == \"adcb0b2038b79a8016cd143d4e0978522b2cb7f5\", \"type of type(marathon_small) is not correct\"\n", + "assert sha1(str(type(marathon_small)).encode(\"utf-8\")+b\"2b2cd8a8f7191b99\").hexdigest() == \"f70fd1cb365e7ef849abb68e07fcded0b8f51544\", \"type of type(marathon_small) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_small.shape)).encode(\"utf-8\")+b\"d7d9227cb846f91f\").hexdigest() == \"073146ed1e3af1c0c1a1475b5717821d86b53c31\", \"type of marathon_small.shape is not tuple. marathon_small.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_small.shape)).encode(\"utf-8\")+b\"d7d9227cb846f91f\").hexdigest() == \"21915d43526314e00cdf73e1f01306a1ee761707\", \"length of marathon_small.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_small.shape))).encode(\"utf-8\")+b\"d7d9227cb846f91f\").hexdigest() == \"97731a4af53fbbc8ca66e564167b5638846d49bd\", \"values of marathon_small.shape are not correct\"\n", - "assert sha1(str(marathon_small.shape).encode(\"utf-8\")+b\"d7d9227cb846f91f\").hexdigest() == \"034d0c6cabca9b5bf629aacb74c5d4a95fc010e0\", \"order of elements of marathon_small.shape is not correct\"\n", + "assert sha1(str(type(marathon_small.shape)).encode(\"utf-8\")+b\"554d659718d61ba6\").hexdigest() == \"37d9acd1ce275b3115cb09c44b01b4912cb468b3\", \"type of marathon_small.shape is not tuple. marathon_small.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_small.shape)).encode(\"utf-8\")+b\"554d659718d61ba6\").hexdigest() == \"ac4aa5352c2f9f41b21ea9aacef2791c1ef4930d\", \"length of marathon_small.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_small.shape))).encode(\"utf-8\")+b\"554d659718d61ba6\").hexdigest() == \"991ba07577ed8a6d05d3e14f114b2fde519b585f\", \"values of marathon_small.shape are not correct\"\n", + "assert sha1(str(marathon_small.shape).encode(\"utf-8\")+b\"554d659718d61ba6\").hexdigest() == \"b73f34a6fa67f28c61b09dac0b47d9fb7fe17ef4\", \"order of elements of marathon_small.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_small.age))).encode(\"utf-8\")+b\"1d6759733b9c9ce7\").hexdigest() == \"887b94dcc4cbc4a18d7c206975245be8c19cce82\", \"type of sum(marathon_small.age) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_small.age), 2)).encode(\"utf-8\")+b\"1d6759733b9c9ce7\").hexdigest() == \"cabde3fd1eee4e8dc9090ab6950215acdde22098\", \"value of sum(marathon_small.age) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_small.age))).encode(\"utf-8\")+b\"bd89c56249909613\").hexdigest() == \"899d284abdf751ed98eb68ba0d5e12fb6ceb3e4f\", \"type of sum(marathon_small.age) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_small.age), 2)).encode(\"utf-8\")+b\"bd89c56249909613\").hexdigest() == \"a518ff73378773221c197311edd70ca545c82a36\", \"value of sum(marathon_small.age) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(marathon_small.columns.values)).encode(\"utf-8\")+b\"19f564f10c0ff011\").hexdigest() == \"f695b549432a5c88b149274dce2da2011ad6d6bf\", \"type of marathon_small.columns.values is not correct\"\n", - "assert sha1(str(marathon_small.columns.values).encode(\"utf-8\")+b\"19f564f10c0ff011\").hexdigest() == \"1b0bc41530b2dc6666064168dfc4fb3e2684233e\", \"value of marathon_small.columns.values is not correct\"\n", + "assert sha1(str(type(marathon_small.columns.values)).encode(\"utf-8\")+b\"2ced1db6836e8c39\").hexdigest() == \"fa85611df34b71d39b67d8094d4004a5a88e4bce\", \"type of marathon_small.columns.values is not correct\"\n", + "assert sha1(str(marathon_small.columns.values).encode(\"utf-8\")+b\"2ced1db6836e8c39\").hexdigest() == \"15ff054fbb79b56c3d79c26a21acb8835e46f6b9\", \"value of marathon_small.columns.values is not correct\"\n", "\n", "print('Success!')" ] @@ -2198,7 +2198,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "dd9a51c8b43ddf75bfba793bf4a41429", + "checksum": "76b49eb3d3e0a5cbc6efc2cd70b1758c", "grade": true, "grade_id": "cell-d67be1745e12b089", "locked": true, @@ -2211,10 +2211,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_1_2)).encode(\"utf-8\")+b\"9f1aa143c5d538d4\").hexdigest() == \"065ce74e66887ec38a862e8cb64cc637bee6cbc4\", \"type of answer7_1_2 is not str. answer7_1_2 should be an str\"\n", - "assert sha1(str(len(answer7_1_2)).encode(\"utf-8\")+b\"9f1aa143c5d538d4\").hexdigest() == \"8b52f7f074d8c564e2e19be0f30b64d054f76e9d\", \"length of answer7_1_2 is not correct\"\n", - "assert sha1(str(answer7_1_2.lower()).encode(\"utf-8\")+b\"9f1aa143c5d538d4\").hexdigest() == \"5808173733649f6b4347ff152c2da50b9bf744c2\", \"value of answer7_1_2 is not correct\"\n", - "assert sha1(str(answer7_1_2).encode(\"utf-8\")+b\"9f1aa143c5d538d4\").hexdigest() == \"0d1ef5ed4a8387ac677d7536aa0866f1a9c9f31f\", \"correct string value of answer7_1_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer7_1_2)).encode(\"utf-8\")+b\"cc7f1e4f1b65d80f\").hexdigest() == \"e77058f13b23c94bbca2e0fa929e1398f7be3ea0\", \"type of answer7_1_2 is not str. answer7_1_2 should be an str\"\n", + "assert sha1(str(len(answer7_1_2)).encode(\"utf-8\")+b\"cc7f1e4f1b65d80f\").hexdigest() == \"f38386450d509d040820b52b4378b3477460756f\", \"length of answer7_1_2 is not correct\"\n", + "assert sha1(str(answer7_1_2.lower()).encode(\"utf-8\")+b\"cc7f1e4f1b65d80f\").hexdigest() == \"629a384db2e71cc7ca53221944d701682bf45c3b\", \"value of answer7_1_2 is not correct\"\n", + "assert sha1(str(answer7_1_2).encode(\"utf-8\")+b\"cc7f1e4f1b65d80f\").hexdigest() == \"fc42f4a0c2d7677ca8a98724586c050e5c0c587a\", \"correct string value of answer7_1_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2364,7 +2364,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "72dc42d522dde976153ba2c33654f0fa", + "checksum": "4589492470aaf3f225712f6843ae448c", "grade": true, "grade_id": "cell-f29f4e7f8262ef98", "locked": true, @@ -2377,10 +2377,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(rows_and_columns)).encode(\"utf-8\")+b\"ad832ebbca9e6c4a\").hexdigest() == \"f17278d47e05fc4fc8ec1026dac426a3d09fc48f\", \"type of rows_and_columns is not tuple. rows_and_columns should be a tuple\"\n", - "assert sha1(str(len(rows_and_columns)).encode(\"utf-8\")+b\"ad832ebbca9e6c4a\").hexdigest() == \"36ca1cabc2d72ee53bed008f3038a2a551811c95\", \"length of rows_and_columns is not correct\"\n", - "assert sha1(str(sorted(map(str, rows_and_columns))).encode(\"utf-8\")+b\"ad832ebbca9e6c4a\").hexdigest() == \"852ced90ce11408f155cd99dfe5a6729373ffc13\", \"values of rows_and_columns are not correct\"\n", - "assert sha1(str(rows_and_columns).encode(\"utf-8\")+b\"ad832ebbca9e6c4a\").hexdigest() == \"e028fe51be3069f3975fb6cab6a3582b38d3a9d2\", \"order of elements of rows_and_columns is not correct\"\n", + "assert sha1(str(type(rows_and_columns)).encode(\"utf-8\")+b\"2643cd4864760c7b\").hexdigest() == \"b74ee382d9f6255ecfc54cfbedde786c480b1079\", \"type of rows_and_columns is not tuple. rows_and_columns should be a tuple\"\n", + "assert sha1(str(len(rows_and_columns)).encode(\"utf-8\")+b\"2643cd4864760c7b\").hexdigest() == \"c805f45f38681b1a3af1c5161fc6cd0031e9ab81\", \"length of rows_and_columns is not correct\"\n", + "assert sha1(str(sorted(map(str, rows_and_columns))).encode(\"utf-8\")+b\"2643cd4864760c7b\").hexdigest() == \"38f75643d15c8c19ea3b7ec5f567254da2148e8d\", \"values of rows_and_columns are not correct\"\n", + "assert sha1(str(rows_and_columns).encode(\"utf-8\")+b\"2643cd4864760c7b\").hexdigest() == \"44f6b1a1968095d7eecf8e9646c902213bb581b7\", \"order of elements of rows_and_columns is not correct\"\n", "\n", "print('Success!')" ] @@ -2499,7 +2499,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c0dc84f6afbd614d3ade7239ad5e32e6", + "checksum": "8e41ab6d7f81817053962780fc539029", "grade": true, "grade_id": "cell-6f763cc77fbd7391", "locked": true, @@ -2512,16 +2512,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_filtered_rows.shape)).encode(\"utf-8\")+b\"e0d10d567cce5100\").hexdigest() == \"dba0d2aaa156ea81bf598d57125eb50b1fa98418\", \"type of marathon_filtered_rows.shape is not tuple. marathon_filtered_rows.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_filtered_rows.shape)).encode(\"utf-8\")+b\"e0d10d567cce5100\").hexdigest() == \"e39acd6bc78099e2f21d9ccaba61f83d4397ac44\", \"length of marathon_filtered_rows.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_filtered_rows.shape))).encode(\"utf-8\")+b\"e0d10d567cce5100\").hexdigest() == \"e14969d492aabcfcacf9e42cfbdde82aa085e32a\", \"values of marathon_filtered_rows.shape are not correct\"\n", - "assert sha1(str(marathon_filtered_rows.shape).encode(\"utf-8\")+b\"e0d10d567cce5100\").hexdigest() == \"cde319c49f07d701f53f72f32177f46836e2a294\", \"order of elements of marathon_filtered_rows.shape is not correct\"\n", + "assert sha1(str(type(marathon_filtered_rows.shape)).encode(\"utf-8\")+b\"ccfe0e29d319f929\").hexdigest() == \"7b1acb62efc3615dde2f5348970ca1d488afe636\", \"type of marathon_filtered_rows.shape is not tuple. marathon_filtered_rows.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_filtered_rows.shape)).encode(\"utf-8\")+b\"ccfe0e29d319f929\").hexdigest() == \"407a5f3d08feb98b7ccfa547baa5ff069aa3f95e\", \"length of marathon_filtered_rows.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_filtered_rows.shape))).encode(\"utf-8\")+b\"ccfe0e29d319f929\").hexdigest() == \"d2d10516859e96b45e92bb81077ad68341ab9b07\", \"values of marathon_filtered_rows.shape are not correct\"\n", + "assert sha1(str(marathon_filtered_rows.shape).encode(\"utf-8\")+b\"ccfe0e29d319f929\").hexdigest() == \"74f90c301eded60f5da492e4bffcb09cb7e7ea08\", \"order of elements of marathon_filtered_rows.shape is not correct\"\n", "\n", - "assert sha1(str(type(marathon_filtered_rows.columns.values)).encode(\"utf-8\")+b\"5be27c1177870cd9\").hexdigest() == \"52ccd0109dd84629b08f058f27be7c57b5aaccdc\", \"type of marathon_filtered_rows.columns.values is not correct\"\n", - "assert sha1(str(marathon_filtered_rows.columns.values).encode(\"utf-8\")+b\"5be27c1177870cd9\").hexdigest() == \"6a8f19c3e8864f8ed0a98bf329adb8e200af4417\", \"value of marathon_filtered_rows.columns.values is not correct\"\n", + "assert sha1(str(type(marathon_filtered_rows.columns.values)).encode(\"utf-8\")+b\"2f3446aebf8f5c43\").hexdigest() == \"efd67b5e45f1626067ce6a30599317177513c90c\", \"type of marathon_filtered_rows.columns.values is not correct\"\n", + "assert sha1(str(marathon_filtered_rows.columns.values).encode(\"utf-8\")+b\"2f3446aebf8f5c43\").hexdigest() == \"83d6285fd3cc1d9301fe6c84dbbb876ca59a5e1b\", \"value of marathon_filtered_rows.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_filtered_rows.bmi))).encode(\"utf-8\")+b\"6fb196bb45ecae35\").hexdigest() == \"6e01a201c8b8e2d036da425a45a64574f7d55d9b\", \"type of sum(marathon_filtered_rows.bmi) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_filtered_rows.bmi), 2)).encode(\"utf-8\")+b\"6fb196bb45ecae35\").hexdigest() == \"3ae59581d8745ddb80fd5c0dd3e658a8162db3e0\", \"value of sum(marathon_filtered_rows.bmi) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_filtered_rows.bmi))).encode(\"utf-8\")+b\"e87f6e5a1c41aaf4\").hexdigest() == \"b80e7deb6dd045be7170931e580b886466c66d47\", \"type of sum(marathon_filtered_rows.bmi) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_filtered_rows.bmi), 2)).encode(\"utf-8\")+b\"e87f6e5a1c41aaf4\").hexdigest() == \"7636ed74b0e2fda6463f8ad2fbe032e33447258f\", \"value of sum(marathon_filtered_rows.bmi) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -2582,7 +2582,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e43dc45e2b219b1259eac088bef80f5e", + "checksum": "fcf7e04a81e1968596f6c3855b1c1478", "grade": true, "grade_id": "cell-b08895f4f287a649", "locked": true, @@ -2595,16 +2595,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_filtered_columns.shape)).encode(\"utf-8\")+b\"df6f98abb5d7cd53\").hexdigest() == \"1708cd7703f0df8130db7c2a05e0dfe3b5c34c8d\", \"type of marathon_filtered_columns.shape is not tuple. marathon_filtered_columns.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_filtered_columns.shape)).encode(\"utf-8\")+b\"df6f98abb5d7cd53\").hexdigest() == \"b52303f223059d0fff57e1bb19459a3bb0a6df40\", \"length of marathon_filtered_columns.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_filtered_columns.shape))).encode(\"utf-8\")+b\"df6f98abb5d7cd53\").hexdigest() == \"53f8215e37ea072d28f895f7b8d861381e3c725e\", \"values of marathon_filtered_columns.shape are not correct\"\n", - "assert sha1(str(marathon_filtered_columns.shape).encode(\"utf-8\")+b\"df6f98abb5d7cd53\").hexdigest() == \"b74bb3c62b621f663717eeb33dcb3f7c3100ada1\", \"order of elements of marathon_filtered_columns.shape is not correct\"\n", + "assert sha1(str(type(marathon_filtered_columns.shape)).encode(\"utf-8\")+b\"885ff3263b7b102c\").hexdigest() == \"b5cc4cfcc9708c03d74daabdfc7199c66f68883a\", \"type of marathon_filtered_columns.shape is not tuple. marathon_filtered_columns.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_filtered_columns.shape)).encode(\"utf-8\")+b\"885ff3263b7b102c\").hexdigest() == \"c8749996a2013e1776cd445bcbc9120971edb9ae\", \"length of marathon_filtered_columns.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_filtered_columns.shape))).encode(\"utf-8\")+b\"885ff3263b7b102c\").hexdigest() == \"e446e84168ae47dac43734f3d8c9c56e44d478b3\", \"values of marathon_filtered_columns.shape are not correct\"\n", + "assert sha1(str(marathon_filtered_columns.shape).encode(\"utf-8\")+b\"885ff3263b7b102c\").hexdigest() == \"36d3ef6afa6647512e54685a9c536cd4cd0a6882\", \"order of elements of marathon_filtered_columns.shape is not correct\"\n", "\n", - "assert sha1(str(type(marathon_filtered_columns.columns.values)).encode(\"utf-8\")+b\"c789e7520a024057\").hexdigest() == \"409f1fd5883ec6ee79c121e44f1c45c799365a62\", \"type of marathon_filtered_columns.columns.values is not correct\"\n", - "assert sha1(str(marathon_filtered_columns.columns.values).encode(\"utf-8\")+b\"c789e7520a024057\").hexdigest() == \"8c8ab37bc7fe8fce40355f5c7af6faafcf4a644a\", \"value of marathon_filtered_columns.columns.values is not correct\"\n", + "assert sha1(str(type(marathon_filtered_columns.columns.values)).encode(\"utf-8\")+b\"8bca4c14844dd0cb\").hexdigest() == \"0186e1a49efec1a01105f6d335bd27fe651db204\", \"type of marathon_filtered_columns.columns.values is not correct\"\n", + "assert sha1(str(marathon_filtered_columns.columns.values).encode(\"utf-8\")+b\"8bca4c14844dd0cb\").hexdigest() == \"1fe973701c79090253e0f4ce0aa2143a6fff9737\", \"value of marathon_filtered_columns.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_filtered_columns.bmi))).encode(\"utf-8\")+b\"40591939e4a0f0a4\").hexdigest() == \"1155cc1dd82836fa031994ec164c60e1a0e558a6\", \"type of sum(marathon_filtered_columns.bmi) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_filtered_columns.bmi), 2)).encode(\"utf-8\")+b\"40591939e4a0f0a4\").hexdigest() == \"26469e1ff2717cb873d191a829281458ae5d9b2e\", \"value of sum(marathon_filtered_columns.bmi) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_filtered_columns.bmi))).encode(\"utf-8\")+b\"b66e645315e45d96\").hexdigest() == \"1b52517e61df82f8e200a943aaa5b1f9e472806d\", \"type of sum(marathon_filtered_columns.bmi) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_filtered_columns.bmi), 2)).encode(\"utf-8\")+b\"b66e645315e45d96\").hexdigest() == \"707b648d56cd513591f7907fc5c4f3f95c9722fb\", \"value of sum(marathon_filtered_columns.bmi) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -2692,7 +2692,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e3772eb46fa7c8b7b0ceba90b2245c19", + "checksum": "d624198cdaea9780917ba669f7935d2d", "grade": true, "grade_id": "cell-f4c54ec7b8fb29b2", "locked": true, @@ -2705,16 +2705,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_male.shape)).encode(\"utf-8\")+b\"cfe209b86a40413b\").hexdigest() == \"09f8b56f577a52a7b77afb55295f9403004ab4ee\", \"type of marathon_male.shape is not tuple. marathon_male.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_male.shape)).encode(\"utf-8\")+b\"cfe209b86a40413b\").hexdigest() == \"bef75e532c592456bf04a2d57a893ad297734caf\", \"length of marathon_male.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_male.shape))).encode(\"utf-8\")+b\"cfe209b86a40413b\").hexdigest() == \"c3a51c2fbc383805d7bc0733803a14e83fdc8723\", \"values of marathon_male.shape are not correct\"\n", - "assert sha1(str(marathon_male.shape).encode(\"utf-8\")+b\"cfe209b86a40413b\").hexdigest() == \"3722d1f6de8924cf47d9121e5bca5f023fd02258\", \"order of elements of marathon_male.shape is not correct\"\n", + "assert sha1(str(type(marathon_male.shape)).encode(\"utf-8\")+b\"995b372cd6a9652e\").hexdigest() == \"ddcaa4ea162bc1c6856add1a7684206df48377b4\", \"type of marathon_male.shape is not tuple. marathon_male.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_male.shape)).encode(\"utf-8\")+b\"995b372cd6a9652e\").hexdigest() == \"6a9c481398c02c958ec9ad58480f464cb3228dd0\", \"length of marathon_male.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_male.shape))).encode(\"utf-8\")+b\"995b372cd6a9652e\").hexdigest() == \"6029c487cc4e821374ae8a9e066324cb79c8806a\", \"values of marathon_male.shape are not correct\"\n", + "assert sha1(str(marathon_male.shape).encode(\"utf-8\")+b\"995b372cd6a9652e\").hexdigest() == \"c177b9a27918d7b97ce4c2a02c775c944d50b326\", \"order of elements of marathon_male.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_male.bmi))).encode(\"utf-8\")+b\"9308830674dc35c4\").hexdigest() == \"861d20f99467fde3136424479ce488f47932f747\", \"type of sum(marathon_male.bmi) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_male.bmi), 2)).encode(\"utf-8\")+b\"9308830674dc35c4\").hexdigest() == \"3c6870b9de789878a3dddf2dba1fb47bb0e4c87f\", \"value of sum(marathon_male.bmi) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_male.bmi))).encode(\"utf-8\")+b\"fb47962904e3324b\").hexdigest() == \"c8a9bd81406eb8244d2dbeef532b6e570b64462a\", \"type of sum(marathon_male.bmi) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_male.bmi), 2)).encode(\"utf-8\")+b\"fb47962904e3324b\").hexdigest() == \"e022ff005b3a68415bc95635ded3d7a539736131\", \"value of sum(marathon_male.bmi) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(marathon_male.km10_time_seconds.dropna()))).encode(\"utf-8\")+b\"367f88267d028db5\").hexdigest() == \"082831771e45403a6c7bcc5fe85ae59d6dab4d6e\", \"type of sum(marathon_male.km10_time_seconds.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_male.km10_time_seconds.dropna()), 2)).encode(\"utf-8\")+b\"367f88267d028db5\").hexdigest() == \"661850e1c62e375e9e23ca02653fd9dd78888e5c\", \"value of sum(marathon_male.km10_time_seconds.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_male.km10_time_seconds.dropna()))).encode(\"utf-8\")+b\"c2f26cbb762f44d9\").hexdigest() == \"3089c6acb1e136abd5f35f2180a64939504a684b\", \"type of sum(marathon_male.km10_time_seconds.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_male.km10_time_seconds.dropna()), 2)).encode(\"utf-8\")+b\"c2f26cbb762f44d9\").hexdigest() == \"2423600689c9bee17dbee418376f1cd82b6f67b9\", \"value of sum(marathon_male.km10_time_seconds.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -2777,7 +2777,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "a6104233a0eac7bb002e897bad8c6633", + "checksum": "9369634afe70ae7b09dc2ffb46c29261", "grade": true, "grade_id": "cell-d22160a6a53e9237", "locked": true, @@ -2790,10 +2790,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_4_2)).encode(\"utf-8\")+b\"896ce5ece40c2545\").hexdigest() == \"9381db4f4a2058c21efcf2a75bd55aba91a54249\", \"type of answer7_4_2 is not str. answer7_4_2 should be an str\"\n", - "assert sha1(str(len(answer7_4_2)).encode(\"utf-8\")+b\"896ce5ece40c2545\").hexdigest() == \"10e2eaa7952b236ea81d293e149a443e57d18abd\", \"length of answer7_4_2 is not correct\"\n", - "assert sha1(str(answer7_4_2.lower()).encode(\"utf-8\")+b\"896ce5ece40c2545\").hexdigest() == \"f333f4dac61f6074fe4286af958107dfdc782756\", \"value of answer7_4_2 is not correct\"\n", - "assert sha1(str(answer7_4_2).encode(\"utf-8\")+b\"896ce5ece40c2545\").hexdigest() == \"f333f4dac61f6074fe4286af958107dfdc782756\", \"correct string value of answer7_4_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer7_4_2)).encode(\"utf-8\")+b\"d03d5ca0fa8c0296\").hexdigest() == \"ca7dc887975286b3c66f158821666ac1a1b3375a\", \"type of answer7_4_2 is not str. answer7_4_2 should be an str\"\n", + "assert sha1(str(len(answer7_4_2)).encode(\"utf-8\")+b\"d03d5ca0fa8c0296\").hexdigest() == \"56e37365ae73aee65ef3833206676a3d93381a8a\", \"length of answer7_4_2 is not correct\"\n", + "assert sha1(str(answer7_4_2.lower()).encode(\"utf-8\")+b\"d03d5ca0fa8c0296\").hexdigest() == \"031b261d8fe81a4f833e5e2fe80f9585af16c286\", \"value of answer7_4_2 is not correct\"\n", + "assert sha1(str(answer7_4_2).encode(\"utf-8\")+b\"d03d5ca0fa8c0296\").hexdigest() == \"031b261d8fe81a4f833e5e2fe80f9585af16c286\", \"correct string value of answer7_4_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2856,7 +2856,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e14419df0225a1c1952847ae6d64d332", + "checksum": "84d9b01c64137fc85a52c4321c7a1c38", "grade": true, "grade_id": "cell-377287ed889be893", "locked": true, @@ -2869,10 +2869,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_4_3)).encode(\"utf-8\")+b\"dcf0ec3f5e1ae29c\").hexdigest() == \"7868813d1a80aac7c8e2d9c1c3053459ed12a575\", \"type of answer7_4_3 is not str. answer7_4_3 should be an str\"\n", - "assert sha1(str(len(answer7_4_3)).encode(\"utf-8\")+b\"dcf0ec3f5e1ae29c\").hexdigest() == \"87bf8eccad0e21349499c7b54f41006b7227eeb8\", \"length of answer7_4_3 is not correct\"\n", - "assert sha1(str(answer7_4_3.lower()).encode(\"utf-8\")+b\"dcf0ec3f5e1ae29c\").hexdigest() == \"910e6648fb77ac499037c11e35d141bcb477a576\", \"value of answer7_4_3 is not correct\"\n", - "assert sha1(str(answer7_4_3).encode(\"utf-8\")+b\"dcf0ec3f5e1ae29c\").hexdigest() == \"910e6648fb77ac499037c11e35d141bcb477a576\", \"correct string value of answer7_4_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer7_4_3)).encode(\"utf-8\")+b\"2134eba6c7c6f7c4\").hexdigest() == \"9c38bd9d2ab481520b1802add29d9f0132d73cfe\", \"type of answer7_4_3 is not str. answer7_4_3 should be an str\"\n", + "assert sha1(str(len(answer7_4_3)).encode(\"utf-8\")+b\"2134eba6c7c6f7c4\").hexdigest() == \"8eea4dad00dd232416584f1afc399f30c05c49c5\", \"length of answer7_4_3 is not correct\"\n", + "assert sha1(str(answer7_4_3.lower()).encode(\"utf-8\")+b\"2134eba6c7c6f7c4\").hexdigest() == \"380f784a41f5a93be8ac54479631d4b94e9a9d64\", \"value of answer7_4_3 is not correct\"\n", + "assert sha1(str(answer7_4_3).encode(\"utf-8\")+b\"2134eba6c7c6f7c4\").hexdigest() == \"380f784a41f5a93be8ac54479631d4b94e9a9d64\", \"correct string value of answer7_4_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2960,7 +2960,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ef32eb33a9db87fb78c4609d69e51fdf", + "checksum": "7cd33eaa4fa4101239317f69d999ac8d", "grade": true, "grade_id": "cell-0742b003e816693c", "locked": true, @@ -2973,13 +2973,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_minutes.shape)).encode(\"utf-8\")+b\"12d2c683c676b71e\").hexdigest() == \"929fb54bc9a03d7ec8dc3bb3b159b14298eaa5d2\", \"type of marathon_minutes.shape is not tuple. marathon_minutes.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_minutes.shape)).encode(\"utf-8\")+b\"12d2c683c676b71e\").hexdigest() == \"3c52df6c2440be88e9c17d9b1487573faf3be280\", \"length of marathon_minutes.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_minutes.shape))).encode(\"utf-8\")+b\"12d2c683c676b71e\").hexdigest() == \"fd8731457f77754446c4502734534b61c8f127b8\", \"values of marathon_minutes.shape are not correct\"\n", - "assert sha1(str(marathon_minutes.shape).encode(\"utf-8\")+b\"12d2c683c676b71e\").hexdigest() == \"c0a1ff2a114fe69ef7aaae0fbc5bfada7a65f059\", \"order of elements of marathon_minutes.shape is not correct\"\n", + "assert sha1(str(type(marathon_minutes.shape)).encode(\"utf-8\")+b\"f33f51462f3e9b3d\").hexdigest() == \"226430568940aa5712765309c164aebac4725224\", \"type of marathon_minutes.shape is not tuple. marathon_minutes.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_minutes.shape)).encode(\"utf-8\")+b\"f33f51462f3e9b3d\").hexdigest() == \"961e32ddef48c185c730e347ff99595854be30b7\", \"length of marathon_minutes.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_minutes.shape))).encode(\"utf-8\")+b\"f33f51462f3e9b3d\").hexdigest() == \"ec65178fb3d7e0378946ef77142f82e001841c74\", \"values of marathon_minutes.shape are not correct\"\n", + "assert sha1(str(marathon_minutes.shape).encode(\"utf-8\")+b\"f33f51462f3e9b3d\").hexdigest() == \"44423375bcc4f3721665025f113ae3ac42efe791\", \"order of elements of marathon_minutes.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_minutes.km10_time_seconds.dropna()))).encode(\"utf-8\")+b\"0c7965f74ebcb8b9\").hexdigest() == \"803fac32650b44aedbac1c6379211afdf7653048\", \"type of sum(marathon_minutes.km10_time_seconds.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_minutes.km10_time_seconds.dropna()), 2)).encode(\"utf-8\")+b\"0c7965f74ebcb8b9\").hexdigest() == \"bd47b694749cd14c0058fe2057e45675a1ea05d1\", \"value of sum(marathon_minutes.km10_time_seconds.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_minutes.km10_time_seconds.dropna()))).encode(\"utf-8\")+b\"9a3ad9c2ab6a7f72\").hexdigest() == \"77a461477e41248f1fbf0aa19e547a824d2a17a5\", \"type of sum(marathon_minutes.km10_time_seconds.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_minutes.km10_time_seconds.dropna()), 2)).encode(\"utf-8\")+b\"9a3ad9c2ab6a7f72\").hexdigest() == \"a1401fed307a4e260a6fdb801cebb9919bb35114\", \"value of sum(marathon_minutes.km10_time_seconds.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -3124,7 +3124,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2edf70d72d75e1349d45e7dddd9603fb", + "checksum": "5dc7e3a45f6ca08d7b6cc95a618f9dd4", "grade": true, "grade_id": "cell-94ad6c2e2be7bd04", "locked": true, @@ -3137,10 +3137,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_6_1)).encode(\"utf-8\")+b\"82566981ee210bc0\").hexdigest() == \"838c54dbe285508663403b206ca94ecd23eff947\", \"type of answer7_6_1 is not str. answer7_6_1 should be an str\"\n", - "assert sha1(str(len(answer7_6_1)).encode(\"utf-8\")+b\"82566981ee210bc0\").hexdigest() == \"924f0679c07da7b3b4b23cdaf24413c268c5ef77\", \"length of answer7_6_1 is not correct\"\n", - "assert sha1(str(answer7_6_1.lower()).encode(\"utf-8\")+b\"82566981ee210bc0\").hexdigest() == \"b97d32c1882026bf6b69ec27f457211415ba5804\", \"value of answer7_6_1 is not correct\"\n", - "assert sha1(str(answer7_6_1).encode(\"utf-8\")+b\"82566981ee210bc0\").hexdigest() == \"f555f9ae9be04927b6f73e53401220934cba6f29\", \"correct string value of answer7_6_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer7_6_1)).encode(\"utf-8\")+b\"9d289d4e70041648\").hexdigest() == \"d9e81fed8196db2066dff398e0ef18ad530fdc78\", \"type of answer7_6_1 is not str. answer7_6_1 should be an str\"\n", + "assert sha1(str(len(answer7_6_1)).encode(\"utf-8\")+b\"9d289d4e70041648\").hexdigest() == \"0cc9f1d75dd257df7484035e46364a36f4274609\", \"length of answer7_6_1 is not correct\"\n", + "assert sha1(str(answer7_6_1.lower()).encode(\"utf-8\")+b\"9d289d4e70041648\").hexdigest() == \"3180b5fba6c0e9f0047f32ceb637feb18e618f27\", \"value of answer7_6_1 is not correct\"\n", + "assert sha1(str(answer7_6_1).encode(\"utf-8\")+b\"9d289d4e70041648\").hexdigest() == \"132c7966bf66bcaad443ffe2358d6d6a2119f9c2\", \"correct string value of answer7_6_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_reading/py_worksheet_reading.ipynb b/py_worksheet_reading/py_worksheet_reading.ipynb index c7c7129..b1bc494 100644 --- a/py_worksheet_reading/py_worksheet_reading.ipynb +++ b/py_worksheet_reading/py_worksheet_reading.ipynb @@ -7,7 +7,7 @@ "editable": false, "nbgrader": { "cell_type": "markdown", - "checksum": "451c7180e639028e58801c01fe793405", + "checksum": "dbe4d4056afc86d4a5e235d0d03118ab", "grade": false, "grade_id": "cell-b41ef16616efdfa8", "locked": true, @@ -188,7 +188,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8b78056d35a466a3c20525c74691b5b9", + "checksum": "fabf8262d5c4fe9ee67a343cd6f13461", "grade": true, "grade_id": "cell-0d7a29b2deaf9cfe", "locked": true, @@ -201,10 +201,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"0c14ae17d6a06f25\").hexdigest() == \"960fef2a955c3c6e7ee8ca598dc532e4219608a2\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", - "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"0c14ae17d6a06f25\").hexdigest() == \"6fd951c810ae9e67d7d593c89d44b5575383907e\", \"length of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"0c14ae17d6a06f25\").hexdigest() == \"16a24c26fcfbfc4e0d6315f631227871a51ff556\", \"value of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"0c14ae17d6a06f25\").hexdigest() == \"a4e5acf4c42f62b605ef418a1fe82efc0a5a70eb\", \"correct string value of answer1_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"80134d2dcd0ec7c0\").hexdigest() == \"a6493ed2d7c0df4c2a3912684cee6f73a86b5f61\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", + "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"80134d2dcd0ec7c0\").hexdigest() == \"dd29e47be3f7bb91c65ec33e72b9f0c918d702dd\", \"length of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"80134d2dcd0ec7c0\").hexdigest() == \"3d311612f1eaf711ee16e7d4bc27b3171741d56e\", \"value of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"80134d2dcd0ec7c0\").hexdigest() == \"0ace3e9e8766633a7650e26bbd7bbfe1539e6aa0\", \"correct string value of answer1_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -264,7 +264,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "80f5bffbb28a80f70e6c84c0108ea00d", + "checksum": "e026ed4a3868f6f022d4394be0218032", "grade": true, "grade_id": "cell-3b1e215bff84eb7b", "locked": true, @@ -277,8 +277,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"1f204bc1488dcc4b\").hexdigest() == \"50f797abbc01ef57f66eb2938271988b5ce72349\", \"type of answer1_2 is not bool. answer1_2 should be a bool\"\n", - "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"1f204bc1488dcc4b\").hexdigest() == \"c95487772cbcfaf601b0a3a50f6acbd5a65c2797\", \"boolean value of answer1_2 is not correct\"\n", + "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"258e6d4cc44d9241\").hexdigest() == \"0de0f64103606253115c5ae73a18c782a71539eb\", \"type of answer1_2 is not bool. answer1_2 should be a bool\"\n", + "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"258e6d4cc44d9241\").hexdigest() == \"1f1cbb30d5a16f579b9c8339286257add6f86770\", \"boolean value of answer1_2 is not correct\"\n", "\n", "print('Success!')" ] @@ -358,7 +358,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8cfec1613af3fa074a2dc02ca1afd0f3", + "checksum": "c99fff7e7f0cff6c5fca5f6892358183", "grade": true, "grade_id": "cell-81b5979634cdb51d", "locked": true, @@ -371,23 +371,23 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(A)).encode(\"utf-8\")+b\"54ad2295143b8721\").hexdigest() == \"1c9919f531dff7440d1b4953ab95199752c155e9\", \"type of A is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(A).encode(\"utf-8\")+b\"54ad2295143b8721\").hexdigest() == \"7c5bd1c5739b3c2fc382355c654427c938438e71\", \"value of A is not correct\"\n", + "assert sha1(str(type(A)).encode(\"utf-8\")+b\"fc2dd8ceddf21222\").hexdigest() == \"79e03675ccbca8d6c32a9f96fbe7113addc1ab70\", \"type of A is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(A).encode(\"utf-8\")+b\"fc2dd8ceddf21222\").hexdigest() == \"6f5d569c4c2bf0134b1656e943e4da5ae95a7b78\", \"value of A is not correct\"\n", "\n", - "assert sha1(str(type(B)).encode(\"utf-8\")+b\"8077155c8c09ccdf\").hexdigest() == \"562cead287808d7b840cc9cc5221d12b221e1225\", \"type of B is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(B).encode(\"utf-8\")+b\"8077155c8c09ccdf\").hexdigest() == \"949632fe917472c4ea4b589748839b00413b1eb4\", \"value of B is not correct\"\n", + "assert sha1(str(type(B)).encode(\"utf-8\")+b\"fe0c2069c907d983\").hexdigest() == \"01e345bb0699798287f07e9e64a460972b2869c5\", \"type of B is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(B).encode(\"utf-8\")+b\"fe0c2069c907d983\").hexdigest() == \"d8456b70c969258272aaeaa12b69f8fa2071e591\", \"value of B is not correct\"\n", "\n", - "assert sha1(str(type(C)).encode(\"utf-8\")+b\"8d667ba0311c3c94\").hexdigest() == \"05a221c70b8ddfcbb2c1d3a022593654088c34ca\", \"type of C is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(C).encode(\"utf-8\")+b\"8d667ba0311c3c94\").hexdigest() == \"9c84c3d006238c6d4fd2aff403e28a92dde63111\", \"value of C is not correct\"\n", + "assert sha1(str(type(C)).encode(\"utf-8\")+b\"8869d8e3662e2189\").hexdigest() == \"adc5866f06f97c16d54a8faa61cbc645a847b9ae\", \"type of C is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(C).encode(\"utf-8\")+b\"8869d8e3662e2189\").hexdigest() == \"e28ddf684234be2ee73c90dbd928460addb67e7e\", \"value of C is not correct\"\n", "\n", - "assert sha1(str(type(D)).encode(\"utf-8\")+b\"f2177a099e34ca6a\").hexdigest() == \"28df2ccfd5319049bf9e0bb823d10e042a3d1dca\", \"type of D is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(D).encode(\"utf-8\")+b\"f2177a099e34ca6a\").hexdigest() == \"24c1c84fc134bd1c899e2f84083858b1b956ee26\", \"value of D is not correct\"\n", + "assert sha1(str(type(D)).encode(\"utf-8\")+b\"e0ce4ec2f073dded\").hexdigest() == \"73334403214c75a03a033cb28f89cc386f244a95\", \"type of D is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(D).encode(\"utf-8\")+b\"e0ce4ec2f073dded\").hexdigest() == \"fe0703673410d6ef12b730d4762bbca0b65555f4\", \"value of D is not correct\"\n", "\n", - "assert sha1(str(type(E)).encode(\"utf-8\")+b\"01cd2fd3ee545597\").hexdigest() == \"2572f6062c326555f8cb616d66e198669b1149f5\", \"type of E is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(E).encode(\"utf-8\")+b\"01cd2fd3ee545597\").hexdigest() == \"5aa3d74999a5b4a0d3a7747bc306b75f5ae5b9c4\", \"value of E is not correct\"\n", + "assert sha1(str(type(E)).encode(\"utf-8\")+b\"1ebf7c8dcd370581\").hexdigest() == \"08e619a96da41dc3f49b5ab1c7255f5b6dca872b\", \"type of E is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(E).encode(\"utf-8\")+b\"1ebf7c8dcd370581\").hexdigest() == \"f988061409f7b04fde1dd426f6901f815aa5672d\", \"value of E is not correct\"\n", "\n", - "assert sha1(str(type(F)).encode(\"utf-8\")+b\"df1534d2a4416ffb\").hexdigest() == \"564886aeec4ebb71e977827ca2515a82351ec5ba\", \"type of F is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(F).encode(\"utf-8\")+b\"df1534d2a4416ffb\").hexdigest() == \"ff1129838c09feb57d74b18a946545de0d136572\", \"value of F is not correct\"\n", + "assert sha1(str(type(F)).encode(\"utf-8\")+b\"c2235e33d6ec361e\").hexdigest() == \"6c8ed1c0e3f0ff4085473714f809f13938e39c43\", \"type of F is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(F).encode(\"utf-8\")+b\"c2235e33d6ec361e\").hexdigest() == \"90d607447bb5027b6c90fd5d9ad1bfb1d5b2ac95\", \"value of F is not correct\"\n", "\n", "print('Success!')" ] @@ -459,7 +459,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2575b977d3da4a4f3c94a653e0b8303c", + "checksum": "3e29f0bcd5e9e824fe1388f6aa65d0c2", "grade": true, "grade_id": "cell-496ddf4b95dcd6c9", "locked": true, @@ -472,10 +472,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_4)).encode(\"utf-8\")+b\"1dfa1a5d0b72ecf7\").hexdigest() == \"5fbfce196fbf35d74fed6babdc3ae5f51b2754de\", \"type of answer1_4 is not str. answer1_4 should be an str\"\n", - "assert sha1(str(len(answer1_4)).encode(\"utf-8\")+b\"1dfa1a5d0b72ecf7\").hexdigest() == \"ef06c75d15336312a769bea6a8ceec6d078bcc20\", \"length of answer1_4 is not correct\"\n", - "assert sha1(str(answer1_4.lower()).encode(\"utf-8\")+b\"1dfa1a5d0b72ecf7\").hexdigest() == \"5bf5310a22923f4a93aaa94e824def24ac9cd966\", \"value of answer1_4 is not correct\"\n", - "assert sha1(str(answer1_4).encode(\"utf-8\")+b\"1dfa1a5d0b72ecf7\").hexdigest() == \"47d50d5fe7e38bf4f14a6807cf1be6502edf29b2\", \"correct string value of answer1_4 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_4)).encode(\"utf-8\")+b\"05075751471fe0c1\").hexdigest() == \"5ba9ed1e00f06d743523c4d8ea331d9bba176d1b\", \"type of answer1_4 is not str. answer1_4 should be an str\"\n", + "assert sha1(str(len(answer1_4)).encode(\"utf-8\")+b\"05075751471fe0c1\").hexdigest() == \"751db79d1a22396122bc4a65264170514622579b\", \"length of answer1_4 is not correct\"\n", + "assert sha1(str(answer1_4.lower()).encode(\"utf-8\")+b\"05075751471fe0c1\").hexdigest() == \"e25e8ba505042aaa43572dc4c91f32f428b76c9e\", \"value of answer1_4 is not correct\"\n", + "assert sha1(str(answer1_4).encode(\"utf-8\")+b\"05075751471fe0c1\").hexdigest() == \"c935114d31a99b2c908bd110096e79e524b62fc0\", \"correct string value of answer1_4 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -555,7 +555,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "cd98b5214e15e1a3840531bbc3d30b6e", + "checksum": "20bb61a0dd8aed8dbe46571b29048626", "grade": true, "grade_id": "cell-3d1733503218cd62", "locked": true, @@ -568,20 +568,20 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(A)).encode(\"utf-8\")+b\"78efb627b6ed755b\").hexdigest() == \"8d5eac340f441c02bc9edad0ecf4f6a4ed3b0c7e\", \"type of A is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(A).encode(\"utf-8\")+b\"78efb627b6ed755b\").hexdigest() == \"8e282fd863af1a947992679f80adadcf9eb4164c\", \"value of A is not correct\"\n", + "assert sha1(str(type(A)).encode(\"utf-8\")+b\"b4aaa9ff7285a5ef\").hexdigest() == \"222fd0083cb0fb02da6a1227e16fe621c6646bae\", \"type of A is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(A).encode(\"utf-8\")+b\"b4aaa9ff7285a5ef\").hexdigest() == \"0f3d494e76026d7a261a5a7b84ee63a31feb46bf\", \"value of A is not correct\"\n", "\n", - "assert sha1(str(type(B)).encode(\"utf-8\")+b\"e5eddb6f61a7b1ba\").hexdigest() == \"d0326a658b2d25192a9b44e4eb570a6082a69424\", \"type of B is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(B).encode(\"utf-8\")+b\"e5eddb6f61a7b1ba\").hexdigest() == \"ff41eb0ad435b8e51fe261ef9cde8e553c572b3f\", \"value of B is not correct\"\n", + "assert sha1(str(type(B)).encode(\"utf-8\")+b\"7ca757efe3de529f\").hexdigest() == \"002f6d4bd6a56e5d728efa1596b1c648f295f661\", \"type of B is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(B).encode(\"utf-8\")+b\"7ca757efe3de529f\").hexdigest() == \"a74c0bb117185bd9c67d9b66cd1ae04b52b86f48\", \"value of B is not correct\"\n", "\n", - "assert sha1(str(type(C)).encode(\"utf-8\")+b\"83d6c48755e8acdc\").hexdigest() == \"b1ed7ff7184f08d0c25ad6911c757750a3a53563\", \"type of C is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(C).encode(\"utf-8\")+b\"83d6c48755e8acdc\").hexdigest() == \"dde710b095e128953c65adacec54cb4fdcd52a90\", \"value of C is not correct\"\n", + "assert sha1(str(type(C)).encode(\"utf-8\")+b\"1fd5e0452f49f5cc\").hexdigest() == \"c3ac86ed2980d5e2fa059dc16e0852a686f2dfee\", \"type of C is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(C).encode(\"utf-8\")+b\"1fd5e0452f49f5cc\").hexdigest() == \"a8b9d91377c40eed0730ad7d092c1ec32de31100\", \"value of C is not correct\"\n", "\n", - "assert sha1(str(type(D)).encode(\"utf-8\")+b\"fde1f4d49d7b7889\").hexdigest() == \"a318d7f92ff5c8710a74103c3eb04fe7ecc8ad52\", \"type of D is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(D).encode(\"utf-8\")+b\"fde1f4d49d7b7889\").hexdigest() == \"12baaf2d96042bf0d97059c32803f3bdae7ee4e8\", \"value of D is not correct\"\n", + "assert sha1(str(type(D)).encode(\"utf-8\")+b\"15dee80be26f71a5\").hexdigest() == \"9dd73a28d14756352d075fad19b203d64a0e370b\", \"type of D is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(D).encode(\"utf-8\")+b\"15dee80be26f71a5\").hexdigest() == \"e7070da62e63ab1375a428f7b55b8c859e2763bc\", \"value of D is not correct\"\n", "\n", - "assert sha1(str(type(E)).encode(\"utf-8\")+b\"ca43c2ddba1d5d9a\").hexdigest() == \"750a8e6faa2b9fc7927cb7a5b719be77f11f93de\", \"type of E is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(E).encode(\"utf-8\")+b\"ca43c2ddba1d5d9a\").hexdigest() == \"3714a6c082c0ac3097cf7aaa304de8be8618f024\", \"value of E is not correct\"\n", + "assert sha1(str(type(E)).encode(\"utf-8\")+b\"50ee604a8519b6c5\").hexdigest() == \"09c7ac4778a27ac2e57c9833a3beb58932a48716\", \"type of E is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(E).encode(\"utf-8\")+b\"50ee604a8519b6c5\").hexdigest() == \"ac2f5abd1195787499f487f3eaedf61ffca11bca\", \"value of E is not correct\"\n", "\n", "print('Success!')" ] @@ -710,7 +710,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bfaee439b39466eb5826ee38fe4ce75f", + "checksum": "f472b81e18e7dc9fe1704e4cbbc87154", "grade": true, "grade_id": "cell-b9229174ebcf7d2e", "locked": true, @@ -723,17 +723,17 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(G)).encode(\"utf-8\")+b\"9276c618f9c24a33\").hexdigest() == \"5b5b2f6a85e193296fd234a87b06b0969f0eefa5\", \"type of G is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(G).encode(\"utf-8\")+b\"9276c618f9c24a33\").hexdigest() == \"312161c958ca492294f49f627eb7c5fd68b10918\", \"value of G is not correct\"\n", + "assert sha1(str(type(G)).encode(\"utf-8\")+b\"71b087eb902ffbfa\").hexdigest() == \"7f8c97251c1c05b4dafed14ac44e279bb2b3abfb\", \"type of G is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(G).encode(\"utf-8\")+b\"71b087eb902ffbfa\").hexdigest() == \"35554d9f389d930e408682ec0da59788a724db97\", \"value of G is not correct\"\n", "\n", - "assert sha1(str(type(H)).encode(\"utf-8\")+b\"ea48c42a909b5392\").hexdigest() == \"33fcad60f34e28d86e2dc1633ece6f6c9c6c0c85\", \"type of H is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(H).encode(\"utf-8\")+b\"ea48c42a909b5392\").hexdigest() == \"0d2ccf3758fab00203ddd50dd683872a60531177\", \"value of H is not correct\"\n", + "assert sha1(str(type(H)).encode(\"utf-8\")+b\"4e0ffca5b38b1dfc\").hexdigest() == \"61d8f25b53f1b9002e6b3e48c7bc58a841b4bb8e\", \"type of H is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(H).encode(\"utf-8\")+b\"4e0ffca5b38b1dfc\").hexdigest() == \"e8a03bfb16337dfbdca73d324fc7296c552a4963\", \"value of H is not correct\"\n", "\n", - "assert sha1(str(type(I)).encode(\"utf-8\")+b\"3cb0c56d23a3c511\").hexdigest() == \"83d94186cdcccd9a3920286e1d09cc5396bb1ad5\", \"type of I is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(I).encode(\"utf-8\")+b\"3cb0c56d23a3c511\").hexdigest() == \"17438181e074de9cae404dc6e1fdd74241ea77d2\", \"value of I is not correct\"\n", + "assert sha1(str(type(I)).encode(\"utf-8\")+b\"df389d3c297008df\").hexdigest() == \"c625d0cb24d6926f6f036cea4be35af27e8da9bf\", \"type of I is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(I).encode(\"utf-8\")+b\"df389d3c297008df\").hexdigest() == \"9182d52e4709e19118acefdd04002332dd985a5e\", \"value of I is not correct\"\n", "\n", - "assert sha1(str(type(J)).encode(\"utf-8\")+b\"f56e535007a79d10\").hexdigest() == \"51f1290c8facd7c3b69744f41dfc1c81136a798c\", \"type of J is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(J).encode(\"utf-8\")+b\"f56e535007a79d10\").hexdigest() == \"7f357c2d75fcdfd1d498dc99c8d5feec444124b0\", \"value of J is not correct\"\n", + "assert sha1(str(type(J)).encode(\"utf-8\")+b\"06426a2cd57645ea\").hexdigest() == \"f93ad983ddcd4bbb6067a11309705e4b552666e2\", \"type of J is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(J).encode(\"utf-8\")+b\"06426a2cd57645ea\").hexdigest() == \"82808e7509dcfab4846afa48c1efbea337ee3105\", \"value of J is not correct\"\n", "\n", "print('Success!')" ] @@ -793,7 +793,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6700657eb1875b4a8fc46bcb73e705bf", + "checksum": "ab16e57d93b443da2896cb7071b9f4a9", "grade": true, "grade_id": "cell-fff66a74bda40e7f", "locked": true, @@ -806,8 +806,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_2)).encode(\"utf-8\")+b\"991e71e36904a207\").hexdigest() == \"5eb128bb5cf729c0a56696cb1377128e93b3a67a\", \"type of answer2_2 is not bool. answer2_2 should be a bool\"\n", - "assert sha1(str(answer2_2).encode(\"utf-8\")+b\"991e71e36904a207\").hexdigest() == \"21ee71126582ec7b20a1ac09168e14b0871dde7b\", \"boolean value of answer2_2 is not correct\"\n", + "assert sha1(str(type(answer2_2)).encode(\"utf-8\")+b\"f990126839bd71b9\").hexdigest() == \"ec6a387cf3dbe010788d5e70f97d4d18660b86e9\", \"type of answer2_2 is not bool. answer2_2 should be a bool\"\n", + "assert sha1(str(answer2_2).encode(\"utf-8\")+b\"f990126839bd71b9\").hexdigest() == \"cde513aa814cf8a5debff4d1efe7401b66cb1e25\", \"boolean value of answer2_2 is not correct\"\n", "\n", "print('Success!')" ] @@ -867,7 +867,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "be3da2b957e5b871064f2f94a5a63311", + "checksum": "f3ce75a7ab9e06c83d15ebd2fbd5a96f", "grade": true, "grade_id": "cell-bc72e3bea9ddf5b5", "locked": true, @@ -880,8 +880,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"bc072d1fc5363f26\").hexdigest() == \"a8b863ab2cc8b7c7e3e346c4c46a32f7c6037005\", \"type of answer2_3 is not bool. answer2_3 should be a bool\"\n", - "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"bc072d1fc5363f26\").hexdigest() == \"015a2fdb111d3a0fdb0df69523af49802ca2c86d\", \"boolean value of answer2_3 is not correct\"\n", + "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"924c594f0ad47cd5\").hexdigest() == \"480448b4542ee336a3317ff4c5bb357b862e8da1\", \"type of answer2_3 is not bool. answer2_3 should be a bool\"\n", + "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"924c594f0ad47cd5\").hexdigest() == \"a93af1d7a5529f515d4d2766267a5e2afb0833e0\", \"boolean value of answer2_3 is not correct\"\n", "\n", "print('Success!')" ] @@ -987,7 +987,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "682de35f4da699dc740f3154a927b33e", + "checksum": "8e24f862d8768d3487f79cb60caadaab", "grade": true, "grade_id": "cell-0bcf4e7cd22fa393", "locked": true, @@ -1000,10 +1000,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_1)).encode(\"utf-8\")+b\"a386ca782e78b8c7\").hexdigest() == \"6c590f4fbf08caac68bf6d220a1379607b8713cb\", \"type of answer3_1 is not str. answer3_1 should be an str\"\n", - "assert sha1(str(len(answer3_1)).encode(\"utf-8\")+b\"a386ca782e78b8c7\").hexdigest() == \"ea222bc12434d6a904f4f7440f0702f1a7f8b1fa\", \"length of answer3_1 is not correct\"\n", - "assert sha1(str(answer3_1.lower()).encode(\"utf-8\")+b\"a386ca782e78b8c7\").hexdigest() == \"af4054e99babff76fda67220cc5f0c6e50c9b082\", \"value of answer3_1 is not correct\"\n", - "assert sha1(str(answer3_1).encode(\"utf-8\")+b\"a386ca782e78b8c7\").hexdigest() == \"b30beb8b083e0ffe50e201b99ff5a44d0eeee956\", \"correct string value of answer3_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_1)).encode(\"utf-8\")+b\"442b0c126ec8c5bf\").hexdigest() == \"3fb54ef040d341aec6a7aea1d85b9415edf015f5\", \"type of answer3_1 is not str. answer3_1 should be an str\"\n", + "assert sha1(str(len(answer3_1)).encode(\"utf-8\")+b\"442b0c126ec8c5bf\").hexdigest() == \"ef80b9745c2b970baa9007e65dd4847f230f18d4\", \"length of answer3_1 is not correct\"\n", + "assert sha1(str(answer3_1.lower()).encode(\"utf-8\")+b\"442b0c126ec8c5bf\").hexdigest() == \"fbe464ae677eeb8a71c9c5b5e3579177bd66f92e\", \"value of answer3_1 is not correct\"\n", + "assert sha1(str(answer3_1).encode(\"utf-8\")+b\"442b0c126ec8c5bf\").hexdigest() == \"17d81927707e1f375d8e8ffeaf866e4256b57000\", \"correct string value of answer3_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1071,7 +1071,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "d47c120580c481a77dc20d6ca94742f3", + "checksum": "5dba298cc1d96b8997e191550d02a55a", "grade": true, "grade_id": "cell-e7d4bdc58a1398fe", "locked": true, @@ -1084,10 +1084,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_2)).encode(\"utf-8\")+b\"2e356924c30f6333\").hexdigest() == \"8a6a642a06775cfef6824cea0a942cfdac4bbe2e\", \"type of answer3_2 is not str. answer3_2 should be an str\"\n", - "assert sha1(str(len(answer3_2)).encode(\"utf-8\")+b\"2e356924c30f6333\").hexdigest() == \"97666bb70989d99cc5272818b97459bec8b30ba4\", \"length of answer3_2 is not correct\"\n", - "assert sha1(str(answer3_2.lower()).encode(\"utf-8\")+b\"2e356924c30f6333\").hexdigest() == \"1ef679b356630379b7220a26c1916df6b2d02346\", \"value of answer3_2 is not correct\"\n", - "assert sha1(str(answer3_2).encode(\"utf-8\")+b\"2e356924c30f6333\").hexdigest() == \"c009dd83f025fdff314f2b2598e4fe9d2a0e5de7\", \"correct string value of answer3_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_2)).encode(\"utf-8\")+b\"d6cf3997b4eed36c\").hexdigest() == \"1f2e36e02a9e26243b6238abad8e7c10ea7269b9\", \"type of answer3_2 is not str. answer3_2 should be an str\"\n", + "assert sha1(str(len(answer3_2)).encode(\"utf-8\")+b\"d6cf3997b4eed36c\").hexdigest() == \"9ee37568bbbe99d9c333406c5b29aed87117e8b5\", \"length of answer3_2 is not correct\"\n", + "assert sha1(str(answer3_2.lower()).encode(\"utf-8\")+b\"d6cf3997b4eed36c\").hexdigest() == \"dd761c1274cb7f89d24cddf8b73910464b78999d\", \"value of answer3_2 is not correct\"\n", + "assert sha1(str(answer3_2).encode(\"utf-8\")+b\"d6cf3997b4eed36c\").hexdigest() == \"60c6ffaa1f469bfbeffa47a28a8dfe487ac5abaa\", \"correct string value of answer3_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1181,7 +1181,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "659dd4c0557db5adb1cff198f732cb85", + "checksum": "33d60330b860a8ebd8b280595fb68a6c", "grade": true, "grade_id": "cell-aa1c440804c4da54", "locked": true, @@ -1194,35 +1194,35 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(A)).encode(\"utf-8\")+b\"8d8453df067deb61\").hexdigest() == \"bc58041e65144fb49796c111bf8b1ce986a13bf1\", \"type of A is not str. A should be an str\"\n", - "assert sha1(str(len(A)).encode(\"utf-8\")+b\"8d8453df067deb61\").hexdigest() == \"038c8de7e93a1e49b41aceaf7fb3dd35dee27878\", \"length of A is not correct\"\n", - "assert sha1(str(A.lower()).encode(\"utf-8\")+b\"8d8453df067deb61\").hexdigest() == \"ec828d00f164cbcb90239aa37b4051fd4aebbf6f\", \"value of A is not correct\"\n", - "assert sha1(str(A).encode(\"utf-8\")+b\"8d8453df067deb61\").hexdigest() == \"ec828d00f164cbcb90239aa37b4051fd4aebbf6f\", \"correct string value of A but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(B)).encode(\"utf-8\")+b\"961a817cba741baa\").hexdigest() == \"d3ffda688279027e718ae57b8adc07091e81e21d\", \"type of B is not str. B should be an str\"\n", - "assert sha1(str(len(B)).encode(\"utf-8\")+b\"961a817cba741baa\").hexdigest() == \"4fad1f6397c8d95693a88af5cce3b87cb1cc73c5\", \"length of B is not correct\"\n", - "assert sha1(str(B.lower()).encode(\"utf-8\")+b\"961a817cba741baa\").hexdigest() == \"c008336063dfb724ea260a9df8a7d04cdfa32e03\", \"value of B is not correct\"\n", - "assert sha1(str(B).encode(\"utf-8\")+b\"961a817cba741baa\").hexdigest() == \"c008336063dfb724ea260a9df8a7d04cdfa32e03\", \"correct string value of B but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(C)).encode(\"utf-8\")+b\"90d2b899bf4dcd38\").hexdigest() == \"404deb3f18e8210787760f80108c4033861f3afa\", \"type of C is not str. C should be an str\"\n", - "assert sha1(str(len(C)).encode(\"utf-8\")+b\"90d2b899bf4dcd38\").hexdigest() == \"841aaab692d02de1139aaba418e4b437b11fa993\", \"length of C is not correct\"\n", - "assert sha1(str(C.lower()).encode(\"utf-8\")+b\"90d2b899bf4dcd38\").hexdigest() == \"ddb61161e436453b37feea50f647794d1e19a881\", \"value of C is not correct\"\n", - "assert sha1(str(C).encode(\"utf-8\")+b\"90d2b899bf4dcd38\").hexdigest() == \"ddb61161e436453b37feea50f647794d1e19a881\", \"correct string value of C but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(D)).encode(\"utf-8\")+b\"c48745fac16867dc\").hexdigest() == \"639a01386476a7ea2b7b6748d2bba0c428ed40c3\", \"type of D is not str. D should be an str\"\n", - "assert sha1(str(len(D)).encode(\"utf-8\")+b\"c48745fac16867dc\").hexdigest() == \"6bb3fdfcd2ac72b6a2f7ced45d473e2f63323f09\", \"length of D is not correct\"\n", - "assert sha1(str(D.lower()).encode(\"utf-8\")+b\"c48745fac16867dc\").hexdigest() == \"46efe9da7370efc15d1a7ee94f681cb59dca7864\", \"value of D is not correct\"\n", - "assert sha1(str(D).encode(\"utf-8\")+b\"c48745fac16867dc\").hexdigest() == \"46efe9da7370efc15d1a7ee94f681cb59dca7864\", \"correct string value of D but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(E)).encode(\"utf-8\")+b\"179f2822e182194b\").hexdigest() == \"7c733e2906a5fa3b1421902ba392eda45b515307\", \"type of E is not str. E should be an str\"\n", - "assert sha1(str(len(E)).encode(\"utf-8\")+b\"179f2822e182194b\").hexdigest() == \"b03772bacbb8b101ecc0ba93aad7cc2d0ef8c07e\", \"length of E is not correct\"\n", - "assert sha1(str(E.lower()).encode(\"utf-8\")+b\"179f2822e182194b\").hexdigest() == \"e9e9ab58c2d2a899ad248aa2bab82c90cbf662c4\", \"value of E is not correct\"\n", - "assert sha1(str(E).encode(\"utf-8\")+b\"179f2822e182194b\").hexdigest() == \"e9e9ab58c2d2a899ad248aa2bab82c90cbf662c4\", \"correct string value of E but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(F)).encode(\"utf-8\")+b\"84c14430c43164bf\").hexdigest() == \"86ac6c0fa5cb42c95e9390b9ce796b2f71b2b1cc\", \"type of F is not str. F should be an str\"\n", - "assert sha1(str(len(F)).encode(\"utf-8\")+b\"84c14430c43164bf\").hexdigest() == \"4a59d4fae3d4f37032e3ee6f592210858ef57259\", \"length of F is not correct\"\n", - "assert sha1(str(F.lower()).encode(\"utf-8\")+b\"84c14430c43164bf\").hexdigest() == \"822fa2ef734f3a0e9f366ab6ba9e0a5387cf9e19\", \"value of F is not correct\"\n", - "assert sha1(str(F).encode(\"utf-8\")+b\"84c14430c43164bf\").hexdigest() == \"822fa2ef734f3a0e9f366ab6ba9e0a5387cf9e19\", \"correct string value of F but incorrect case of letters\"\n", + "assert sha1(str(type(A)).encode(\"utf-8\")+b\"ce38213068421613\").hexdigest() == \"d69d6446fa2bf77ad153e40ea04395958ebf44d7\", \"type of A is not str. A should be an str\"\n", + "assert sha1(str(len(A)).encode(\"utf-8\")+b\"ce38213068421613\").hexdigest() == \"59c083566eaabeaa1d2b239d0ec9a46d2d0c3aae\", \"length of A is not correct\"\n", + "assert sha1(str(A.lower()).encode(\"utf-8\")+b\"ce38213068421613\").hexdigest() == \"b3add4f90a87ef1d44956204205112e149e4b49f\", \"value of A is not correct\"\n", + "assert sha1(str(A).encode(\"utf-8\")+b\"ce38213068421613\").hexdigest() == \"b3add4f90a87ef1d44956204205112e149e4b49f\", \"correct string value of A but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(B)).encode(\"utf-8\")+b\"4f6ed8c31d4c49d0\").hexdigest() == \"df4ca02c5490f530f6562974f044cba9a4e1c45b\", \"type of B is not str. B should be an str\"\n", + "assert sha1(str(len(B)).encode(\"utf-8\")+b\"4f6ed8c31d4c49d0\").hexdigest() == \"177d2d87b7cf8e1254eab402c32c914f43ff8023\", \"length of B is not correct\"\n", + "assert sha1(str(B.lower()).encode(\"utf-8\")+b\"4f6ed8c31d4c49d0\").hexdigest() == \"661c0f59ff1b2e0442d1ec01f3dfdd6e00555f61\", \"value of B is not correct\"\n", + "assert sha1(str(B).encode(\"utf-8\")+b\"4f6ed8c31d4c49d0\").hexdigest() == \"661c0f59ff1b2e0442d1ec01f3dfdd6e00555f61\", \"correct string value of B but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(C)).encode(\"utf-8\")+b\"5af709bed9d40b8b\").hexdigest() == \"e26129a0de5f009612aa1a9bf2048d58337d170f\", \"type of C is not str. C should be an str\"\n", + "assert sha1(str(len(C)).encode(\"utf-8\")+b\"5af709bed9d40b8b\").hexdigest() == \"a82f82219b265926add744c83892a7656f159fca\", \"length of C is not correct\"\n", + "assert sha1(str(C.lower()).encode(\"utf-8\")+b\"5af709bed9d40b8b\").hexdigest() == \"1f43d9f58a803fa2439af487bf1355158dd048ad\", \"value of C is not correct\"\n", + "assert sha1(str(C).encode(\"utf-8\")+b\"5af709bed9d40b8b\").hexdigest() == \"1f43d9f58a803fa2439af487bf1355158dd048ad\", \"correct string value of C but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(D)).encode(\"utf-8\")+b\"48c6c8fdee02838f\").hexdigest() == \"433a4e8af50517f7ce50408a237ad86e332c567d\", \"type of D is not str. D should be an str\"\n", + "assert sha1(str(len(D)).encode(\"utf-8\")+b\"48c6c8fdee02838f\").hexdigest() == \"b8b320f9fbc7ceacfa647fc05a3c13f035542a20\", \"length of D is not correct\"\n", + "assert sha1(str(D.lower()).encode(\"utf-8\")+b\"48c6c8fdee02838f\").hexdigest() == \"c41d55ea7573ffb7fc97179a19a3cfcd8121fbf8\", \"value of D is not correct\"\n", + "assert sha1(str(D).encode(\"utf-8\")+b\"48c6c8fdee02838f\").hexdigest() == \"c41d55ea7573ffb7fc97179a19a3cfcd8121fbf8\", \"correct string value of D but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(E)).encode(\"utf-8\")+b\"d960f9fbb163533c\").hexdigest() == \"4b8fe17aa3285c6de36ebbef5f1c4a544a0da462\", \"type of E is not str. E should be an str\"\n", + "assert sha1(str(len(E)).encode(\"utf-8\")+b\"d960f9fbb163533c\").hexdigest() == \"bdc9655bb33d33b08caa220e843aaba8d90bbbd0\", \"length of E is not correct\"\n", + "assert sha1(str(E.lower()).encode(\"utf-8\")+b\"d960f9fbb163533c\").hexdigest() == \"83e560cbb384212ec69708f41efac9179206def5\", \"value of E is not correct\"\n", + "assert sha1(str(E).encode(\"utf-8\")+b\"d960f9fbb163533c\").hexdigest() == \"83e560cbb384212ec69708f41efac9179206def5\", \"correct string value of E but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(F)).encode(\"utf-8\")+b\"75e2d893738e5cf0\").hexdigest() == \"df0616547f11d64d38343040b968afe40b1e689c\", \"type of F is not str. F should be an str\"\n", + "assert sha1(str(len(F)).encode(\"utf-8\")+b\"75e2d893738e5cf0\").hexdigest() == \"38af8e259908cff490744a1a1b6f4600311ae625\", \"length of F is not correct\"\n", + "assert sha1(str(F.lower()).encode(\"utf-8\")+b\"75e2d893738e5cf0\").hexdigest() == \"5fb47f2c0a8ba292f0ba841f535b5dbc69e85928\", \"value of F is not correct\"\n", + "assert sha1(str(F).encode(\"utf-8\")+b\"75e2d893738e5cf0\").hexdigest() == \"5fb47f2c0a8ba292f0ba841f535b5dbc69e85928\", \"correct string value of F but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1286,7 +1286,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f51652bb07fcc5952e9717f0dee34b67", + "checksum": "48655a304e6e77f5994d34990185673a", "grade": true, "grade_id": "cell-266883cbf4d69fc8", "locked": true, @@ -1299,25 +1299,25 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happiness_report_path)).encode(\"utf-8\")+b\"4a24230c4240287f\").hexdigest() == \"a05f37b07ebfc2241edf45cd030a34546fb9556e\", \"type of type(happiness_report_path) is not correct\"\n", + "assert sha1(str(type(happiness_report_path)).encode(\"utf-8\")+b\"4c570510aa8d9778\").hexdigest() == \"32d5ad8876b493fd951ee526fea23000bbd6b0cc\", \"type of type(happiness_report_path) is not correct\"\n", "\n", - "assert sha1(str(type(happiness_report_path.split(\"/\")[-2:])).encode(\"utf-8\")+b\"13aa205199c74787\").hexdigest() == \"02f72485e2f727cbd9240b5e3ed4d8f1c184cd74\", \"type of happiness_report_path.split(\\\"/\\\")[-2:] is not list. happiness_report_path.split(\\\"/\\\")[-2:] should be a list\"\n", - "assert sha1(str(len(happiness_report_path.split(\"/\")[-2:])).encode(\"utf-8\")+b\"13aa205199c74787\").hexdigest() == \"a81d29183b5b9c8fd7cf9eefdaa3ed9b1c6295ea\", \"length of happiness_report_path.split(\\\"/\\\")[-2:] is not correct\"\n", - "assert sha1(str(sorted(map(str, happiness_report_path.split(\"/\")[-2:]))).encode(\"utf-8\")+b\"13aa205199c74787\").hexdigest() == \"0cc19db8b45d1330c9815f3d7000c9d72033e31a\", \"values of happiness_report_path.split(\\\"/\\\")[-2:] are not correct\"\n", - "assert sha1(str(happiness_report_path.split(\"/\")[-2:]).encode(\"utf-8\")+b\"13aa205199c74787\").hexdigest() == \"0cc19db8b45d1330c9815f3d7000c9d72033e31a\", \"order of elements of happiness_report_path.split(\\\"/\\\")[-2:] is not correct\"\n", + "assert sha1(str(type(happiness_report_path.split(\"/\")[-2:])).encode(\"utf-8\")+b\"b583726d18f1a24b\").hexdigest() == \"f3d6f8219e3306e0935bea3ae09838069df2564f\", \"type of happiness_report_path.split(\\\"/\\\")[-2:] is not list. happiness_report_path.split(\\\"/\\\")[-2:] should be a list\"\n", + "assert sha1(str(len(happiness_report_path.split(\"/\")[-2:])).encode(\"utf-8\")+b\"b583726d18f1a24b\").hexdigest() == \"ad8e3ad32b8662daff90a14d334a44f34a574d36\", \"length of happiness_report_path.split(\\\"/\\\")[-2:] is not correct\"\n", + "assert sha1(str(sorted(map(str, happiness_report_path.split(\"/\")[-2:]))).encode(\"utf-8\")+b\"b583726d18f1a24b\").hexdigest() == \"69944865a90c54622b177bb35a0627b5e7508867\", \"values of happiness_report_path.split(\\\"/\\\")[-2:] are not correct\"\n", + "assert sha1(str(happiness_report_path.split(\"/\")[-2:]).encode(\"utf-8\")+b\"b583726d18f1a24b\").hexdigest() == \"69944865a90c54622b177bb35a0627b5e7508867\", \"order of elements of happiness_report_path.split(\\\"/\\\")[-2:] is not correct\"\n", "\n", - "assert sha1(str(type(happiness_report)).encode(\"utf-8\")+b\"b3b9f5d5ac0d753c\").hexdigest() == \"ce7d14a7750ec544a31596287a03bfc7336f51f8\", \"type of type(happiness_report) is not correct\"\n", + "assert sha1(str(type(happiness_report)).encode(\"utf-8\")+b\"dd110e427fe50cf6\").hexdigest() == \"2a8142c2b90578cd57a0fd2ee61d46ab697f7eb8\", \"type of type(happiness_report) is not correct\"\n", "\n", - "assert sha1(str(type(happiness_report.shape)).encode(\"utf-8\")+b\"8dd8ca42684a5b20\").hexdigest() == \"499d94b7187f36405bbc77ce92623e61494b7b8e\", \"type of happiness_report.shape is not tuple. happiness_report.shape should be a tuple\"\n", - "assert sha1(str(len(happiness_report.shape)).encode(\"utf-8\")+b\"8dd8ca42684a5b20\").hexdigest() == \"ef7e5966f80586340efee74b27e01cbdc693a4c0\", \"length of happiness_report.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happiness_report.shape))).encode(\"utf-8\")+b\"8dd8ca42684a5b20\").hexdigest() == \"439aa60bae5b1b47b8859349c5952ce25308bcea\", \"values of happiness_report.shape are not correct\"\n", - "assert sha1(str(happiness_report.shape).encode(\"utf-8\")+b\"8dd8ca42684a5b20\").hexdigest() == \"9fcf5c70504cdb870b3dfe5b2d8d3d1eba108364\", \"order of elements of happiness_report.shape is not correct\"\n", + "assert sha1(str(type(happiness_report.shape)).encode(\"utf-8\")+b\"75794147a92247f5\").hexdigest() == \"310a09dab6412da8dbbdc41df79694302c98d840\", \"type of happiness_report.shape is not tuple. happiness_report.shape should be a tuple\"\n", + "assert sha1(str(len(happiness_report.shape)).encode(\"utf-8\")+b\"75794147a92247f5\").hexdigest() == \"59f69b131b5195b718f8704b579dfd4bebb21d7e\", \"length of happiness_report.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happiness_report.shape))).encode(\"utf-8\")+b\"75794147a92247f5\").hexdigest() == \"2027bedcc97fbce90b3f722e8833e05a1fe5f71e\", \"values of happiness_report.shape are not correct\"\n", + "assert sha1(str(happiness_report.shape).encode(\"utf-8\")+b\"75794147a92247f5\").hexdigest() == \"3b3585f720f342c89b131f156d886de1f505bd62\", \"order of elements of happiness_report.shape is not correct\"\n", "\n", - "assert sha1(str(type(happiness_report.columns.values)).encode(\"utf-8\")+b\"f388e7cfe2ee8830\").hexdigest() == \"4dcdb435268f181faef3c7537c177326da2a037a\", \"type of happiness_report.columns.values is not correct\"\n", - "assert sha1(str(happiness_report.columns.values).encode(\"utf-8\")+b\"f388e7cfe2ee8830\").hexdigest() == \"6b4874ac45e5cb924738d57707d3254e7bea4ba6\", \"value of happiness_report.columns.values is not correct\"\n", + "assert sha1(str(type(happiness_report.columns.values)).encode(\"utf-8\")+b\"5df0240cdf843889\").hexdigest() == \"87b4939fce1d5e33575fd5a8deb77fb12a9f97e0\", \"type of happiness_report.columns.values is not correct\"\n", + "assert sha1(str(happiness_report.columns.values).encode(\"utf-8\")+b\"5df0240cdf843889\").hexdigest() == \"37063e83a3e661bd9738db7923d10c50d3adb8b8\", \"value of happiness_report.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(happiness_report.freedom))).encode(\"utf-8\")+b\"42446b3b0d10a16d\").hexdigest() == \"0b65fcf956ca2f7f5033dd51cbca4a8386cd6db6\", \"type of sum(happiness_report.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(happiness_report.freedom), 2)).encode(\"utf-8\")+b\"42446b3b0d10a16d\").hexdigest() == \"1f4d33521b4ba1d9801fd293650c4e15d8216244\", \"value of sum(happiness_report.freedom) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(happiness_report.freedom))).encode(\"utf-8\")+b\"8530d548040bb535\").hexdigest() == \"06c348d822847fa7bb43e09b1351be43a3661f84\", \"type of sum(happiness_report.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(happiness_report.freedom), 2)).encode(\"utf-8\")+b\"8530d548040bb535\").hexdigest() == \"ae6cbc024f70e7e181607b41d0cd523d51529bc2\", \"value of sum(happiness_report.freedom) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1387,7 +1387,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4d92ffca41739bd54a6f8a0cc9645629", + "checksum": "4bf38b303b0d4ab241fae521cb71e382", "grade": true, "grade_id": "cell-d780fec46b04aed8", "locked": true, @@ -1400,10 +1400,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_5)).encode(\"utf-8\")+b\"ba74c18bc87f8dcf\").hexdigest() == \"dfbb5bf3b30eb8228efa71c0e5f0120aa876a054\", \"type of answer3_5 is not str. answer3_5 should be an str\"\n", - "assert sha1(str(len(answer3_5)).encode(\"utf-8\")+b\"ba74c18bc87f8dcf\").hexdigest() == \"8ad5858985cc930761236785a3a515124ed81cc4\", \"length of answer3_5 is not correct\"\n", - "assert sha1(str(answer3_5.lower()).encode(\"utf-8\")+b\"ba74c18bc87f8dcf\").hexdigest() == \"3a35efd009a79f54a2bcebd3905743406f2774a4\", \"value of answer3_5 is not correct\"\n", - "assert sha1(str(answer3_5).encode(\"utf-8\")+b\"ba74c18bc87f8dcf\").hexdigest() == \"a569149f937d87b848d70ef0442d4a5505d3f747\", \"correct string value of answer3_5 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_5)).encode(\"utf-8\")+b\"859aaa91f15dc32e\").hexdigest() == \"569e1e1767ac91630ef619dee9e13c271530f5a3\", \"type of answer3_5 is not str. answer3_5 should be an str\"\n", + "assert sha1(str(len(answer3_5)).encode(\"utf-8\")+b\"859aaa91f15dc32e\").hexdigest() == \"e5aca0de12b805d263e5db6020092261e5ad9c71\", \"length of answer3_5 is not correct\"\n", + "assert sha1(str(answer3_5.lower()).encode(\"utf-8\")+b\"859aaa91f15dc32e\").hexdigest() == \"c18b67615644646d1a25132da8ae681e6bebd0fa\", \"value of answer3_5 is not correct\"\n", + "assert sha1(str(answer3_5).encode(\"utf-8\")+b\"859aaa91f15dc32e\").hexdigest() == \"95ab4c628d1d91de02af11e2e24cfef864b2182e\", \"correct string value of answer3_5 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1466,7 +1466,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "9c0eea4df384b7632c6e77ac6a51cf27", + "checksum": "3fdd7df32d9a3fc50c0b0ef5c21a83eb", "grade": true, "grade_id": "cell-6f0e14455ddb386f", "locked": true, @@ -1479,18 +1479,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happy_semi_df)).encode(\"utf-8\")+b\"c5439069c6152346\").hexdigest() == \"d5c471e6e4311424d7b17e3a1e6e128fa8f65292\", \"type of type(happy_semi_df) is not correct\"\n", + "assert sha1(str(type(happy_semi_df)).encode(\"utf-8\")+b\"812ef67cb580eb9a\").hexdigest() == \"b85c82c398b8baf52386aadae655ac500551adb2\", \"type of type(happy_semi_df) is not correct\"\n", "\n", - "assert sha1(str(type(happy_semi_df.shape)).encode(\"utf-8\")+b\"5b14816ee0dd4e51\").hexdigest() == \"83aefe235a8e2e7282556719571ab039d0a9b425\", \"type of happy_semi_df.shape is not tuple. happy_semi_df.shape should be a tuple\"\n", - "assert sha1(str(len(happy_semi_df.shape)).encode(\"utf-8\")+b\"5b14816ee0dd4e51\").hexdigest() == \"a3fd4c3042fd34b9a16b0499a45039d8f8562f92\", \"length of happy_semi_df.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happy_semi_df.shape))).encode(\"utf-8\")+b\"5b14816ee0dd4e51\").hexdigest() == \"9bc16856f7f101812b76321f8b9e37e0a8a62f81\", \"values of happy_semi_df.shape are not correct\"\n", - "assert sha1(str(happy_semi_df.shape).encode(\"utf-8\")+b\"5b14816ee0dd4e51\").hexdigest() == \"c8fb79d5a20e7b752f979204bbb94a38f2f97353\", \"order of elements of happy_semi_df.shape is not correct\"\n", + "assert sha1(str(type(happy_semi_df.shape)).encode(\"utf-8\")+b\"4562534eec38729b\").hexdigest() == \"9321ef6c35a3b0e0bec249f9df993f2953205159\", \"type of happy_semi_df.shape is not tuple. happy_semi_df.shape should be a tuple\"\n", + "assert sha1(str(len(happy_semi_df.shape)).encode(\"utf-8\")+b\"4562534eec38729b\").hexdigest() == \"8c5d9975e5f1fb17b6e352f9b93da92c634ba3c7\", \"length of happy_semi_df.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happy_semi_df.shape))).encode(\"utf-8\")+b\"4562534eec38729b\").hexdigest() == \"e943719f7f7f97433d05843f6fdd9fb24247792c\", \"values of happy_semi_df.shape are not correct\"\n", + "assert sha1(str(happy_semi_df.shape).encode(\"utf-8\")+b\"4562534eec38729b\").hexdigest() == \"d3ab276fdb9b6b2819419f2a667c3ace96a2099b\", \"order of elements of happy_semi_df.shape is not correct\"\n", "\n", - "assert sha1(str(type(happy_semi_df.columns.values)).encode(\"utf-8\")+b\"a8d48252274ec278\").hexdigest() == \"958867212e130e2718104b0c8cc09117df757ac1\", \"type of happy_semi_df.columns.values is not correct\"\n", - "assert sha1(str(happy_semi_df.columns.values).encode(\"utf-8\")+b\"a8d48252274ec278\").hexdigest() == \"11d363210a6aa4fdbf20d46dd5751e61e04a2258\", \"value of happy_semi_df.columns.values is not correct\"\n", + "assert sha1(str(type(happy_semi_df.columns.values)).encode(\"utf-8\")+b\"8adc57513b677084\").hexdigest() == \"783d3657b264f0a1a3bcfcd5bcb6b23e2bea607e\", \"type of happy_semi_df.columns.values is not correct\"\n", + "assert sha1(str(happy_semi_df.columns.values).encode(\"utf-8\")+b\"8adc57513b677084\").hexdigest() == \"e3df6734157d25e415022477b27d37a9432e8543\", \"value of happy_semi_df.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df.freedom.astype(str)]).astype(float)))).encode(\"utf-8\")+b\"ad47262166de528d\").hexdigest() == \"5c1ff1e729a12d2c4b05d74e5ac9d70cca27e5e3\", \"type of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df.freedom.astype(str)]).astype(float)) is not correct\"\n", - "assert sha1(str(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df.freedom.astype(str)]).astype(float))).encode(\"utf-8\")+b\"ad47262166de528d\").hexdigest() == \"bd718f4c4ee90329ac86bc378c9e3eac032d9046\", \"value of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df.freedom.astype(str)]).astype(float)) is not correct\"\n", + "assert sha1(str(type(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df.freedom.astype(str)]).astype(float)))).encode(\"utf-8\")+b\"b066293203b59e6b\").hexdigest() == \"c99ab25f06be0069eddd334c95caf7a94c286281\", \"type of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df.freedom.astype(str)]).astype(float)) is not correct\"\n", + "assert sha1(str(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df.freedom.astype(str)]).astype(float))).encode(\"utf-8\")+b\"b066293203b59e6b\").hexdigest() == \"88801b48a46ea6408200d77479503b42bd9aaeca\", \"value of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df.freedom.astype(str)]).astype(float)) is not correct\"\n", "\n", "print('Success!')" ] @@ -1551,7 +1551,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "a5560588fe3133904db22b52e6756441", + "checksum": "9dfdcffdea0f213894a2286dd1cd0b3a", "grade": true, "grade_id": "cell-c707e8088f55e65a", "locked": true, @@ -1564,18 +1564,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happy_semi_df2)).encode(\"utf-8\")+b\"f890a5f73043dd85\").hexdigest() == \"2a510017a3828adeab5ad78d30b04e9afdce714d\", \"type of type(happy_semi_df2) is not correct\"\n", + "assert sha1(str(type(happy_semi_df2)).encode(\"utf-8\")+b\"a4a984210cdba7e3\").hexdigest() == \"339fe0d4ab37b3a0cedd4f1c16fa203f0245c5bc\", \"type of type(happy_semi_df2) is not correct\"\n", "\n", - "assert sha1(str(type(happy_semi_df2.shape)).encode(\"utf-8\")+b\"097979dd5d606629\").hexdigest() == \"52510156f13230049032a8f984d053ccfd1c5932\", \"type of happy_semi_df2.shape is not tuple. happy_semi_df2.shape should be a tuple\"\n", - "assert sha1(str(len(happy_semi_df2.shape)).encode(\"utf-8\")+b\"097979dd5d606629\").hexdigest() == \"5c3b4f64718886996e8cf2a12f4d5a21d3b15212\", \"length of happy_semi_df2.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happy_semi_df2.shape))).encode(\"utf-8\")+b\"097979dd5d606629\").hexdigest() == \"589cfc5e8bc9763b201df0fed50ed24577314e98\", \"values of happy_semi_df2.shape are not correct\"\n", - "assert sha1(str(happy_semi_df2.shape).encode(\"utf-8\")+b\"097979dd5d606629\").hexdigest() == \"29d652a45e9a95314d3e505d52c2b1901b17b8ab\", \"order of elements of happy_semi_df2.shape is not correct\"\n", + "assert sha1(str(type(happy_semi_df2.shape)).encode(\"utf-8\")+b\"055bf1f43d0a3098\").hexdigest() == \"12a308c0971d96361d53f2924590814a21b64a52\", \"type of happy_semi_df2.shape is not tuple. happy_semi_df2.shape should be a tuple\"\n", + "assert sha1(str(len(happy_semi_df2.shape)).encode(\"utf-8\")+b\"055bf1f43d0a3098\").hexdigest() == \"ec5cfbdec678e086744e8bcb9ac93a051205f714\", \"length of happy_semi_df2.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happy_semi_df2.shape))).encode(\"utf-8\")+b\"055bf1f43d0a3098\").hexdigest() == \"3d21534d8296afc2f2a6d4a80a85528f10b4bf22\", \"values of happy_semi_df2.shape are not correct\"\n", + "assert sha1(str(happy_semi_df2.shape).encode(\"utf-8\")+b\"055bf1f43d0a3098\").hexdigest() == \"7bab163b63944f4d43a71814a6434956f029ced9\", \"order of elements of happy_semi_df2.shape is not correct\"\n", "\n", - "assert sha1(str(type(happy_semi_df2.columns.values)).encode(\"utf-8\")+b\"82625bfd721ab639\").hexdigest() == \"bfee94c14fa9911b672a04d61ad3a6bd92b378e6\", \"type of happy_semi_df2.columns.values is not correct\"\n", - "assert sha1(str(happy_semi_df2.columns.values).encode(\"utf-8\")+b\"82625bfd721ab639\").hexdigest() == \"56e02d31f70ca8d5a20612e202e22c8af9788d44\", \"value of happy_semi_df2.columns.values is not correct\"\n", + "assert sha1(str(type(happy_semi_df2.columns.values)).encode(\"utf-8\")+b\"b170c5dd7de64f52\").hexdigest() == \"7d56c52eb6a02c45d26b8a69e6e8ce0433b0ab47\", \"type of happy_semi_df2.columns.values is not correct\"\n", + "assert sha1(str(happy_semi_df2.columns.values).encode(\"utf-8\")+b\"b170c5dd7de64f52\").hexdigest() == \"df769c3bb3d7d1d484049c061083921e75c31506\", \"value of happy_semi_df2.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float)))).encode(\"utf-8\")+b\"fa8de9be37f716c0\").hexdigest() == \"c909c4c73540b737b07b406a5d1557e47f84eba4\", \"type of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float)) is not correct\"\n", - "assert sha1(str(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float))).encode(\"utf-8\")+b\"fa8de9be37f716c0\").hexdigest() == \"a6d28e600269f163eb9d17c50245d59717f8797c\", \"value of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float)) is not correct\"\n", + "assert sha1(str(type(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float)))).encode(\"utf-8\")+b\"55a5874677dbdbad\").hexdigest() == \"6b2f1aec6f3c81061835278726ac755f6c58c003\", \"type of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float)) is not correct\"\n", + "assert sha1(str(sum(np.array([st.replace(\",\", \".\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float))).encode(\"utf-8\")+b\"55a5874677dbdbad\").hexdigest() == \"44cbc8efa5b0214030aa7cb7a6b668e2691bdb6c\", \"value of sum(np.array([st.replace(\\\",\\\", \\\".\\\") for st in happy_semi_df2.happiness_score.astype(str)]).astype(float)) is not correct\"\n", "\n", "print('Success!')" ] @@ -1636,7 +1636,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "813d1cd71427250d299247613cbeaed2", + "checksum": "858820841ed02d59060bbceca94dc49a", "grade": true, "grade_id": "cell-bdb550f60c65cdb1", "locked": true, @@ -1649,18 +1649,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happy_tsv)).encode(\"utf-8\")+b\"4214194ce6c566e3\").hexdigest() == \"f18b8debff62c3a1c55a500d18287206f5af01e6\", \"type of type(happy_tsv) is not correct\"\n", + "assert sha1(str(type(happy_tsv)).encode(\"utf-8\")+b\"ee2d7d3dd9faed28\").hexdigest() == \"846012f6a005d98710f1a3817e4591280f15ce56\", \"type of type(happy_tsv) is not correct\"\n", "\n", - "assert sha1(str(type(happy_tsv.shape)).encode(\"utf-8\")+b\"769e5e4c1a96ca2a\").hexdigest() == \"f79c82467165a29ccd037ed2307773bad2e33b7f\", \"type of happy_tsv.shape is not tuple. happy_tsv.shape should be a tuple\"\n", - "assert sha1(str(len(happy_tsv.shape)).encode(\"utf-8\")+b\"769e5e4c1a96ca2a\").hexdigest() == \"a7c79d533c5c7d99df90c0e33dc1fa2ea143d048\", \"length of happy_tsv.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happy_tsv.shape))).encode(\"utf-8\")+b\"769e5e4c1a96ca2a\").hexdigest() == \"f3d5c1f28714d748e5cb1796e82da39f693372f7\", \"values of happy_tsv.shape are not correct\"\n", - "assert sha1(str(happy_tsv.shape).encode(\"utf-8\")+b\"769e5e4c1a96ca2a\").hexdigest() == \"f379b971636ab07879c445dbcecd4bc38c971a08\", \"order of elements of happy_tsv.shape is not correct\"\n", + "assert sha1(str(type(happy_tsv.shape)).encode(\"utf-8\")+b\"c75df412054ed02a\").hexdigest() == \"aa76ff1d8a09581a7bd466f585a9faff457ed320\", \"type of happy_tsv.shape is not tuple. happy_tsv.shape should be a tuple\"\n", + "assert sha1(str(len(happy_tsv.shape)).encode(\"utf-8\")+b\"c75df412054ed02a\").hexdigest() == \"ad5f474c5ec9c2d6b579c6f6733e201f3f29c724\", \"length of happy_tsv.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happy_tsv.shape))).encode(\"utf-8\")+b\"c75df412054ed02a\").hexdigest() == \"222627f8997af326f60f12f14f5274871cbec066\", \"values of happy_tsv.shape are not correct\"\n", + "assert sha1(str(happy_tsv.shape).encode(\"utf-8\")+b\"c75df412054ed02a\").hexdigest() == \"26915426e855659430b51dbeee441d80583be05e\", \"order of elements of happy_tsv.shape is not correct\"\n", "\n", - "assert sha1(str(type(happy_tsv.columns.values)).encode(\"utf-8\")+b\"ad27a47f99924c06\").hexdigest() == \"cd5b9f4c5553f3317d91a62489ec920e725578cd\", \"type of happy_tsv.columns.values is not correct\"\n", - "assert sha1(str(happy_tsv.columns.values).encode(\"utf-8\")+b\"ad27a47f99924c06\").hexdigest() == \"9c61cb1718f3eec0b328225982d981190a06fcdd\", \"value of happy_tsv.columns.values is not correct\"\n", + "assert sha1(str(type(happy_tsv.columns.values)).encode(\"utf-8\")+b\"dcdb51898b20ed9b\").hexdigest() == \"99e77a39339efda9df573ba64b42e0d2d9ca637b\", \"type of happy_tsv.columns.values is not correct\"\n", + "assert sha1(str(happy_tsv.columns.values).encode(\"utf-8\")+b\"dcdb51898b20ed9b\").hexdigest() == \"ffa228263d3507939ef00529ca66d2d720410bb7\", \"value of happy_tsv.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(happy_tsv.freedom))).encode(\"utf-8\")+b\"3884c9f04238f135\").hexdigest() == \"98b9276ff162e9fd3f31ecacd2c33d2989719b4b\", \"type of sum(happy_tsv.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(happy_tsv.freedom), 2)).encode(\"utf-8\")+b\"3884c9f04238f135\").hexdigest() == \"90073e94149647e4b371fff69ad1b31fd0a38ad2\", \"value of sum(happy_tsv.freedom) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(happy_tsv.freedom))).encode(\"utf-8\")+b\"89deda579824751d\").hexdigest() == \"41e03b0a8764c9c62ddc6cfb2073b7495122b9d4\", \"type of sum(happy_tsv.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(happy_tsv.freedom), 2)).encode(\"utf-8\")+b\"89deda579824751d\").hexdigest() == \"6f37bf87d0132d814874a4f0b49378cbd794d98a\", \"value of sum(happy_tsv.freedom) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1723,7 +1723,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0e0a6e362d2d74c5afcbba340f0fa721", + "checksum": "86999a27a648a7d05d74c838cb6b14b5", "grade": true, "grade_id": "cell-ed89fc8570b1ff03", "locked": true, @@ -1736,18 +1736,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happy_metadata)).encode(\"utf-8\")+b\"41958152305d78ee\").hexdigest() == \"712fe32aa6383889addb2ca6daa4c64c2f8e5692\", \"type of type(happy_metadata) is not correct\"\n", + "assert sha1(str(type(happy_metadata)).encode(\"utf-8\")+b\"d588ef09411efa84\").hexdigest() == \"da75c798cf6573363cb750d92965f4c2efc63d81\", \"type of type(happy_metadata) is not correct\"\n", "\n", - "assert sha1(str(type(happy_metadata.shape)).encode(\"utf-8\")+b\"f829c2d920b131ed\").hexdigest() == \"fff5661b627a52022361db652d67f69c59fb380e\", \"type of happy_metadata.shape is not tuple. happy_metadata.shape should be a tuple\"\n", - "assert sha1(str(len(happy_metadata.shape)).encode(\"utf-8\")+b\"f829c2d920b131ed\").hexdigest() == \"e9d9ce90ac8d0c68bd2c32d336acd2415b4cbeb5\", \"length of happy_metadata.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happy_metadata.shape))).encode(\"utf-8\")+b\"f829c2d920b131ed\").hexdigest() == \"94dc7ce074cb3c36d180fefa1ac4625c382825d2\", \"values of happy_metadata.shape are not correct\"\n", - "assert sha1(str(happy_metadata.shape).encode(\"utf-8\")+b\"f829c2d920b131ed\").hexdigest() == \"a6ec676c3343d9b4b4703784400bee5802a39b49\", \"order of elements of happy_metadata.shape is not correct\"\n", + "assert sha1(str(type(happy_metadata.shape)).encode(\"utf-8\")+b\"571f6ee9ba74d3dc\").hexdigest() == \"32103cd50ff9063cb4eddbfb66986ddb92a91125\", \"type of happy_metadata.shape is not tuple. happy_metadata.shape should be a tuple\"\n", + "assert sha1(str(len(happy_metadata.shape)).encode(\"utf-8\")+b\"571f6ee9ba74d3dc\").hexdigest() == \"da4434e36f9aa45569e555de03d5b2b9fc59f472\", \"length of happy_metadata.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happy_metadata.shape))).encode(\"utf-8\")+b\"571f6ee9ba74d3dc\").hexdigest() == \"45c22f864bddef5cfed9fe6086f3f223eb0f6fb6\", \"values of happy_metadata.shape are not correct\"\n", + "assert sha1(str(happy_metadata.shape).encode(\"utf-8\")+b\"571f6ee9ba74d3dc\").hexdigest() == \"fc337ab435a7a70264534432fc1d1217c36b1eb6\", \"order of elements of happy_metadata.shape is not correct\"\n", "\n", - "assert sha1(str(type(happy_metadata.columns.values)).encode(\"utf-8\")+b\"aa422dc521dee60a\").hexdigest() == \"49670b61329cef41ee3c03cffb49301130f33915\", \"type of happy_metadata.columns.values is not correct\"\n", - "assert sha1(str(happy_metadata.columns.values).encode(\"utf-8\")+b\"aa422dc521dee60a\").hexdigest() == \"35db515b3a3b90c97d760928a6064151b0786036\", \"value of happy_metadata.columns.values is not correct\"\n", + "assert sha1(str(type(happy_metadata.columns.values)).encode(\"utf-8\")+b\"71122dd74cfc75c5\").hexdigest() == \"c8f6e8ff2a755654b8661b1ead6d60a94a070cac\", \"type of happy_metadata.columns.values is not correct\"\n", + "assert sha1(str(happy_metadata.columns.values).encode(\"utf-8\")+b\"71122dd74cfc75c5\").hexdigest() == \"857d8f82a250bcde48422c9521ced572de4afc98\", \"value of happy_metadata.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(happy_metadata.freedom))).encode(\"utf-8\")+b\"99ec1415acbafd4c\").hexdigest() == \"9f02755014a5eb819036d4355966e8cd6ed6597f\", \"type of sum(happy_metadata.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(happy_metadata.freedom), 2)).encode(\"utf-8\")+b\"99ec1415acbafd4c\").hexdigest() == \"9e861f992ed2c5f1607c63d01fc71a488a43063d\", \"value of sum(happy_metadata.freedom) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(happy_metadata.freedom))).encode(\"utf-8\")+b\"b884327c56eec6a2\").hexdigest() == \"3aff6b7f679e465863db82854caf9b15dcb3ceb1\", \"type of sum(happy_metadata.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(happy_metadata.freedom), 2)).encode(\"utf-8\")+b\"b884327c56eec6a2\").hexdigest() == \"ee1da6b2cfd89c4dc515f0eca637798ebb9658b2\", \"value of sum(happy_metadata.freedom) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1818,7 +1818,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5b9cc268e0b32dd8c5f69827aa54611f", + "checksum": "5e57dcef54c4887459b6076dbdfab159", "grade": true, "grade_id": "cell-f56c16878a516d14", "locked": true, @@ -1831,18 +1831,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happy_header)).encode(\"utf-8\")+b\"2ce3b074791ec9c2\").hexdigest() == \"626e1ca7fe8298e8eaf11d79c13fe105c4d8dfa8\", \"type of type(happy_header) is not correct\"\n", + "assert sha1(str(type(happy_header)).encode(\"utf-8\")+b\"d3435e43afdcf253\").hexdigest() == \"fe8dc3b260a4c9d6da85a68f019cc7c8e8a35aaa\", \"type of type(happy_header) is not correct\"\n", "\n", - "assert sha1(str(type(happy_header.shape)).encode(\"utf-8\")+b\"f0a3e494d22b36a3\").hexdigest() == \"5c7f865829a7833eafa950f1a4f6f5dd31ab7182\", \"type of happy_header.shape is not tuple. happy_header.shape should be a tuple\"\n", - "assert sha1(str(len(happy_header.shape)).encode(\"utf-8\")+b\"f0a3e494d22b36a3\").hexdigest() == \"56d160a3e75ab513dfbdfa0988b3fa32979de0c0\", \"length of happy_header.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happy_header.shape))).encode(\"utf-8\")+b\"f0a3e494d22b36a3\").hexdigest() == \"3f9831df3a5af4b4633410cf137780453d5c9c27\", \"values of happy_header.shape are not correct\"\n", - "assert sha1(str(happy_header.shape).encode(\"utf-8\")+b\"f0a3e494d22b36a3\").hexdigest() == \"f08dee877f05cd1f9efec0208c918db51b417f6c\", \"order of elements of happy_header.shape is not correct\"\n", + "assert sha1(str(type(happy_header.shape)).encode(\"utf-8\")+b\"6240bf06fb79753c\").hexdigest() == \"deaa022f2a85c5f325ff6f626686c54c68a6db55\", \"type of happy_header.shape is not tuple. happy_header.shape should be a tuple\"\n", + "assert sha1(str(len(happy_header.shape)).encode(\"utf-8\")+b\"6240bf06fb79753c\").hexdigest() == \"4ffe753bdae59d9f64640ac828378b466339e354\", \"length of happy_header.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happy_header.shape))).encode(\"utf-8\")+b\"6240bf06fb79753c\").hexdigest() == \"0182497d51c73760ce8d8a9a88c9853128ace406\", \"values of happy_header.shape are not correct\"\n", + "assert sha1(str(happy_header.shape).encode(\"utf-8\")+b\"6240bf06fb79753c\").hexdigest() == \"5e80b6a9c7197506cf6d713107c9bc796a634418\", \"order of elements of happy_header.shape is not correct\"\n", "\n", - "assert sha1(str(type(happy_header.columns.values)).encode(\"utf-8\")+b\"4ae647a1df794ad8\").hexdigest() == \"61f02188a9496a05ff5166e86f055c56902b7d31\", \"type of happy_header.columns.values is not correct\"\n", - "assert sha1(str(happy_header.columns.values).encode(\"utf-8\")+b\"4ae647a1df794ad8\").hexdigest() == \"94e1b0bd5a1c51fd3914be69d09d4e5b1d60ce37\", \"value of happy_header.columns.values is not correct\"\n", + "assert sha1(str(type(happy_header.columns.values)).encode(\"utf-8\")+b\"a867d83ec692dd1b\").hexdigest() == \"f9cc62a53cefdcb36e6f4a9b05785734f8eb3547\", \"type of happy_header.columns.values is not correct\"\n", + "assert sha1(str(happy_header.columns.values).encode(\"utf-8\")+b\"a867d83ec692dd1b\").hexdigest() == \"c936253f945d28c0bec629f14a5807b2616173d6\", \"value of happy_header.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(happy_header.freedom))).encode(\"utf-8\")+b\"0d932d9c460fe012\").hexdigest() == \"88120d3117e03c6ffa33566d9569875345b51870\", \"type of sum(happy_header.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(happy_header.freedom), 2)).encode(\"utf-8\")+b\"0d932d9c460fe012\").hexdigest() == \"3e06dc1f3e053b06fa1639226ec4f03dcb0381b8\", \"value of sum(happy_header.freedom) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(happy_header.freedom))).encode(\"utf-8\")+b\"868cb80058219ef5\").hexdigest() == \"b832c4f2ec2f701d5e8a570ad9422b00fa5afc23\", \"type of sum(happy_header.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(happy_header.freedom), 2)).encode(\"utf-8\")+b\"868cb80058219ef5\").hexdigest() == \"a1e819e66fc02095d0967cbae0e33fdb5e171852\", \"value of sum(happy_header.freedom) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1907,7 +1907,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "fb4afb708c37cbe56b3b8e04de7524b8", + "checksum": "ad424d5125b752fcae84a46073b3f346", "grade": true, "grade_id": "cell-79c203e0b46e0a51", "locked": true, @@ -1920,18 +1920,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(happy_xlsx)).encode(\"utf-8\")+b\"4cedd894affc8bdb\").hexdigest() == \"2c9ad5c3c61bf434c2a41ee81935634a13225d21\", \"type of type(happy_xlsx) is not correct\"\n", + "assert sha1(str(type(happy_xlsx)).encode(\"utf-8\")+b\"70dab5fabed75d80\").hexdigest() == \"62b475bf58685e1c933ecfa9d13830f8fae684d5\", \"type of type(happy_xlsx) is not correct\"\n", "\n", - "assert sha1(str(type(happy_xlsx.shape)).encode(\"utf-8\")+b\"b17d2573cd6bcd7e\").hexdigest() == \"baea4983914ee97a51d92dc35aa1a0af4d29c4d2\", \"type of happy_xlsx.shape is not tuple. happy_xlsx.shape should be a tuple\"\n", - "assert sha1(str(len(happy_xlsx.shape)).encode(\"utf-8\")+b\"b17d2573cd6bcd7e\").hexdigest() == \"853a77003b54349bc9943823bee6fbe9f613c4a5\", \"length of happy_xlsx.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, happy_xlsx.shape))).encode(\"utf-8\")+b\"b17d2573cd6bcd7e\").hexdigest() == \"66a677b650fc069d51d5701f0502417de943cf09\", \"values of happy_xlsx.shape are not correct\"\n", - "assert sha1(str(happy_xlsx.shape).encode(\"utf-8\")+b\"b17d2573cd6bcd7e\").hexdigest() == \"949d6cc5f4c4dfa10d032fd58da89479a2510e71\", \"order of elements of happy_xlsx.shape is not correct\"\n", + "assert sha1(str(type(happy_xlsx.shape)).encode(\"utf-8\")+b\"003035c8c625ec66\").hexdigest() == \"31ad36b0ee5fffc2d36e72c7ad10e26b6ba8f011\", \"type of happy_xlsx.shape is not tuple. happy_xlsx.shape should be a tuple\"\n", + "assert sha1(str(len(happy_xlsx.shape)).encode(\"utf-8\")+b\"003035c8c625ec66\").hexdigest() == \"eba22b362b15351196b3217fd8235c53b73ae1a1\", \"length of happy_xlsx.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, happy_xlsx.shape))).encode(\"utf-8\")+b\"003035c8c625ec66\").hexdigest() == \"07eac683a245656e168d31b41bf2b2da8ea9831f\", \"values of happy_xlsx.shape are not correct\"\n", + "assert sha1(str(happy_xlsx.shape).encode(\"utf-8\")+b\"003035c8c625ec66\").hexdigest() == \"13faf3425a4d7ad1ff5c563a12916e4ac3932c55\", \"order of elements of happy_xlsx.shape is not correct\"\n", "\n", - "assert sha1(str(type(happy_xlsx.columns.values)).encode(\"utf-8\")+b\"61892f997cbe49c5\").hexdigest() == \"d24a3dc2d6c223b584e787d65a31818622e643db\", \"type of happy_xlsx.columns.values is not correct\"\n", - "assert sha1(str(happy_xlsx.columns.values).encode(\"utf-8\")+b\"61892f997cbe49c5\").hexdigest() == \"fe45baa3bd8bef2f180cf1234c2447d3e80781f9\", \"value of happy_xlsx.columns.values is not correct\"\n", + "assert sha1(str(type(happy_xlsx.columns.values)).encode(\"utf-8\")+b\"83082bf1092c4131\").hexdigest() == \"42aa9180ec8a19ee9d2d80835044e1298559a653\", \"type of happy_xlsx.columns.values is not correct\"\n", + "assert sha1(str(happy_xlsx.columns.values).encode(\"utf-8\")+b\"83082bf1092c4131\").hexdigest() == \"b932264c4a06c00ab1f9638a733fbab9cc8917d6\", \"value of happy_xlsx.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(happy_xlsx.freedom))).encode(\"utf-8\")+b\"cc5b5aef9ed392bd\").hexdigest() == \"a81e9d09f563bc0e8275266a44055f6a8f0f0d13\", \"type of sum(happy_xlsx.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(happy_xlsx.freedom), 2)).encode(\"utf-8\")+b\"cc5b5aef9ed392bd\").hexdigest() == \"3eefd526b6c7143c5c7ea5616c837d48dcc3876d\", \"value of sum(happy_xlsx.freedom) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(happy_xlsx.freedom))).encode(\"utf-8\")+b\"8645af943e83c1a6\").hexdigest() == \"a766886d4be29c32597b0276dafb751837c8f38e\", \"type of sum(happy_xlsx.freedom) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(happy_xlsx.freedom), 2)).encode(\"utf-8\")+b\"8645af943e83c1a6\").hexdigest() == \"6f993532ddb32ddab0f02cfc71a14b25c832a0f4\", \"value of sum(happy_xlsx.freedom) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1991,7 +1991,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "61f38f8c31c2b405f289f6353455fb6e", + "checksum": "9f717ed1d4c30761046efa0f79569c21", "grade": true, "grade_id": "cell-0b8300d53191a02e", "locked": true, @@ -2004,10 +2004,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_8)).encode(\"utf-8\")+b\"a595bd1ead30fd18\").hexdigest() == \"80b772b25bd31633b4377b9fa69ae16383d710ce\", \"type of answer3_8 is not str. answer3_8 should be an str\"\n", - "assert sha1(str(len(answer3_8)).encode(\"utf-8\")+b\"a595bd1ead30fd18\").hexdigest() == \"ec4628f363c211a297dc9b641a7223385ccd275e\", \"length of answer3_8 is not correct\"\n", - "assert sha1(str(answer3_8.lower()).encode(\"utf-8\")+b\"a595bd1ead30fd18\").hexdigest() == \"324aa6b649414fc5831acc0995c2c3704d0502ce\", \"value of answer3_8 is not correct\"\n", - "assert sha1(str(answer3_8).encode(\"utf-8\")+b\"a595bd1ead30fd18\").hexdigest() == \"324aa6b649414fc5831acc0995c2c3704d0502ce\", \"correct string value of answer3_8 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_8)).encode(\"utf-8\")+b\"456f34a839e9a4c4\").hexdigest() == \"b577f956efffa751cf9ffa543f5af316d5c5d5c6\", \"type of answer3_8 is not str. answer3_8 should be an str\"\n", + "assert sha1(str(len(answer3_8)).encode(\"utf-8\")+b\"456f34a839e9a4c4\").hexdigest() == \"1e67e0771503784bd465071f00d781350c46ce2b\", \"length of answer3_8 is not correct\"\n", + "assert sha1(str(answer3_8.lower()).encode(\"utf-8\")+b\"456f34a839e9a4c4\").hexdigest() == \"97563a08244046da75ff56772eeb5f80c3ee624d\", \"value of answer3_8 is not correct\"\n", + "assert sha1(str(answer3_8).encode(\"utf-8\")+b\"456f34a839e9a4c4\").hexdigest() == \"97563a08244046da75ff56772eeb5f80c3ee624d\", \"correct string value of answer3_8 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2068,7 +2068,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3a335838cb738160efe2bec2687ff7fc", + "checksum": "c4ac4559e9323e8511999a7209f86b33", "grade": true, "grade_id": "cell-56ebd948b3afe4ab", "locked": true, @@ -2081,26 +2081,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(header_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"06320a9b9616a663\").hexdigest() == \"908a5c7d1c105f0ad4a2c10e3788f3f7b18f07ba\", \"type of header_plot.encoding.x['shorthand'] is not str. header_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(header_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"06320a9b9616a663\").hexdigest() == \"88bc9973242bbbd908dfbc5842d672bbc31e6cf8\", \"length of header_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(header_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"06320a9b9616a663\").hexdigest() == \"4264055bde5859f4524c3cd67a2208666f089fcc\", \"value of header_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(header_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"06320a9b9616a663\").hexdigest() == \"4cae9a0f4e3f7c0fb7b63191acd6e077d8b6b105\", \"correct string value of header_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(header_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"5bb3b29b6a9d5639\").hexdigest() == \"bdc847525ed58b65ff511d36551fb5e5bda6b709\", \"type of header_plot.encoding.x['shorthand'] is not str. header_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(header_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"5bb3b29b6a9d5639\").hexdigest() == \"3d9aba8865ca23e85f6614948a7f05a52b97728d\", \"length of header_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(header_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"5bb3b29b6a9d5639\").hexdigest() == \"337c0e18475da4e07acd3e98495bc8ac98694ee3\", \"value of header_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(header_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"5bb3b29b6a9d5639\").hexdigest() == \"3cfd3a074c312c4df576988c798a91ebadb54f20\", \"correct string value of header_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(header_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a281f413be4bd7f0\").hexdigest() == \"22ed7453563941f92cbee9ef5d2d1551418df5fa\", \"type of header_plot.encoding.y['shorthand'] is not str. header_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(header_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a281f413be4bd7f0\").hexdigest() == \"7ad3534490c7b071f9254f67f982e778122f41df\", \"length of header_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(header_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"a281f413be4bd7f0\").hexdigest() == \"73d542d2fff1c8de03872a6da95ea3816e7925de\", \"value of header_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(header_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"a281f413be4bd7f0\").hexdigest() == \"73d542d2fff1c8de03872a6da95ea3816e7925de\", \"correct string value of header_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(header_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"9a939c1e203b0155\").hexdigest() == \"23bbdb8fa989024a6fd2ba4bb76dcb09ad41b8a9\", \"type of header_plot.encoding.y['shorthand'] is not str. header_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(header_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"9a939c1e203b0155\").hexdigest() == \"4fd3061f4a150149265a8dec32faaa1f1f807d0b\", \"length of header_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(header_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"9a939c1e203b0155\").hexdigest() == \"651f381292b668cb3372ef06cbec99919ce3b8d2\", \"value of header_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(header_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"9a939c1e203b0155\").hexdigest() == \"651f381292b668cb3372ef06cbec99919ce3b8d2\", \"correct string value of header_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(header_plot.mark)).encode(\"utf-8\")+b\"9fee3786985ccf08\").hexdigest() == \"2fe7647a0a9abfeda0096a5b33e8ebe1866e62d2\", \"type of header_plot.mark is not str. header_plot.mark should be an str\"\n", - "assert sha1(str(len(header_plot.mark)).encode(\"utf-8\")+b\"9fee3786985ccf08\").hexdigest() == \"034616bfd8fb517d0581b93e5b7ea9ec500b21b4\", \"length of header_plot.mark is not correct\"\n", - "assert sha1(str(header_plot.mark.lower()).encode(\"utf-8\")+b\"9fee3786985ccf08\").hexdigest() == \"a39b7d091fe46e376cb830e61a9fdd04dc7a4e07\", \"value of header_plot.mark is not correct\"\n", - "assert sha1(str(header_plot.mark).encode(\"utf-8\")+b\"9fee3786985ccf08\").hexdigest() == \"a39b7d091fe46e376cb830e61a9fdd04dc7a4e07\", \"correct string value of header_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(header_plot.mark)).encode(\"utf-8\")+b\"2eda51d1b7de5e2b\").hexdigest() == \"b1354e9b84897e7b88034ae8f80c1305504ba596\", \"type of header_plot.mark is not str. header_plot.mark should be an str\"\n", + "assert sha1(str(len(header_plot.mark)).encode(\"utf-8\")+b\"2eda51d1b7de5e2b\").hexdigest() == \"570e512c8dc0ae7c4ba5b7cc59f4c7a20cbd646b\", \"length of header_plot.mark is not correct\"\n", + "assert sha1(str(header_plot.mark.lower()).encode(\"utf-8\")+b\"2eda51d1b7de5e2b\").hexdigest() == \"ecbf406122d3dd1d17215da3bb81584d35d8303c\", \"value of header_plot.mark is not correct\"\n", + "assert sha1(str(header_plot.mark).encode(\"utf-8\")+b\"2eda51d1b7de5e2b\").hexdigest() == \"ecbf406122d3dd1d17215da3bb81584d35d8303c\", \"correct string value of header_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(header_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"38fc4edbb7fc846f\").hexdigest() == \"85c4882ba52809b5eb74f1ffea7202de299f1418\", \"type of isinstance(header_plot.encoding.x['title'], str) is not bool. isinstance(header_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(header_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"38fc4edbb7fc846f\").hexdigest() == \"141df40db17f534f6b32d766ecc2949f9747bd07\", \"boolean value of isinstance(header_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(header_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"d6b7a3766650847e\").hexdigest() == \"db2c6e59767dbc3188eb60ddc7fa095c5910dc99\", \"type of isinstance(header_plot.encoding.x['title'], str) is not bool. isinstance(header_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(header_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"d6b7a3766650847e\").hexdigest() == \"db075885ee685aad9e07aeb7e12037bc2519b240\", \"boolean value of isinstance(header_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(header_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"bbdfd3a8d3a18ce4\").hexdigest() == \"2c13df61ccc70fcff85e1e5a02ccf17b904232aa\", \"type of isinstance(header_plot.encoding.y['title'], str) is not bool. isinstance(header_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(header_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"bbdfd3a8d3a18ce4\").hexdigest() == \"d6a98edea0fd99eaecf01f97f2f640553f9bc024\", \"boolean value of isinstance(header_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(header_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"cd2a4f8c6885f6f5\").hexdigest() == \"4f930db2c777ce55196796459e09c4ef17ffb042\", \"type of isinstance(header_plot.encoding.y['title'], str) is not bool. isinstance(header_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(header_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"cd2a4f8c6885f6f5\").hexdigest() == \"25e810bc5243cc65c82c3ef41a475866b778d69b\", \"boolean value of isinstance(header_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2204,7 +2204,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8e0717de1016180d6d1b47be89639867", + "checksum": "d772578a5f8ce7fe04482911e97493b6", "grade": true, "grade_id": "cell-3a25845fbe2a154e", "locked": true, @@ -2217,8 +2217,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4_1)).encode(\"utf-8\")+b\"e76afcf9b5265d18\").hexdigest() == \"e8a537ee96823fd68ab93dc2e0f2e4189b9ac124\", \"type of answer4_1 is not bool. answer4_1 should be a bool\"\n", - "assert sha1(str(answer4_1).encode(\"utf-8\")+b\"e76afcf9b5265d18\").hexdigest() == \"cc3d58748f1664e2a51f7e117c1ee9970c00f3f9\", \"boolean value of answer4_1 is not correct\"\n", + "assert sha1(str(type(answer4_1)).encode(\"utf-8\")+b\"1f58848ead0ff9eb\").hexdigest() == \"95d354197ede103684d8ad0fec7bef298325611c\", \"type of answer4_1 is not bool. answer4_1 should be a bool\"\n", + "assert sha1(str(answer4_1).encode(\"utf-8\")+b\"1f58848ead0ff9eb\").hexdigest() == \"bb29119d72aa49dc4b9a5a583ddcabcea644aeb8\", \"boolean value of answer4_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -2286,7 +2286,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8debd74b7b8499d34477dac75d275525", + "checksum": "218fc4b3c9d3031670bf184c241110e6", "grade": true, "grade_id": "cell-5ef18ca82d1a9b95", "locked": true, @@ -2299,10 +2299,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4_2)).encode(\"utf-8\")+b\"28a54d12dc2c67dc\").hexdigest() == \"d2a61bcea9c79ff6cd1a8144bcfc83fe14f925a4\", \"type of answer4_2 is not str. answer4_2 should be an str\"\n", - "assert sha1(str(len(answer4_2)).encode(\"utf-8\")+b\"28a54d12dc2c67dc\").hexdigest() == \"cf4f1a42250a842195b66a5fda9fc9b6b4a908a0\", \"length of answer4_2 is not correct\"\n", - "assert sha1(str(answer4_2.lower()).encode(\"utf-8\")+b\"28a54d12dc2c67dc\").hexdigest() == \"2f18e91d00f1212ce13d23c3ceb199e665d41979\", \"value of answer4_2 is not correct\"\n", - "assert sha1(str(answer4_2).encode(\"utf-8\")+b\"28a54d12dc2c67dc\").hexdigest() == \"d02463dbe226b513c5930a066199cfb228d326d2\", \"correct string value of answer4_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer4_2)).encode(\"utf-8\")+b\"9e80e8d0b0256b4f\").hexdigest() == \"173116457dcce427e90b3bf9c7a20a653daf776c\", \"type of answer4_2 is not str. answer4_2 should be an str\"\n", + "assert sha1(str(len(answer4_2)).encode(\"utf-8\")+b\"9e80e8d0b0256b4f\").hexdigest() == \"337fc56569bb30b32f376071c967e991dc1b3039\", \"length of answer4_2 is not correct\"\n", + "assert sha1(str(answer4_2.lower()).encode(\"utf-8\")+b\"9e80e8d0b0256b4f\").hexdigest() == \"333942e6ec04d55ada6051f09f42c4ce12b2166c\", \"value of answer4_2 is not correct\"\n", + "assert sha1(str(answer4_2).encode(\"utf-8\")+b\"9e80e8d0b0256b4f\").hexdigest() == \"8e385b980136b4b8b0e43f5e0e57033e43e71f24\", \"correct string value of answer4_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2446,7 +2446,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4ee7d8b8b6cfb21246d062a0317192e0", + "checksum": "7ee75c1c5a624bcd07fd663fcd59a55d", "grade": true, "grade_id": "cell-10c6061a03204914", "locked": true, @@ -2459,13 +2459,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(type(conn))).encode(\"utf-8\")+b\"1901f201b88d145d\").hexdigest() == \"c7edf4f8ee53f7d8c4d5eb24d0902539004ec16f\", \"type of type(conn) is not correct\"\n", - "assert sha1(str(type(conn)).encode(\"utf-8\")+b\"1901f201b88d145d\").hexdigest() == \"d172109527279471053c157b6100df09505812e3\", \"value of type(conn) is not correct\"\n", + "assert sha1(str(type(type(conn))).encode(\"utf-8\")+b\"56e96f35d1d6fa16\").hexdigest() == \"c8659f382d55db65804ef17471b9945640746f18\", \"type of type(conn) is not correct\"\n", + "assert sha1(str(type(conn)).encode(\"utf-8\")+b\"56e96f35d1d6fa16\").hexdigest() == \"10f01667aec93c8b8b9955e5a27db075144cdf4f\", \"value of type(conn) is not correct\"\n", "\n", - "assert sha1(str(type(conn.list_tables())).encode(\"utf-8\")+b\"740504e28014acb4\").hexdigest() == \"c2e2cd47fbab944d8a04ffd49ba92aabcfad59d2\", \"type of conn.list_tables() is not list. conn.list_tables() should be a list\"\n", - "assert sha1(str(len(conn.list_tables())).encode(\"utf-8\")+b\"740504e28014acb4\").hexdigest() == \"ed75994573d64eba22af27dce6e9b208adca9ee0\", \"length of conn.list_tables() is not correct\"\n", - "assert sha1(str(sorted(map(str, conn.list_tables()))).encode(\"utf-8\")+b\"740504e28014acb4\").hexdigest() == \"b5037f0ff5c7bec8d425b833fd42f5efb2027279\", \"values of conn.list_tables() are not correct\"\n", - "assert sha1(str(conn.list_tables()).encode(\"utf-8\")+b\"740504e28014acb4\").hexdigest() == \"b5037f0ff5c7bec8d425b833fd42f5efb2027279\", \"order of elements of conn.list_tables() is not correct\"\n", + "assert sha1(str(type(conn.list_tables())).encode(\"utf-8\")+b\"2d75b676205eeb09\").hexdigest() == \"926f2e65a4fdaaac8a9e370b53061641bc9d6d4c\", \"type of conn.list_tables() is not list. conn.list_tables() should be a list\"\n", + "assert sha1(str(len(conn.list_tables())).encode(\"utf-8\")+b\"2d75b676205eeb09\").hexdigest() == \"27ac0c00838f979ac95ebd729289933718e4918a\", \"length of conn.list_tables() is not correct\"\n", + "assert sha1(str(sorted(map(str, conn.list_tables()))).encode(\"utf-8\")+b\"2d75b676205eeb09\").hexdigest() == \"9611adf071f86bfe2692f1cd8f137e4d9fc88176\", \"values of conn.list_tables() are not correct\"\n", + "assert sha1(str(conn.list_tables()).encode(\"utf-8\")+b\"2d75b676205eeb09\").hexdigest() == \"9611adf071f86bfe2692f1cd8f137e4d9fc88176\", \"order of elements of conn.list_tables() is not correct\"\n", "\n", "print('Success!')" ] @@ -2542,7 +2542,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f3a86db16efe8b009e4bf0e6245d452d", + "checksum": "4f9abfeae3b49f1d29cbee0c8df45c7f", "grade": true, "grade_id": "cell-0cdbe210a4acaec3", "locked": true, @@ -2555,10 +2555,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(flights_table_name)).encode(\"utf-8\")+b\"5acd1d14759879e9\").hexdigest() == \"414279cc2f099979413fbaa0dd875c87a710814f\", \"type of flights_table_name is not str. flights_table_name should be an str\"\n", - "assert sha1(str(len(flights_table_name)).encode(\"utf-8\")+b\"5acd1d14759879e9\").hexdigest() == \"67256e362d7899ecafded13731c2c8e68e8bc14d\", \"length of flights_table_name is not correct\"\n", - "assert sha1(str(flights_table_name.lower()).encode(\"utf-8\")+b\"5acd1d14759879e9\").hexdigest() == \"889a74c938f35d65db78befc0b3967b621b79cd1\", \"value of flights_table_name is not correct\"\n", - "assert sha1(str(flights_table_name).encode(\"utf-8\")+b\"5acd1d14759879e9\").hexdigest() == \"889a74c938f35d65db78befc0b3967b621b79cd1\", \"correct string value of flights_table_name but incorrect case of letters\"\n", + "assert sha1(str(type(flights_table_name)).encode(\"utf-8\")+b\"35b993b57e541eec\").hexdigest() == \"bd1ffe855e27fe2b2b0e1ea27ea6dd043fc2f049\", \"type of flights_table_name is not str. flights_table_name should be an str\"\n", + "assert sha1(str(len(flights_table_name)).encode(\"utf-8\")+b\"35b993b57e541eec\").hexdigest() == \"9b22610fe34906bd6073cbbd585014aa381f9b54\", \"length of flights_table_name is not correct\"\n", + "assert sha1(str(flights_table_name.lower()).encode(\"utf-8\")+b\"35b993b57e541eec\").hexdigest() == \"4116e1db18109612f3b18d8902e2729939f3d25d\", \"value of flights_table_name is not correct\"\n", + "assert sha1(str(flights_table_name).encode(\"utf-8\")+b\"35b993b57e541eec\").hexdigest() == \"4116e1db18109612f3b18d8902e2729939f3d25d\", \"correct string value of flights_table_name but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2621,7 +2621,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e2905e9efa6f5d4af11ce3aaff1c0ae9", + "checksum": "9dab264580229bf9ee979a4c97a56889", "grade": true, "grade_id": "cell-f49edc2edcd86899", "locked": true, @@ -2634,13 +2634,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(type(flight_data))).encode(\"utf-8\")+b\"599c60674951d396\").hexdigest() == \"f8a2d038fa750896c4f5057455325e8da0f4f1ca\", \"type of type(flight_data) is not correct\"\n", - "assert sha1(str(type(flight_data)).encode(\"utf-8\")+b\"599c60674951d396\").hexdigest() == \"95e1712f2107438b3b7b2e446c57d0b03950fd40\", \"value of type(flight_data) is not correct\"\n", + "assert sha1(str(type(type(flight_data))).encode(\"utf-8\")+b\"b0b5890f2308e4be\").hexdigest() == \"7020f3baa6935de0d0f4073004142385477a496f\", \"type of type(flight_data) is not correct\"\n", + "assert sha1(str(type(flight_data)).encode(\"utf-8\")+b\"b0b5890f2308e4be\").hexdigest() == \"92532a8cb44a5ed02851996f07217f2b49169edc\", \"value of type(flight_data) is not correct\"\n", "\n", - "assert sha1(str(type(flight_data.columns)).encode(\"utf-8\")+b\"b376a3d684a04478\").hexdigest() == \"24a8b7b10d2dd23681afb6e7d47dd62ed6e51e18\", \"type of flight_data.columns is not list. flight_data.columns should be a list\"\n", - "assert sha1(str(len(flight_data.columns)).encode(\"utf-8\")+b\"b376a3d684a04478\").hexdigest() == \"f71c727fcfdbd0c49dd1a750900662228e34bc79\", \"length of flight_data.columns is not correct\"\n", - "assert sha1(str(sorted(map(str, flight_data.columns))).encode(\"utf-8\")+b\"b376a3d684a04478\").hexdigest() == \"a8795612b184bd7021b8749c77a58a642356fd47\", \"values of flight_data.columns are not correct\"\n", - "assert sha1(str(flight_data.columns).encode(\"utf-8\")+b\"b376a3d684a04478\").hexdigest() == \"5f56ae7f28dcbba161eef66b962fcebad5f55d51\", \"order of elements of flight_data.columns is not correct\"\n", + "assert sha1(str(type(flight_data.columns)).encode(\"utf-8\")+b\"d3d5e17a4e2054d2\").hexdigest() == \"c1f890065322b6ceab1ec74e65351c39458618de\", \"type of flight_data.columns is not list. flight_data.columns should be a list\"\n", + "assert sha1(str(len(flight_data.columns)).encode(\"utf-8\")+b\"d3d5e17a4e2054d2\").hexdigest() == \"1ac7428c40984e89cea3a34e2de88cf72652206e\", \"length of flight_data.columns is not correct\"\n", + "assert sha1(str(sorted(map(str, flight_data.columns))).encode(\"utf-8\")+b\"d3d5e17a4e2054d2\").hexdigest() == \"17210c97aa9992ef9d1c588e3da31a8f404eb7c3\", \"values of flight_data.columns are not correct\"\n", + "assert sha1(str(flight_data.columns).encode(\"utf-8\")+b\"d3d5e17a4e2054d2\").hexdigest() == \"dc4a485eeede0e14c0391da1c327073ad2ea4d58\", \"order of elements of flight_data.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -2804,7 +2804,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "449b51d2d75ef4a0484864a1a7550876", + "checksum": "b119e7e6398f69ead9a5e6de79ef0229", "grade": true, "grade_id": "cell-5338b9a6748de0f7", "locked": true, @@ -2817,13 +2817,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(delay_data.shape)).encode(\"utf-8\")+b\"13b8f67621c9faff\").hexdigest() == \"2744f1602fded2e320ddf337fbed63f9c33f3393\", \"type of delay_data.shape is not tuple. delay_data.shape should be a tuple\"\n", - "assert sha1(str(len(delay_data.shape)).encode(\"utf-8\")+b\"13b8f67621c9faff\").hexdigest() == \"83fd505d2ec4314af849ea5ecc16e886e75a2d52\", \"length of delay_data.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, delay_data.shape))).encode(\"utf-8\")+b\"13b8f67621c9faff\").hexdigest() == \"5e030dcffacc833d7ec9cf5294319b3bc4b6e016\", \"values of delay_data.shape are not correct\"\n", - "assert sha1(str(delay_data.shape).encode(\"utf-8\")+b\"13b8f67621c9faff\").hexdigest() == \"b5ca71ba5dc4a7763201a7e83ef673ff50a42f80\", \"order of elements of delay_data.shape is not correct\"\n", + "assert sha1(str(type(delay_data.shape)).encode(\"utf-8\")+b\"f5905ae42263b878\").hexdigest() == \"6d92b7072e36a43a9cc1315d92b7b7b0f8a73495\", \"type of delay_data.shape is not tuple. delay_data.shape should be a tuple\"\n", + "assert sha1(str(len(delay_data.shape)).encode(\"utf-8\")+b\"f5905ae42263b878\").hexdigest() == \"c5fb0c1d0cb5615db3c7e162e3b94621ff0e1f43\", \"length of delay_data.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, delay_data.shape))).encode(\"utf-8\")+b\"f5905ae42263b878\").hexdigest() == \"2603c478351449c73a52fcb4465c3bf4d711c9af\", \"values of delay_data.shape are not correct\"\n", + "assert sha1(str(delay_data.shape).encode(\"utf-8\")+b\"f5905ae42263b878\").hexdigest() == \"9cd8b49c7908af315bc753222e88c86ef2fd1401\", \"order of elements of delay_data.shape is not correct\"\n", "\n", - "assert sha1(str(type(delay_data.columns.values)).encode(\"utf-8\")+b\"e914c0d978f60a93\").hexdigest() == \"240f0ffac2dcf8fd051689c8f6f7b7bef2b7160b\", \"type of delay_data.columns.values is not correct\"\n", - "assert sha1(str(delay_data.columns.values).encode(\"utf-8\")+b\"e914c0d978f60a93\").hexdigest() == \"3b2e6ecde684cf87c56e98c1ebe2fdde98449bc6\", \"value of delay_data.columns.values is not correct\"\n", + "assert sha1(str(type(delay_data.columns.values)).encode(\"utf-8\")+b\"93a3b9bbd6bd2900\").hexdigest() == \"5369ce02c9dc91ea82abd958c90064d935fd2680\", \"type of delay_data.columns.values is not correct\"\n", + "assert sha1(str(delay_data.columns.values).encode(\"utf-8\")+b\"93a3b9bbd6bd2900\").hexdigest() == \"2a326d91b73e2e22ec5ae1149a74e12ea599d943\", \"value of delay_data.columns.values is not correct\"\n", "\n", "print('Success!')" ] @@ -3044,7 +3044,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "996693ef4b329fb518b17c100f1af2eb", + "checksum": "ae7e139288c8ff187dbb167a73f03bee", "grade": true, "grade_id": "cell-c7ffba55e40ac67a", "locked": true, @@ -3057,30 +3057,30 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(arrival_delay_plot.mark)).encode(\"utf-8\")+b\"bb16209ba6ca1512\").hexdigest() == \"267e9578748e7d27f68a1d424987e4273d89b836\", \"type of arrival_delay_plot.mark is not str. arrival_delay_plot.mark should be an str\"\n", - "assert sha1(str(len(arrival_delay_plot.mark)).encode(\"utf-8\")+b\"bb16209ba6ca1512\").hexdigest() == \"961058f2ab63d33da6dcc65c76882d538cbb48c9\", \"length of arrival_delay_plot.mark is not correct\"\n", - "assert sha1(str(arrival_delay_plot.mark.lower()).encode(\"utf-8\")+b\"bb16209ba6ca1512\").hexdigest() == \"f934cea934651de64b3bdaff2da014660f6b9a91\", \"value of arrival_delay_plot.mark is not correct\"\n", - "assert sha1(str(arrival_delay_plot.mark).encode(\"utf-8\")+b\"bb16209ba6ca1512\").hexdigest() == \"f934cea934651de64b3bdaff2da014660f6b9a91\", \"correct string value of arrival_delay_plot.mark but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(arrival_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"03230f0cca954470\").hexdigest() == \"57f8ad4276c3a98524804ee359b8b06c456c3fb0\", \"type of arrival_delay_plot.encoding.x['title'] is not str. arrival_delay_plot.encoding.x['title'] should be an str\"\n", - "assert sha1(str(len(arrival_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"03230f0cca954470\").hexdigest() == \"4f61a8c3fd1dfd27e170cbf499227199fbe8861d\", \"length of arrival_delay_plot.encoding.x['title'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.x['title'].lower()).encode(\"utf-8\")+b\"03230f0cca954470\").hexdigest() == \"6defa2d6595de33594627815c2a0bf170957299e\", \"value of arrival_delay_plot.encoding.x['title'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.x['title']).encode(\"utf-8\")+b\"03230f0cca954470\").hexdigest() == \"1f0d5df93b44126fd5d7c7ceac72accd2acb944e\", \"correct string value of arrival_delay_plot.encoding.x['title'] but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(arrival_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"47bbfe711f7fb0d6\").hexdigest() == \"0428324476efc53b1406c83255398ff000fac59f\", \"type of arrival_delay_plot.encoding.y['title'] is not str. arrival_delay_plot.encoding.y['title'] should be an str\"\n", - "assert sha1(str(len(arrival_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"47bbfe711f7fb0d6\").hexdigest() == \"4d0f87511c0b5aea31f747046588bf19dfe52528\", \"length of arrival_delay_plot.encoding.y['title'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.y['title'].lower()).encode(\"utf-8\")+b\"47bbfe711f7fb0d6\").hexdigest() == \"6f888b6e4c79efd3714615715a36d1e37f38971a\", \"value of arrival_delay_plot.encoding.y['title'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.y['title']).encode(\"utf-8\")+b\"47bbfe711f7fb0d6\").hexdigest() == \"64396e64a7b850a841e096368b6bc185ad4dbc71\", \"correct string value of arrival_delay_plot.encoding.y['title'] but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(arrival_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ddda0fb8e9ce9db9\").hexdigest() == \"a4a922f0fa611a271e80303e874e4b4b8ff12102\", \"type of arrival_delay_plot.encoding.x['shorthand'] is not str. arrival_delay_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(arrival_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ddda0fb8e9ce9db9\").hexdigest() == \"22e006bcfe8247ef51fd04f8e93a83676b40a6c6\", \"length of arrival_delay_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"ddda0fb8e9ce9db9\").hexdigest() == \"7ec9be605f15db7cb1c1dd33d97b6a3be623c8f0\", \"value of arrival_delay_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"ddda0fb8e9ce9db9\").hexdigest() == \"b2bd20b5f53ad0cab6a7f381893611c510c04576\", \"correct string value of arrival_delay_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(arrival_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"991f2239874882a5\").hexdigest() == \"a34d5d80e8fc0814a583b342ed702d2745968635\", \"type of arrival_delay_plot.encoding.y['shorthand'] is not str. arrival_delay_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(arrival_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"991f2239874882a5\").hexdigest() == \"22215f024938ddfd03a5b8cc49c5df48bde752a0\", \"length of arrival_delay_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"991f2239874882a5\").hexdigest() == \"1b853ec980fdacf2e9c9ca223d29c90f9ed13e61\", \"value of arrival_delay_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(arrival_delay_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"991f2239874882a5\").hexdigest() == \"ced91d5d3e0313d97d6a9335658c4a18e43760ac\", \"correct string value of arrival_delay_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(arrival_delay_plot.mark)).encode(\"utf-8\")+b\"96809b268a57fc76\").hexdigest() == \"e6c5740e37b57415a9e0038ccd2649f78af16664\", \"type of arrival_delay_plot.mark is not str. arrival_delay_plot.mark should be an str\"\n", + "assert sha1(str(len(arrival_delay_plot.mark)).encode(\"utf-8\")+b\"96809b268a57fc76\").hexdigest() == \"8607f791dfb9d21a429d28cb92e47ccb35527de3\", \"length of arrival_delay_plot.mark is not correct\"\n", + "assert sha1(str(arrival_delay_plot.mark.lower()).encode(\"utf-8\")+b\"96809b268a57fc76\").hexdigest() == \"ed9c723cb67e0df51c48e3583a843c2b3e49bfc9\", \"value of arrival_delay_plot.mark is not correct\"\n", + "assert sha1(str(arrival_delay_plot.mark).encode(\"utf-8\")+b\"96809b268a57fc76\").hexdigest() == \"ed9c723cb67e0df51c48e3583a843c2b3e49bfc9\", \"correct string value of arrival_delay_plot.mark but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(arrival_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"3faccbb8edf5e762\").hexdigest() == \"46b9677fa195ceb8aee9ad31d0b43a5db7c8f87e\", \"type of arrival_delay_plot.encoding.x['title'] is not str. arrival_delay_plot.encoding.x['title'] should be an str\"\n", + "assert sha1(str(len(arrival_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"3faccbb8edf5e762\").hexdigest() == \"5ff38526748dfd344dd1208f8f3a181bc83c3bd4\", \"length of arrival_delay_plot.encoding.x['title'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.x['title'].lower()).encode(\"utf-8\")+b\"3faccbb8edf5e762\").hexdigest() == \"9336ed4d3591813fb7416de0e968ed1ad665b8c1\", \"value of arrival_delay_plot.encoding.x['title'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.x['title']).encode(\"utf-8\")+b\"3faccbb8edf5e762\").hexdigest() == \"6c8f7a723b52bab582b4dfd105738a1316f450c6\", \"correct string value of arrival_delay_plot.encoding.x['title'] but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(arrival_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"fe7b5b02fac34a67\").hexdigest() == \"f7a85634dce612fde30db76ff303fb8f4126a0e5\", \"type of arrival_delay_plot.encoding.y['title'] is not str. arrival_delay_plot.encoding.y['title'] should be an str\"\n", + "assert sha1(str(len(arrival_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"fe7b5b02fac34a67\").hexdigest() == \"828787b94df8981a025c4c2a7ddf265066d3e274\", \"length of arrival_delay_plot.encoding.y['title'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.y['title'].lower()).encode(\"utf-8\")+b\"fe7b5b02fac34a67\").hexdigest() == \"90ab3ffd892339de73d74a39eafe95c51507c15e\", \"value of arrival_delay_plot.encoding.y['title'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.y['title']).encode(\"utf-8\")+b\"fe7b5b02fac34a67\").hexdigest() == \"2d68cf1ab7bd745edad21ac4151f03fe0e8ab344\", \"correct string value of arrival_delay_plot.encoding.y['title'] but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(arrival_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"01a9d92e99fbb83a\").hexdigest() == \"162e68812ff99bea77c374dc05a7799a81fe301d\", \"type of arrival_delay_plot.encoding.x['shorthand'] is not str. arrival_delay_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(arrival_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"01a9d92e99fbb83a\").hexdigest() == \"0fcdc83dcf241d32661624d39b7440a27ca702aa\", \"length of arrival_delay_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"01a9d92e99fbb83a\").hexdigest() == \"d91c1d7c22f6dd7e922ab0e1e760bdfb179736fe\", \"value of arrival_delay_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"01a9d92e99fbb83a\").hexdigest() == \"baaac7502886700bfabfaea13a23b6385fe4ed08\", \"correct string value of arrival_delay_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(arrival_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"1b88137eb3aef8f6\").hexdigest() == \"e8add31c01adcca3924e13aba2a6ef4b4ea84240\", \"type of arrival_delay_plot.encoding.y['shorthand'] is not str. arrival_delay_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(arrival_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"1b88137eb3aef8f6\").hexdigest() == \"6b2eb57fc92b310d2d6a8d6ca6843d8e081120b2\", \"length of arrival_delay_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"1b88137eb3aef8f6\").hexdigest() == \"7eca3d0a3a673db90caa5ec48395226ea4a2b6e6\", \"value of arrival_delay_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(arrival_delay_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"1b88137eb3aef8f6\").hexdigest() == \"dd13e4f7712a328b33b83ee753e8e55da22d7e1e\", \"correct string value of arrival_delay_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3146,7 +3146,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2859dc5346be399299e2672055e0deed", + "checksum": "8d502ad1a4f1891b7ce4dbff14ec8002", "grade": true, "grade_id": "cell-1389a9deb7b3bcce", "locked": true, @@ -3159,30 +3159,30 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(departure_delay_plot.mark)).encode(\"utf-8\")+b\"cb6c4907e339673c\").hexdigest() == \"e53266ba13c1b561754b9a6a573dea2987d914d4\", \"type of departure_delay_plot.mark is not str. departure_delay_plot.mark should be an str\"\n", - "assert sha1(str(len(departure_delay_plot.mark)).encode(\"utf-8\")+b\"cb6c4907e339673c\").hexdigest() == \"ae0e01afcf753113761ccb552c17f917945f4b3e\", \"length of departure_delay_plot.mark is not correct\"\n", - "assert sha1(str(departure_delay_plot.mark.lower()).encode(\"utf-8\")+b\"cb6c4907e339673c\").hexdigest() == \"e35626546c4668f52956683d1618db17f509013f\", \"value of departure_delay_plot.mark is not correct\"\n", - "assert sha1(str(departure_delay_plot.mark).encode(\"utf-8\")+b\"cb6c4907e339673c\").hexdigest() == \"e35626546c4668f52956683d1618db17f509013f\", \"correct string value of departure_delay_plot.mark but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(departure_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"1b04dc85389d66bb\").hexdigest() == \"26df82197e6e1996bb8c92dc567b41fae6160740\", \"type of departure_delay_plot.encoding.x['title'] is not str. departure_delay_plot.encoding.x['title'] should be an str\"\n", - "assert sha1(str(len(departure_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"1b04dc85389d66bb\").hexdigest() == \"e3724f72dfe4da4be4c0299beb96247555ad1592\", \"length of departure_delay_plot.encoding.x['title'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.x['title'].lower()).encode(\"utf-8\")+b\"1b04dc85389d66bb\").hexdigest() == \"c15e5eac334a440917eb00d64422473f835800e7\", \"value of departure_delay_plot.encoding.x['title'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.x['title']).encode(\"utf-8\")+b\"1b04dc85389d66bb\").hexdigest() == \"43e62eb26ccfe8beca08b67829e3178e35cfbc8e\", \"correct string value of departure_delay_plot.encoding.x['title'] but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(departure_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"a78674d9e0bccba9\").hexdigest() == \"4b24955a29429a8cb1244c9543d1c272c265fedf\", \"type of departure_delay_plot.encoding.y['title'] is not str. departure_delay_plot.encoding.y['title'] should be an str\"\n", - "assert sha1(str(len(departure_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"a78674d9e0bccba9\").hexdigest() == \"9c653722505b77c6ae0371eebf00ae88a1834226\", \"length of departure_delay_plot.encoding.y['title'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.y['title'].lower()).encode(\"utf-8\")+b\"a78674d9e0bccba9\").hexdigest() == \"15a38c21b52ed7b7bb572758e070fd6694a43d4e\", \"value of departure_delay_plot.encoding.y['title'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.y['title']).encode(\"utf-8\")+b\"a78674d9e0bccba9\").hexdigest() == \"18d693ad34c13d3aef6857b9ef833614f6a300b5\", \"correct string value of departure_delay_plot.encoding.y['title'] but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(departure_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"23f0b65f5d1ee6dc\").hexdigest() == \"f1a934074b09207efca09f2c33177b073fc6962b\", \"type of departure_delay_plot.encoding.x['shorthand'] is not str. departure_delay_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(departure_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"23f0b65f5d1ee6dc\").hexdigest() == \"62e7da50221c7ca981ece3d2a4aed8e2f2d144a5\", \"length of departure_delay_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"23f0b65f5d1ee6dc\").hexdigest() == \"402d4c2046f4fdd5ce2ed39d09b8101bdb25cb64\", \"value of departure_delay_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"23f0b65f5d1ee6dc\").hexdigest() == \"9a8ddb0a2512e6cca25d03cde235bc13110daf58\", \"correct string value of departure_delay_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", - "\n", - "assert sha1(str(type(departure_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"85cc56707b962e87\").hexdigest() == \"ea9668a43a714a93815c6b1dcf564d0e7054a23f\", \"type of departure_delay_plot.encoding.y['shorthand'] is not str. departure_delay_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(departure_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"85cc56707b962e87\").hexdigest() == \"a25957da1d06198ee0e155f30fbdb6e2821d8cd5\", \"length of departure_delay_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"85cc56707b962e87\").hexdigest() == \"92ffb8c76b2b1521c6c7a9d6291ad595df6ec520\", \"value of departure_delay_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(departure_delay_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"85cc56707b962e87\").hexdigest() == \"de9d366622472fe6474d5573e25c5c2f53b9b30b\", \"correct string value of departure_delay_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(departure_delay_plot.mark)).encode(\"utf-8\")+b\"17e74b4ce6b12e7d\").hexdigest() == \"20ba83b3b6501942513c2d7ccd189dbc4614b5e1\", \"type of departure_delay_plot.mark is not str. departure_delay_plot.mark should be an str\"\n", + "assert sha1(str(len(departure_delay_plot.mark)).encode(\"utf-8\")+b\"17e74b4ce6b12e7d\").hexdigest() == \"703f0d2c0999848c0c641b01cec931702542ad26\", \"length of departure_delay_plot.mark is not correct\"\n", + "assert sha1(str(departure_delay_plot.mark.lower()).encode(\"utf-8\")+b\"17e74b4ce6b12e7d\").hexdigest() == \"2d5da2dfeccd59ef9ea08a1e9faa9344c3ca3c7e\", \"value of departure_delay_plot.mark is not correct\"\n", + "assert sha1(str(departure_delay_plot.mark).encode(\"utf-8\")+b\"17e74b4ce6b12e7d\").hexdigest() == \"2d5da2dfeccd59ef9ea08a1e9faa9344c3ca3c7e\", \"correct string value of departure_delay_plot.mark but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(departure_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"7a4dc29b05412371\").hexdigest() == \"33bcd429da6cb33db8cd2a023cd26cd297515175\", \"type of departure_delay_plot.encoding.x['title'] is not str. departure_delay_plot.encoding.x['title'] should be an str\"\n", + "assert sha1(str(len(departure_delay_plot.encoding.x['title'])).encode(\"utf-8\")+b\"7a4dc29b05412371\").hexdigest() == \"b0ee99b2fc3b3cc1ac3d182160e3aa498ec90587\", \"length of departure_delay_plot.encoding.x['title'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.x['title'].lower()).encode(\"utf-8\")+b\"7a4dc29b05412371\").hexdigest() == \"e415a49c9d4cc75e143faebf68cbef41e7e7d922\", \"value of departure_delay_plot.encoding.x['title'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.x['title']).encode(\"utf-8\")+b\"7a4dc29b05412371\").hexdigest() == \"e65ce986b0c5cd16fa99d1ccb0967f38c7e97003\", \"correct string value of departure_delay_plot.encoding.x['title'] but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(departure_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"8f775bb78d7cdafd\").hexdigest() == \"5b0d4a299895bc5f0bfcb50528b8bda812bdaa63\", \"type of departure_delay_plot.encoding.y['title'] is not str. departure_delay_plot.encoding.y['title'] should be an str\"\n", + "assert sha1(str(len(departure_delay_plot.encoding.y['title'])).encode(\"utf-8\")+b\"8f775bb78d7cdafd\").hexdigest() == \"525399821d1e739fbf41a307e13013414cf7ad82\", \"length of departure_delay_plot.encoding.y['title'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.y['title'].lower()).encode(\"utf-8\")+b\"8f775bb78d7cdafd\").hexdigest() == \"e1e101be28db70637ac17206ce02678a1d39046f\", \"value of departure_delay_plot.encoding.y['title'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.y['title']).encode(\"utf-8\")+b\"8f775bb78d7cdafd\").hexdigest() == \"92b14ae98406460fe52b89d83d672f45fd12e404\", \"correct string value of departure_delay_plot.encoding.y['title'] but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(departure_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0573283ffb5b16b5\").hexdigest() == \"568cbb4c88816d28d61a5080b426559c57a74a5f\", \"type of departure_delay_plot.encoding.x['shorthand'] is not str. departure_delay_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(departure_delay_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0573283ffb5b16b5\").hexdigest() == \"3b976d9d860b80683fe8bab629b2976f1ec487b9\", \"length of departure_delay_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"0573283ffb5b16b5\").hexdigest() == \"e9570fcd918d45ee9d9f63a9b82e3b4954baf023\", \"value of departure_delay_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"0573283ffb5b16b5\").hexdigest() == \"c1c5fb905af5aaab568b7699e8bd16ce4e1b0611\", \"correct string value of departure_delay_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "\n", + "assert sha1(str(type(departure_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"22418c87e33d8049\").hexdigest() == \"c9dd3ea41bc46346d6326d19dfbf1195206ac6a7\", \"type of departure_delay_plot.encoding.y['shorthand'] is not str. departure_delay_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(departure_delay_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"22418c87e33d8049\").hexdigest() == \"3add7c97d1155e2df699890bee4b5dc6ddb2c345\", \"length of departure_delay_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"22418c87e33d8049\").hexdigest() == \"c5218d7cd618b8d314b9b0e8d4f12eea3ee56d66\", \"value of departure_delay_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(departure_delay_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"22418c87e33d8049\").hexdigest() == \"ac5b955bb75127051375c22fee7dc85e89d23d4f\", \"correct string value of departure_delay_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3244,7 +3244,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "1a59cbaba129383bf07e4e341e236dfb", + "checksum": "6baa357d8537cde9ff83f2eefd14d123", "grade": true, "grade_id": "cell-5e0e102e3ce475fd", "locked": true, @@ -3257,10 +3257,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4_7)).encode(\"utf-8\")+b\"00faf792804df0a6\").hexdigest() == \"5a78eb195a4b8d071dd4d71917ec14580027a2f5\", \"type of answer4_7 is not str. answer4_7 should be an str\"\n", - "assert sha1(str(len(answer4_7)).encode(\"utf-8\")+b\"00faf792804df0a6\").hexdigest() == \"16527f13cf3850c7e27a7d4020b698ea41048542\", \"length of answer4_7 is not correct\"\n", - "assert sha1(str(answer4_7.lower()).encode(\"utf-8\")+b\"00faf792804df0a6\").hexdigest() == \"dffac3c59621c7e47f7a71e97ff384f2ee678c1e\", \"value of answer4_7 is not correct\"\n", - "assert sha1(str(answer4_7).encode(\"utf-8\")+b\"00faf792804df0a6\").hexdigest() == \"dffac3c59621c7e47f7a71e97ff384f2ee678c1e\", \"correct string value of answer4_7 but incorrect case of letters\"\n", + "assert sha1(str(type(answer4_7)).encode(\"utf-8\")+b\"4f83f43300b2d70f\").hexdigest() == \"de662bb36de500e56dd70fcde9cfb427f562cfd0\", \"type of answer4_7 is not str. answer4_7 should be an str\"\n", + "assert sha1(str(len(answer4_7)).encode(\"utf-8\")+b\"4f83f43300b2d70f\").hexdigest() == \"41fe322e552574f04f831a1a6b5c44f3ded44804\", \"length of answer4_7 is not correct\"\n", + "assert sha1(str(answer4_7.lower()).encode(\"utf-8\")+b\"4f83f43300b2d70f\").hexdigest() == \"db330556acf0fd1707336bac666aae8b631f164c\", \"value of answer4_7 is not correct\"\n", + "assert sha1(str(answer4_7).encode(\"utf-8\")+b\"4f83f43300b2d70f\").hexdigest() == \"db330556acf0fd1707336bac666aae8b631f164c\", \"correct string value of answer4_7 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3334,7 +3334,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "82e774fd6206866653743a0b4cd94fe5", + "checksum": "ab53dd9713279a758690d616638c2ed3", "grade": true, "grade_id": "cell-ba229a7094676d0f", "locked": true, @@ -3347,11 +3347,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(os.path.exists('data/delay_data.csv'))).encode(\"utf-8\")+b\"e7d347bc0596f804\").hexdigest() == \"3f920f405e995e43b39bb8619986c53c6106674e\", \"type of os.path.exists('data/delay_data.csv') is not bool. os.path.exists('data/delay_data.csv') should be a bool\"\n", - "assert sha1(str(os.path.exists('data/delay_data.csv')).encode(\"utf-8\")+b\"e7d347bc0596f804\").hexdigest() == \"0a0752fd8fef8df6379e2ea86db4ec3f2c7b62f9\", \"boolean value of os.path.exists('data/delay_data.csv') is not correct\"\n", + "assert sha1(str(type(os.path.exists('data/delay_data.csv'))).encode(\"utf-8\")+b\"ea4e6987437e9877\").hexdigest() == \"4e9cf443d206860e142611094744e16d80bc1a75\", \"type of os.path.exists('data/delay_data.csv') is not bool. os.path.exists('data/delay_data.csv') should be a bool\"\n", + "assert sha1(str(os.path.exists('data/delay_data.csv')).encode(\"utf-8\")+b\"ea4e6987437e9877\").hexdigest() == \"5ab053cd0fac8656bc1aa69f0596573edbd50328\", \"boolean value of os.path.exists('data/delay_data.csv') is not correct\"\n", "\n", - "assert sha1(str(type(pd.read_csv('data/delay_data.csv').sum())).encode(\"utf-8\")+b\"2f7190307b3c1a5d\").hexdigest() == \"565909fc3ba0b2c659b2e569eb4ee6bed5591c43\", \"type of pd.read_csv('data/delay_data.csv').sum() is not correct\"\n", - "assert sha1(str(pd.read_csv('data/delay_data.csv').sum()).encode(\"utf-8\")+b\"2f7190307b3c1a5d\").hexdigest() == \"0882bdfe04a74151c47c873bb04d36f9778a94cb\", \"value of pd.read_csv('data/delay_data.csv').sum() is not correct\"\n", + "assert sha1(str(type(pd.read_csv('data/delay_data.csv').sum())).encode(\"utf-8\")+b\"0dda0f1dc9b3f080\").hexdigest() == \"955db28ba6835745b00058d753e42e06159d8094\", \"type of pd.read_csv('data/delay_data.csv').sum() is not correct\"\n", + "assert sha1(str(pd.read_csv('data/delay_data.csv').sum()).encode(\"utf-8\")+b\"0dda0f1dc9b3f080\").hexdigest() == \"8ef94898d1dcbd6ebcd9a46df3d6087ff16ef27b\", \"value of pd.read_csv('data/delay_data.csv').sum() is not correct\"\n", "\n", "print('Success!')" ] @@ -3475,7 +3475,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "def10c18ccfbed182106141f5bb508d2", + "checksum": "605e28f716c323abafeb16095b5c1fee", "grade": true, "grade_id": "cell-23f53baed109b8c8", "locked": true, @@ -3488,10 +3488,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer5_1_0)).encode(\"utf-8\")+b\"9d20ac1816fc291a\").hexdigest() == \"bf82b3c8393b28b55e6b70f8e10a3fc0aec6d07c\", \"type of answer5_1_0 is not str. answer5_1_0 should be an str\"\n", - "assert sha1(str(len(answer5_1_0)).encode(\"utf-8\")+b\"9d20ac1816fc291a\").hexdigest() == \"6595ed4e5ec6ca98b230585d6f8eb925d4d0918b\", \"length of answer5_1_0 is not correct\"\n", - "assert sha1(str(answer5_1_0.lower()).encode(\"utf-8\")+b\"9d20ac1816fc291a\").hexdigest() == \"385e508895b225f3f0e72b8629372ed32a010416\", \"value of answer5_1_0 is not correct\"\n", - "assert sha1(str(answer5_1_0).encode(\"utf-8\")+b\"9d20ac1816fc291a\").hexdigest() == \"4c3fa516a8424824b44e206f0c37bc66da085529\", \"correct string value of answer5_1_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer5_1_0)).encode(\"utf-8\")+b\"b529065606ac49bb\").hexdigest() == \"eeec10079965e1ee3b14c8b3d78a0a15644205ad\", \"type of answer5_1_0 is not str. answer5_1_0 should be an str\"\n", + "assert sha1(str(len(answer5_1_0)).encode(\"utf-8\")+b\"b529065606ac49bb\").hexdigest() == \"71d80dddbe58b7ab2586eee0319a7edad836826c\", \"length of answer5_1_0 is not correct\"\n", + "assert sha1(str(answer5_1_0.lower()).encode(\"utf-8\")+b\"b529065606ac49bb\").hexdigest() == \"53a6d587cf770316ab1b4a217ae182945e988f3c\", \"value of answer5_1_0 is not correct\"\n", + "assert sha1(str(answer5_1_0).encode(\"utf-8\")+b\"b529065606ac49bb\").hexdigest() == \"a42b00afa95fa3187fbf9670ee08c696250dfd4f\", \"correct string value of answer5_1_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3557,7 +3557,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "10a1a641289fa1ef509f10d9ebffab1d", + "checksum": "dcf658660ce4abfda90b311adfe50144", "grade": true, "grade_id": "cell-3e8412c02d763ddf", "locked": true, @@ -3570,10 +3570,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer5_1_1)).encode(\"utf-8\")+b\"33afadf80c876a01\").hexdigest() == \"d4e0f7617c0f8691ecfbea2f4fd257e8e60a179c\", \"type of answer5_1_1 is not str. answer5_1_1 should be an str\"\n", - "assert sha1(str(len(answer5_1_1)).encode(\"utf-8\")+b\"33afadf80c876a01\").hexdigest() == \"5eb9d2e8f5a0d5416ec242b826fcc2cda8b016dc\", \"length of answer5_1_1 is not correct\"\n", - "assert sha1(str(answer5_1_1.lower()).encode(\"utf-8\")+b\"33afadf80c876a01\").hexdigest() == \"81e7c54c3cd7d3ab6cfcd14be2b9e4cca638785a\", \"value of answer5_1_1 is not correct\"\n", - "assert sha1(str(answer5_1_1).encode(\"utf-8\")+b\"33afadf80c876a01\").hexdigest() == \"c7cb9fe6fc367a090d876bb4feb07c93e42ada4b\", \"correct string value of answer5_1_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer5_1_1)).encode(\"utf-8\")+b\"cf7818d7be55b2cb\").hexdigest() == \"d02e4e6ec774612670ea2b934b48a816ea2c6b1a\", \"type of answer5_1_1 is not str. answer5_1_1 should be an str\"\n", + "assert sha1(str(len(answer5_1_1)).encode(\"utf-8\")+b\"cf7818d7be55b2cb\").hexdigest() == \"3bfb77f10c2692b85878b4f10b7cfe8debf5e2e1\", \"length of answer5_1_1 is not correct\"\n", + "assert sha1(str(answer5_1_1.lower()).encode(\"utf-8\")+b\"cf7818d7be55b2cb\").hexdigest() == \"f043d8665007c5847b34e4d09c486055f36abbea\", \"value of answer5_1_1 is not correct\"\n", + "assert sha1(str(answer5_1_1).encode(\"utf-8\")+b\"cf7818d7be55b2cb\").hexdigest() == \"e893cb69171dd51b46225135dc271342879c7279\", \"correct string value of answer5_1_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3679,7 +3679,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "dd78ec9a9d363061f26ce8c883a8eabc", + "checksum": "51a4eeb9c0d461c6f3a0f904516eefb0", "grade": true, "grade_id": "cell-70aac0a17c2d3ce8", "locked": true, @@ -3692,11 +3692,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(gwp.__module__ == 'bs4')).encode(\"utf-8\")+b\"a2622571146a6098\").hexdigest() == \"3c00c5724cd852c6967d3b2bd9e88ec849bed0e2\", \"type of gwp.__module__ == 'bs4' is not bool. gwp.__module__ == 'bs4' should be a bool\"\n", - "assert sha1(str(gwp.__module__ == 'bs4').encode(\"utf-8\")+b\"a2622571146a6098\").hexdigest() == \"751aa918b493594c7ca0dc87509de89eed04c1dd\", \"boolean value of gwp.__module__ == 'bs4' is not correct\"\n", + "assert sha1(str(type(gwp.__module__ == 'bs4')).encode(\"utf-8\")+b\"1aed16c152336cce\").hexdigest() == \"a494419bc8ab47f6cd52ac346e7f65d121bb0823\", \"type of gwp.__module__ == 'bs4' is not bool. gwp.__module__ == 'bs4' should be a bool\"\n", + "assert sha1(str(gwp.__module__ == 'bs4').encode(\"utf-8\")+b\"1aed16c152336cce\").hexdigest() == \"f4460571f1dec9dc03404f21108edc09dcee2835\", \"boolean value of gwp.__module__ == 'bs4' is not correct\"\n", "\n", - "assert sha1(str(type(len(gwp.find_all(\"table\")))).encode(\"utf-8\")+b\"c1b35e5ebce9e70c\").hexdigest() == \"8586361b39cde0cced0639b93c7340bf51efaa27\", \"type of len(gwp.find_all(\\\"table\\\")) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(gwp.find_all(\"table\"))).encode(\"utf-8\")+b\"c1b35e5ebce9e70c\").hexdigest() == \"673572f17ef08f1806a74c437558efdc7c29a737\", \"value of len(gwp.find_all(\\\"table\\\")) is not correct\"\n", + "assert sha1(str(type(len(gwp.find_all(\"table\")))).encode(\"utf-8\")+b\"0785c62b63420074\").hexdigest() == \"efb7babb3846d141d96c15560f2de08af82a4042\", \"type of len(gwp.find_all(\\\"table\\\")) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(gwp.find_all(\"table\"))).encode(\"utf-8\")+b\"0785c62b63420074\").hexdigest() == \"4e7d8726b71b6d8f2a7f88cb6a2aa0e8303fe98a\", \"value of len(gwp.find_all(\\\"table\\\")) is not correct\"\n", "\n", "print('Success!')" ] @@ -3942,7 +3942,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "634d535a6cd03397a869ad4f34eb92e7", + "checksum": "fe4158f0552a63e1c5769b03523c3501", "grade": true, "grade_id": "cell-438addc1687e3917", "locked": true, @@ -3955,8 +3955,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(gwp_value.dtypes)).encode(\"utf-8\")+b\"56c3f8fd8f794977\").hexdigest() == \"bdb82bc167eb0c234036faa553b33d1c8f4c784c\", \"type of gwp_value.dtypes is not correct\"\n", - "assert sha1(str(gwp_value.dtypes).encode(\"utf-8\")+b\"56c3f8fd8f794977\").hexdigest() == \"e443153336a7b175779099a0190cc65b64916ee5\", \"value of gwp_value.dtypes is not correct\"\n", + "assert sha1(str(type(gwp_value.dtypes)).encode(\"utf-8\")+b\"1b6742780efe92bc\").hexdigest() == \"defefaa06258fae6e8033199c22bb1681c947041\", \"type of gwp_value.dtypes is not correct\"\n", + "assert sha1(str(gwp_value.dtypes).encode(\"utf-8\")+b\"1b6742780efe92bc\").hexdigest() == \"320e0190ce9a0f4f9a006ed9a74e5f762b37de37\", \"value of gwp_value.dtypes is not correct\"\n", "\n", "print('Success!')" ] @@ -4069,7 +4069,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "303e0c5bda7154b83a08d8a87baa69ad", + "checksum": "f135953d38e9d16f600f915a44942f0e", "grade": true, "grade_id": "cell-3cba4415a994f8a4", "locked": true, @@ -4082,13 +4082,13 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(gwp)).encode(\"utf-8\")+b\"83c50968555b7870\").hexdigest() == \"0d3ffc0f5d29a919fdf7f8347c1a9ca4b2eed804\", \"type of type(gwp) is not correct\"\n", + "assert sha1(str(type(gwp)).encode(\"utf-8\")+b\"b76a7e57e68e3c6c\").hexdigest() == \"2fcf83f31863b8e31f9e23a79d4eb72518a591ad\", \"type of type(gwp) is not correct\"\n", "\n", - "assert sha1(str(type(\"year\" in gwp.columns)).encode(\"utf-8\")+b\"474f34bc949085ca\").hexdigest() == \"70d3ff0ec43aa453ab1a319c6c498b7824d620ac\", \"type of \\\"year\\\" in gwp.columns is not bool. \\\"year\\\" in gwp.columns should be a bool\"\n", - "assert sha1(str(\"year\" in gwp.columns).encode(\"utf-8\")+b\"474f34bc949085ca\").hexdigest() == \"bc84aa5ca8a0dcdb3ffe85e4c509f0544fe57197\", \"boolean value of \\\"year\\\" in gwp.columns is not correct\"\n", + "assert sha1(str(type(\"year\" in gwp.columns)).encode(\"utf-8\")+b\"01a085e3a40476fd\").hexdigest() == \"0f929880f2dbd5c7b64b0203bd5cc7ad6de5566d\", \"type of \\\"year\\\" in gwp.columns is not bool. \\\"year\\\" in gwp.columns should be a bool\"\n", + "assert sha1(str(\"year\" in gwp.columns).encode(\"utf-8\")+b\"01a085e3a40476fd\").hexdigest() == \"3a5ac9f74d6aa807b49da210433af9cfac17ec7d\", \"boolean value of \\\"year\\\" in gwp.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"gwp_value\" in gwp.columns)).encode(\"utf-8\")+b\"706b6079a5159fbf\").hexdigest() == \"40b834dd32c65f88935227ad33d02d4d38f48e4a\", \"type of \\\"gwp_value\\\" in gwp.columns is not bool. \\\"gwp_value\\\" in gwp.columns should be a bool\"\n", - "assert sha1(str(\"gwp_value\" in gwp.columns).encode(\"utf-8\")+b\"706b6079a5159fbf\").hexdigest() == \"2cb29c2882b42e52c510185c4ebe57f352a9a9c0\", \"boolean value of \\\"gwp_value\\\" in gwp.columns is not correct\"\n", + "assert sha1(str(type(\"gwp_value\" in gwp.columns)).encode(\"utf-8\")+b\"87bcd30be69a9abd\").hexdigest() == \"25c4d11605e07f6fc60959be6894c59f77914abf\", \"type of \\\"gwp_value\\\" in gwp.columns is not bool. \\\"gwp_value\\\" in gwp.columns should be a bool\"\n", + "assert sha1(str(\"gwp_value\" in gwp.columns).encode(\"utf-8\")+b\"87bcd30be69a9abd\").hexdigest() == \"cb9e9ec296baea18d86a834166d0d26747ae326d\", \"boolean value of \\\"gwp_value\\\" in gwp.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -4244,7 +4244,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "623332d3b2a2330c8335553267d64ab9", + "checksum": "f0e6abef9784e26e5483aebad3cbb9a0", "grade": true, "grade_id": "cell-777c68035ed0cf31", "locked": true, @@ -4257,16 +4257,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(gwp_historical.mark)).encode(\"utf-8\")+b\"f0da9949e2a6d345\").hexdigest() == \"1c81ce2be59dcaa6ad2388cb3cb1df3b4070ef65\", \"type of gwp_historical.mark is not str. gwp_historical.mark should be an str\"\n", - "assert sha1(str(len(gwp_historical.mark)).encode(\"utf-8\")+b\"f0da9949e2a6d345\").hexdigest() == \"ab815f23fb8a3c3e7ab9baa7c744c4f7fa529e13\", \"length of gwp_historical.mark is not correct\"\n", - "assert sha1(str(gwp_historical.mark.lower()).encode(\"utf-8\")+b\"f0da9949e2a6d345\").hexdigest() == \"6d7b481d86489d00314136badd2645c0c7f128fc\", \"value of gwp_historical.mark is not correct\"\n", - "assert sha1(str(gwp_historical.mark).encode(\"utf-8\")+b\"f0da9949e2a6d345\").hexdigest() == \"6d7b481d86489d00314136badd2645c0c7f128fc\", \"correct string value of gwp_historical.mark but incorrect case of letters\"\n", + "assert sha1(str(type(gwp_historical.mark)).encode(\"utf-8\")+b\"b6813862709ca50c\").hexdigest() == \"71a963e58a9759827e1bf38352098f02f3adff26\", \"type of gwp_historical.mark is not str. gwp_historical.mark should be an str\"\n", + "assert sha1(str(len(gwp_historical.mark)).encode(\"utf-8\")+b\"b6813862709ca50c\").hexdigest() == \"c354252e6ed9ef67a0bea1e73509537352061fe0\", \"length of gwp_historical.mark is not correct\"\n", + "assert sha1(str(gwp_historical.mark.lower()).encode(\"utf-8\")+b\"b6813862709ca50c\").hexdigest() == \"f69bc00bdb4a57362c6cd76cd4703dabd15974c3\", \"value of gwp_historical.mark is not correct\"\n", + "assert sha1(str(gwp_historical.mark).encode(\"utf-8\")+b\"b6813862709ca50c\").hexdigest() == \"f69bc00bdb4a57362c6cd76cd4703dabd15974c3\", \"correct string value of gwp_historical.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(gwp_historical.encoding.x['title'], str))).encode(\"utf-8\")+b\"25dd7a5b85674eb0\").hexdigest() == \"459fb6bc023e5c108a5ba992aab0392e4ce67180\", \"type of isinstance(gwp_historical.encoding.x['title'], str) is not bool. isinstance(gwp_historical.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(gwp_historical.encoding.x['title'], str)).encode(\"utf-8\")+b\"25dd7a5b85674eb0\").hexdigest() == \"553419520121797f76fbcafa890ec63ff2607315\", \"boolean value of isinstance(gwp_historical.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(gwp_historical.encoding.x['title'], str))).encode(\"utf-8\")+b\"42240ad9ef8e1d9d\").hexdigest() == \"2a47a20adcd9375a1e945b7e526b56d75431af4c\", \"type of isinstance(gwp_historical.encoding.x['title'], str) is not bool. isinstance(gwp_historical.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(gwp_historical.encoding.x['title'], str)).encode(\"utf-8\")+b\"42240ad9ef8e1d9d\").hexdigest() == \"e34402c0daa21d06bfe81aa913b33509786d971e\", \"boolean value of isinstance(gwp_historical.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(gwp_historical.encoding.y['title'], str))).encode(\"utf-8\")+b\"51571be616a7d94f\").hexdigest() == \"697afaf9c0373a5d0aab857a5c33fb767801c761\", \"type of isinstance(gwp_historical.encoding.y['title'], str) is not bool. isinstance(gwp_historical.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(gwp_historical.encoding.y['title'], str)).encode(\"utf-8\")+b\"51571be616a7d94f\").hexdigest() == \"cb4eaeb725de2f43acb62f2dde9df8b6b2dca673\", \"boolean value of isinstance(gwp_historical.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(gwp_historical.encoding.y['title'], str))).encode(\"utf-8\")+b\"e197d43707ed2195\").hexdigest() == \"3202dc22709a623b1b1b0c476c5161d7758157f2\", \"type of isinstance(gwp_historical.encoding.y['title'], str) is not bool. isinstance(gwp_historical.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(gwp_historical.encoding.y['title'], str)).encode(\"utf-8\")+b\"e197d43707ed2195\").hexdigest() == \"d39cea2922d8fc3725b2c0c592f4e604a52decd0\", \"boolean value of isinstance(gwp_historical.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -4335,7 +4335,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f416d2608fa41ca88d59cd1ce0b7846b", + "checksum": "c795ebc0ee935a40fbd585a82a647dde", "grade": true, "grade_id": "cell-1f98d6f7bb212ed9", "locked": true, @@ -4348,10 +4348,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer5_7)).encode(\"utf-8\")+b\"2cc415bdc2e369b0\").hexdigest() == \"1e6e26c1bd81231a2d345cb49b41b39d7d946fdb\", \"type of answer5_7 is not str. answer5_7 should be an str\"\n", - "assert sha1(str(len(answer5_7)).encode(\"utf-8\")+b\"2cc415bdc2e369b0\").hexdigest() == \"08529589d677452d9096c5b4a99263b1c2208d41\", \"length of answer5_7 is not correct\"\n", - "assert sha1(str(answer5_7.lower()).encode(\"utf-8\")+b\"2cc415bdc2e369b0\").hexdigest() == \"a37e2854a2e214f45ac3be164dc7e3e35ba81804\", \"value of answer5_7 is not correct\"\n", - "assert sha1(str(answer5_7).encode(\"utf-8\")+b\"2cc415bdc2e369b0\").hexdigest() == \"9ef9fb0bca0fd5d0d7e8a7017107a0456afd683c\", \"correct string value of answer5_7 but incorrect case of letters\"\n", + "assert sha1(str(type(answer5_7)).encode(\"utf-8\")+b\"d67a9b44e1472528\").hexdigest() == \"9a940aa10e455aa6c243552386f52301928e1fab\", \"type of answer5_7 is not str. answer5_7 should be an str\"\n", + "assert sha1(str(len(answer5_7)).encode(\"utf-8\")+b\"d67a9b44e1472528\").hexdigest() == \"7bf7c06c1c1b37d603ebe82127117518d6ac9eba\", \"length of answer5_7 is not correct\"\n", + "assert sha1(str(answer5_7.lower()).encode(\"utf-8\")+b\"d67a9b44e1472528\").hexdigest() == \"81ab17eb5a4d41daf3fafa9f0f953308450e9855\", \"value of answer5_7 is not correct\"\n", + "assert sha1(str(answer5_7).encode(\"utf-8\")+b\"d67a9b44e1472528\").hexdigest() == \"f49d3094e4c896ec2ecc74b39facdfa59d227a2c\", \"correct string value of answer5_7 but incorrect case of letters\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_regression1/py_worksheet_regression1.ipynb b/py_worksheet_regression1/py_worksheet_regression1.ipynb index 09aa598..ce877fb 100644 --- a/py_worksheet_regression1/py_worksheet_regression1.ipynb +++ b/py_worksheet_regression1/py_worksheet_regression1.ipynb @@ -131,7 +131,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "502a6770e0d111da96d9b80ba7867e31", + "checksum": "49ce12ef43ce88719799735d6309b0b7", "grade": true, "grade_id": "cell-7d5938e33a38edeb", "locked": true, @@ -143,10 +143,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_0)).encode(\"utf-8\")+b\"bd3407798a0e40a1\").hexdigest() == \"1c4643ba7147cdf7193bf376956c724b9f6ac9b5\", \"type of answer0_0 is not str. answer0_0 should be an str\"\n", - "assert sha1(str(len(answer0_0)).encode(\"utf-8\")+b\"bd3407798a0e40a1\").hexdigest() == \"069a2991c7d79601a638afdf1f39b4df22ea80aa\", \"length of answer0_0 is not correct\"\n", - "assert sha1(str(answer0_0.lower()).encode(\"utf-8\")+b\"bd3407798a0e40a1\").hexdigest() == \"dbcbc220ab89f93b13f17fc9940da098b6f09784\", \"value of answer0_0 is not correct\"\n", - "assert sha1(str(answer0_0).encode(\"utf-8\")+b\"bd3407798a0e40a1\").hexdigest() == \"faa33c5d5fafe7d88a9e4f86399efa53b3b0aee2\", \"correct string value of answer0_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_0)).encode(\"utf-8\")+b\"000fe37c656a089d\").hexdigest() == \"4ef40b011eae2943dde4af579c11052330f8975e\", \"type of answer0_0 is not str. answer0_0 should be an str\"\n", + "assert sha1(str(len(answer0_0)).encode(\"utf-8\")+b\"000fe37c656a089d\").hexdigest() == \"74cfa2f7d057abd57674b615856dc85dde0a8db4\", \"length of answer0_0 is not correct\"\n", + "assert sha1(str(answer0_0.lower()).encode(\"utf-8\")+b\"000fe37c656a089d\").hexdigest() == \"39edf08564fb5d6cec1f60ef9af1cf704c109a81\", \"value of answer0_0 is not correct\"\n", + "assert sha1(str(answer0_0).encode(\"utf-8\")+b\"000fe37c656a089d\").hexdigest() == \"b0e5393b90fac11d85c9df0a5bd7c174814e22f8\", \"correct string value of answer0_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -215,7 +215,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5abb249928252eeb26926455df5bbdc9", + "checksum": "d029428bbc4cba2fbe83c8fd4bb77b38", "grade": true, "grade_id": "cell-b1e66491132c1e30", "locked": true, @@ -228,10 +228,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"3a6c2d5057815c89\").hexdigest() == \"fe62081b71c3af815f5fec7ba3d8d85c20a8d334\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", - "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"3a6c2d5057815c89\").hexdigest() == \"6b1d1e9ad11fe83e3d813311b0bd4345ca2010fc\", \"length of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"3a6c2d5057815c89\").hexdigest() == \"30839949907ea8b0867df956bfd0ccd37d5c357d\", \"value of answer0_1 is not correct\"\n", - "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"3a6c2d5057815c89\").hexdigest() == \"94c36033d1ae1d24c1129e0fb48c80e2c582d859\", \"correct string value of answer0_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"c9539f92543de733\").hexdigest() == \"249009c8158b32e5876258783807211c708e1784\", \"type of answer0_1 is not str. answer0_1 should be an str\"\n", + "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"c9539f92543de733\").hexdigest() == \"aa660f809675ec4518170b0c9fce1cc746b3996e\", \"length of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1.lower()).encode(\"utf-8\")+b\"c9539f92543de733\").hexdigest() == \"30a2ae027bdc80b2331d1b896163ff05c0ad6107\", \"value of answer0_1 is not correct\"\n", + "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"c9539f92543de733\").hexdigest() == \"553ab8a6a5889ff6064103174de6aa4208722512\", \"correct string value of answer0_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -294,7 +294,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "48e1d06402a78044746e8866cc016e85", + "checksum": "5c2152571b3c671efcbf7fdc597d1982", "grade": true, "grade_id": "cell-d90b3e7b890ce86b", "locked": true, @@ -306,8 +306,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"b5bdedd33d070f72\").hexdigest() == \"8f21bbd832a13652845205b8837feb00b93eb847\", \"type of answer0_2 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(answer0_2, 2)).encode(\"utf-8\")+b\"b5bdedd33d070f72\").hexdigest() == \"7edaab46306185bbe3777a653760322f91e71f50\", \"value of answer0_2 is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"e739e4624f5284ce\").hexdigest() == \"33ccdcf4ed3f9e76d04abd4e9affb8ad83ae2c47\", \"type of answer0_2 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(answer0_2, 2)).encode(\"utf-8\")+b\"e739e4624f5284ce\").hexdigest() == \"2e9204b0e0cfb5bacccf9156962f6450a55c317e\", \"value of answer0_2 is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -378,7 +378,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4d34a3fb9b9349459a5f8f06afc8750f", + "checksum": "e36604cab773ed2889ba58e461e649b2", "grade": true, "grade_id": "cell-db93265fd197f97f", "locked": true, @@ -391,10 +391,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_3)).encode(\"utf-8\")+b\"dbeaec790c2eecf8\").hexdigest() == \"d90375d1bda11c0da32efefe79e01d1faf5f648c\", \"type of answer0_3 is not str. answer0_3 should be an str\"\n", - "assert sha1(str(len(answer0_3)).encode(\"utf-8\")+b\"dbeaec790c2eecf8\").hexdigest() == \"92410133de0eaafae7837117dfabb06f4a57a885\", \"length of answer0_3 is not correct\"\n", - "assert sha1(str(answer0_3.lower()).encode(\"utf-8\")+b\"dbeaec790c2eecf8\").hexdigest() == \"bc083cb21e9608bac6cba73fbe8a23d55a6b551d\", \"value of answer0_3 is not correct\"\n", - "assert sha1(str(answer0_3).encode(\"utf-8\")+b\"dbeaec790c2eecf8\").hexdigest() == \"3d11e79183ed464181e0ff99846f95a3daa5b809\", \"correct string value of answer0_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_3)).encode(\"utf-8\")+b\"66be2edc460026da\").hexdigest() == \"61df880b0f8bd6b01b691a056a276b4ec9828765\", \"type of answer0_3 is not str. answer0_3 should be an str\"\n", + "assert sha1(str(len(answer0_3)).encode(\"utf-8\")+b\"66be2edc460026da\").hexdigest() == \"2677389896ac9ccd2952e1735a76b1a02d85d520\", \"length of answer0_3 is not correct\"\n", + "assert sha1(str(answer0_3.lower()).encode(\"utf-8\")+b\"66be2edc460026da\").hexdigest() == \"12505f13f5bfc96d8763d530aa72cdcf88fc09bc\", \"value of answer0_3 is not correct\"\n", + "assert sha1(str(answer0_3).encode(\"utf-8\")+b\"66be2edc460026da\").hexdigest() == \"6f6b45e5bcda1d549a6756c7c4c3cd163912868e\", \"correct string value of answer0_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -477,7 +477,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5ca2f2b618b56683c4526a5cd7e95248", + "checksum": "4502e5093a9f244f6f405deebacdcc68", "grade": true, "grade_id": "cell-60554f6f6a56a16c", "locked": true, @@ -489,21 +489,21 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon is None)).encode(\"utf-8\")+b\"fba9a9f9021093b0\").hexdigest() == \"a8b60028fb4e3d2961100128256b605d872c7735\", \"type of marathon is None is not bool. marathon is None should be a bool\"\n", - "assert sha1(str(marathon is None).encode(\"utf-8\")+b\"fba9a9f9021093b0\").hexdigest() == \"6c0dfffb4e6ad61fdf49d5a5d9834ce90502aba4\", \"boolean value of marathon is None is not correct\"\n", + "assert sha1(str(type(marathon is None)).encode(\"utf-8\")+b\"08f714ec6f5861d0\").hexdigest() == \"1cc73d67cc3754aaf3e63d54c066a532a4736700\", \"type of marathon is None is not bool. marathon is None should be a bool\"\n", + "assert sha1(str(marathon is None).encode(\"utf-8\")+b\"08f714ec6f5861d0\").hexdigest() == \"4cb62ecbc15ee743adb1e27e8fec664345b24493\", \"boolean value of marathon is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon)).encode(\"utf-8\")+b\"67b00066a96de7cf\").hexdigest() == \"06b6e7aa1d8174036b41693a512cd7679689b595\", \"type of type(marathon) is not correct\"\n", + "assert sha1(str(type(marathon)).encode(\"utf-8\")+b\"ecfd4bd23ee64744\").hexdigest() == \"5c787c34ad3db1bae186885e8c0453a0e8604629\", \"type of type(marathon) is not correct\"\n", "\n", - "assert sha1(str(type(marathon.shape)).encode(\"utf-8\")+b\"10ac86b4bc109af4\").hexdigest() == \"9e89b473f4feb11c081e761a7cec824c2d2c7110\", \"type of marathon.shape is not tuple. marathon.shape should be a tuple\"\n", - "assert sha1(str(len(marathon.shape)).encode(\"utf-8\")+b\"10ac86b4bc109af4\").hexdigest() == \"3aba96b2092fa7d5db72603dcad64e1167f1580f\", \"length of marathon.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon.shape))).encode(\"utf-8\")+b\"10ac86b4bc109af4\").hexdigest() == \"57e4270f5aa00e08de8a0420372eba4608d65437\", \"values of marathon.shape are not correct\"\n", - "assert sha1(str(marathon.shape).encode(\"utf-8\")+b\"10ac86b4bc109af4\").hexdigest() == \"5fbcb2e92dd432d66378b6e5fffb22e41e5a2397\", \"order of elements of marathon.shape is not correct\"\n", + "assert sha1(str(type(marathon.shape)).encode(\"utf-8\")+b\"c3dfc35551ec0ce8\").hexdigest() == \"f51d3965fbce50d6aed44071b56c39b32c80d4de\", \"type of marathon.shape is not tuple. marathon.shape should be a tuple\"\n", + "assert sha1(str(len(marathon.shape)).encode(\"utf-8\")+b\"c3dfc35551ec0ce8\").hexdigest() == \"094fb40a11241a4539047513e63cc6b47d150edb\", \"length of marathon.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon.shape))).encode(\"utf-8\")+b\"c3dfc35551ec0ce8\").hexdigest() == \"8ff98b1bb34dc461a808ba49deb40a42e057a020\", \"values of marathon.shape are not correct\"\n", + "assert sha1(str(marathon.shape).encode(\"utf-8\")+b\"c3dfc35551ec0ce8\").hexdigest() == \"d936b02c7d4d0f39d922cada6d655f92ae8e541d\", \"order of elements of marathon.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"time_hrs\" in marathon.columns)).encode(\"utf-8\")+b\"6836623fc4c52631\").hexdigest() == \"5171108d3cd95edc40dfc488d55af84c2fc9a58e\", \"type of \\\"time_hrs\\\" in marathon.columns is not bool. \\\"time_hrs\\\" in marathon.columns should be a bool\"\n", - "assert sha1(str(\"time_hrs\" in marathon.columns).encode(\"utf-8\")+b\"6836623fc4c52631\").hexdigest() == \"32c96a9468dd1e6152971b2f0b416033b87902e7\", \"boolean value of \\\"time_hrs\\\" in marathon.columns is not correct\"\n", + "assert sha1(str(type(\"time_hrs\" in marathon.columns)).encode(\"utf-8\")+b\"8a2922763e0b52ca\").hexdigest() == \"05da76da8c32cd5127a741150c6491cd378cd3aa\", \"type of \\\"time_hrs\\\" in marathon.columns is not bool. \\\"time_hrs\\\" in marathon.columns should be a bool\"\n", + "assert sha1(str(\"time_hrs\" in marathon.columns).encode(\"utf-8\")+b\"8a2922763e0b52ca\").hexdigest() == \"30ecd9e8c383a586a25caa9bcf7eb4477c1bfed2\", \"boolean value of \\\"time_hrs\\\" in marathon.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"max\" in marathon.columns)).encode(\"utf-8\")+b\"1d3ab9c382d6b3f5\").hexdigest() == \"ceb551b909605df99e42c8892abc18233b410617\", \"type of \\\"max\\\" in marathon.columns is not bool. \\\"max\\\" in marathon.columns should be a bool\"\n", - "assert sha1(str(\"max\" in marathon.columns).encode(\"utf-8\")+b\"1d3ab9c382d6b3f5\").hexdigest() == \"29a1b1917161561ab86d9d2d724a4ac4e010f35c\", \"boolean value of \\\"max\\\" in marathon.columns is not correct\"\n", + "assert sha1(str(type(\"max\" in marathon.columns)).encode(\"utf-8\")+b\"5add66b461a5ce23\").hexdigest() == \"f273e6e1c6dbbfb6f6aef38f41aed32fcfd2c33d\", \"type of \\\"max\\\" in marathon.columns is not bool. \\\"max\\\" in marathon.columns should be a bool\"\n", + "assert sha1(str(\"max\" in marathon.columns).encode(\"utf-8\")+b\"5add66b461a5ce23\").hexdigest() == \"e77d766d081789c852115bd0caf7027bbc99b387\", \"boolean value of \\\"max\\\" in marathon.columns is not correct\"\n", "\n", "print('Success!')" ] @@ -567,7 +567,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e5d6ffdc477241db2af1da967de17ad2", + "checksum": "2c2cd1604e6cc646dcf5b0d3f8a16275", "grade": true, "grade_id": "cell-78ac50fb41cd9a86", "locked": true, @@ -579,37 +579,37 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2 is None)).encode(\"utf-8\")+b\"866aa9da83af63eb\").hexdigest() == \"d387b628c763d87cf2e410f6e677cf4604689d10\", \"type of answer2 is None is not bool. answer2 is None should be a bool\"\n", - "assert sha1(str(answer2 is None).encode(\"utf-8\")+b\"866aa9da83af63eb\").hexdigest() == \"94e3888cca22b85261ca93e5a3764cb47a0faab7\", \"boolean value of answer2 is None is not correct\"\n", + "assert sha1(str(type(answer2 is None)).encode(\"utf-8\")+b\"f3a5bc6fde71a86a\").hexdigest() == \"eac15e2ee19ab5794c8269e8e062f037e46c6eff\", \"type of answer2 is None is not bool. answer2 is None should be a bool\"\n", + "assert sha1(str(answer2 is None).encode(\"utf-8\")+b\"f3a5bc6fde71a86a\").hexdigest() == \"c413d4fd2637c6f31094e6dd7b5275b577f65e90\", \"boolean value of answer2 is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_50.shape)).encode(\"utf-8\")+b\"3d0882df3272c963\").hexdigest() == \"595480d93407d13ccdea6ee3fe29ffe8eb270f12\", \"type of marathon_50.shape is not tuple. marathon_50.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_50.shape)).encode(\"utf-8\")+b\"3d0882df3272c963\").hexdigest() == \"9260e27311095a7da11be481dd37e62a025445e2\", \"length of marathon_50.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_50.shape))).encode(\"utf-8\")+b\"3d0882df3272c963\").hexdigest() == \"98dcbf13fcb31671921886a62a8d01ed05eaf987\", \"values of marathon_50.shape are not correct\"\n", - "assert sha1(str(marathon_50.shape).encode(\"utf-8\")+b\"3d0882df3272c963\").hexdigest() == \"1de54e6478e1b595f9c6383d4200ba38f6047af8\", \"order of elements of marathon_50.shape is not correct\"\n", + "assert sha1(str(type(marathon_50.shape)).encode(\"utf-8\")+b\"d2d8ccf9ff4f5b21\").hexdigest() == \"edce1d16caa874d5a4bafec6156b6982d31ffd72\", \"type of marathon_50.shape is not tuple. marathon_50.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_50.shape)).encode(\"utf-8\")+b\"d2d8ccf9ff4f5b21\").hexdigest() == \"88b27e0fc87b5336463717b71f9185381cac53a2\", \"length of marathon_50.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_50.shape))).encode(\"utf-8\")+b\"d2d8ccf9ff4f5b21\").hexdigest() == \"8f54c0dfee4241318e6db39e02a85617aebe3640\", \"values of marathon_50.shape are not correct\"\n", + "assert sha1(str(marathon_50.shape).encode(\"utf-8\")+b\"d2d8ccf9ff4f5b21\").hexdigest() == \"9ee21a21e3d7ccce52a95415254407818f283f71\", \"order of elements of marathon_50.shape is not correct\"\n", "\n", - "assert sha1(str(type(answer2.data.equals(marathon_50))).encode(\"utf-8\")+b\"0039ca7b897f361c\").hexdigest() == \"90a6fac84bc945928e83baf5c308a032fb7ebf0f\", \"type of answer2.data.equals(marathon_50) is not bool. answer2.data.equals(marathon_50) should be a bool\"\n", - "assert sha1(str(answer2.data.equals(marathon_50)).encode(\"utf-8\")+b\"0039ca7b897f361c\").hexdigest() == \"48172036d752fb39977cf8d3d9acf1ba27d237ba\", \"boolean value of answer2.data.equals(marathon_50) is not correct\"\n", + "assert sha1(str(type(answer2.data.equals(marathon_50))).encode(\"utf-8\")+b\"9b74e1087a7b7ee5\").hexdigest() == \"2b240a1f9fefa7b71905150985fe92b4dd097a54\", \"type of answer2.data.equals(marathon_50) is not bool. answer2.data.equals(marathon_50) should be a bool\"\n", + "assert sha1(str(answer2.data.equals(marathon_50)).encode(\"utf-8\")+b\"9b74e1087a7b7ee5\").hexdigest() == \"9e3e2febfa900fde5a6f1d2615d77d52a3d26b26\", \"boolean value of answer2.data.equals(marathon_50) is not correct\"\n", "\n", - "assert sha1(str(type(answer2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"657c3320bc004107\").hexdigest() == \"e1c33c3c25c5c743aae79676c88f4baa9c965b46\", \"type of answer2.encoding.x['shorthand'] is not str. answer2.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(answer2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"657c3320bc004107\").hexdigest() == \"61fcdec9bb863d1cf67856d78c54ff3bba4c1868\", \"length of answer2.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(answer2.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"657c3320bc004107\").hexdigest() == \"f21d8c317de6ffbc4cbefe97110f8e776245666f\", \"value of answer2.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(answer2.encoding.x['shorthand']).encode(\"utf-8\")+b\"657c3320bc004107\").hexdigest() == \"f21d8c317de6ffbc4cbefe97110f8e776245666f\", \"correct string value of answer2.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(answer2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f10c62c19bcacbb4\").hexdigest() == \"ef821bda7ba0b3cb447118d1279543e7d0c53f1d\", \"type of answer2.encoding.x['shorthand'] is not str. answer2.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(answer2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f10c62c19bcacbb4\").hexdigest() == \"19a3cb5d63380d78c248e1cbd75ff568d49eaddc\", \"length of answer2.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(answer2.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"f10c62c19bcacbb4\").hexdigest() == \"391588c5165f9f7fbd8631ec44b5bc26bca10711\", \"value of answer2.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(answer2.encoding.x['shorthand']).encode(\"utf-8\")+b\"f10c62c19bcacbb4\").hexdigest() == \"391588c5165f9f7fbd8631ec44b5bc26bca10711\", \"correct string value of answer2.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(answer2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"98940bff5b6ff96a\").hexdigest() == \"c1a41d3cb35333c611d5b5548cc46937fb073b02\", \"type of answer2.encoding.y['shorthand'] is not str. answer2.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(answer2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"98940bff5b6ff96a\").hexdigest() == \"50c760e0ad77b0fb0ecebbcf32232950f66eee08\", \"length of answer2.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(answer2.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"98940bff5b6ff96a\").hexdigest() == \"5dd959e2e97d5af35936e7643d9102a1b58f3e97\", \"value of answer2.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(answer2.encoding.y['shorthand']).encode(\"utf-8\")+b\"98940bff5b6ff96a\").hexdigest() == \"5dd959e2e97d5af35936e7643d9102a1b58f3e97\", \"correct string value of answer2.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(answer2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"1982c8a0a0982153\").hexdigest() == \"c97a6ba0a013f443f8d1fd12ca0b6159d13277f9\", \"type of answer2.encoding.y['shorthand'] is not str. answer2.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(answer2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"1982c8a0a0982153\").hexdigest() == \"708767b33fd8cf0107b58f2425ac85f73ca4276a\", \"length of answer2.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(answer2.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"1982c8a0a0982153\").hexdigest() == \"016ab813313a0264a315b11da45507b9676b0032\", \"value of answer2.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(answer2.encoding.y['shorthand']).encode(\"utf-8\")+b\"1982c8a0a0982153\").hexdigest() == \"016ab813313a0264a315b11da45507b9676b0032\", \"correct string value of answer2.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(answer2.mark)).encode(\"utf-8\")+b\"9e33ce4a7576a292\").hexdigest() == \"8287005147cef23a3743f956fcf1ccf5264c8574\", \"type of answer2.mark is not str. answer2.mark should be an str\"\n", - "assert sha1(str(len(answer2.mark)).encode(\"utf-8\")+b\"9e33ce4a7576a292\").hexdigest() == \"148219deccbbc4e53c0ece766bccb25dda310dfa\", \"length of answer2.mark is not correct\"\n", - "assert sha1(str(answer2.mark.lower()).encode(\"utf-8\")+b\"9e33ce4a7576a292\").hexdigest() == \"cbf996ac142b621b9b03d9328609fbb4545ba885\", \"value of answer2.mark is not correct\"\n", - "assert sha1(str(answer2.mark).encode(\"utf-8\")+b\"9e33ce4a7576a292\").hexdigest() == \"cbf996ac142b621b9b03d9328609fbb4545ba885\", \"correct string value of answer2.mark but incorrect case of letters\"\n", + "assert sha1(str(type(answer2.mark)).encode(\"utf-8\")+b\"18faa48683c998d5\").hexdigest() == \"a0ed4ff836e0f8d803c210833a35777361149274\", \"type of answer2.mark is not str. answer2.mark should be an str\"\n", + "assert sha1(str(len(answer2.mark)).encode(\"utf-8\")+b\"18faa48683c998d5\").hexdigest() == \"5c9ce4237670c85231001049bdf9f2afb4846892\", \"length of answer2.mark is not correct\"\n", + "assert sha1(str(answer2.mark.lower()).encode(\"utf-8\")+b\"18faa48683c998d5\").hexdigest() == \"9a63790eb2670b930fef7b6532f09d3c753d3460\", \"value of answer2.mark is not correct\"\n", + "assert sha1(str(answer2.mark).encode(\"utf-8\")+b\"18faa48683c998d5\").hexdigest() == \"9a63790eb2670b930fef7b6532f09d3c753d3460\", \"correct string value of answer2.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(answer2.encoding.x['title'], str))).encode(\"utf-8\")+b\"22386c59f78906ab\").hexdigest() == \"1de06adf9be410c8f5d1cb52cd3aa0d52c8fb163\", \"type of isinstance(answer2.encoding.x['title'], str) is not bool. isinstance(answer2.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(answer2.encoding.x['title'], str)).encode(\"utf-8\")+b\"22386c59f78906ab\").hexdigest() == \"d5dda34958f84bcd926cfdd3e2dd448ec6598128\", \"boolean value of isinstance(answer2.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(answer2.encoding.x['title'], str))).encode(\"utf-8\")+b\"8cfd259a5280707a\").hexdigest() == \"7b8a30fe8adf816364998d88193d36d54dda8b64\", \"type of isinstance(answer2.encoding.x['title'], str) is not bool. isinstance(answer2.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(answer2.encoding.x['title'], str)).encode(\"utf-8\")+b\"8cfd259a5280707a\").hexdigest() == \"9f0d9d0d9722b9d038df3009a316fd59f9223395\", \"boolean value of isinstance(answer2.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(answer2.encoding.y['title'], str))).encode(\"utf-8\")+b\"570f460d695fb714\").hexdigest() == \"5e1f2c1e6f29ce962a2af7b6b9b8bbc9e1a7046c\", \"type of isinstance(answer2.encoding.y['title'], str) is not bool. isinstance(answer2.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(answer2.encoding.y['title'], str)).encode(\"utf-8\")+b\"570f460d695fb714\").hexdigest() == \"9432f1dd1e8bbb0eadaabb18aa03a635527b87c1\", \"boolean value of isinstance(answer2.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(answer2.encoding.y['title'], str))).encode(\"utf-8\")+b\"951e6bd6b17c211e\").hexdigest() == \"7fcdf0f506472aa9991788be87295e877ffa1bc1\", \"type of isinstance(answer2.encoding.y['title'], str) is not bool. isinstance(answer2.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(answer2.encoding.y['title'], str)).encode(\"utf-8\")+b\"951e6bd6b17c211e\").hexdigest() == \"b2a70e0d9856292f0096c111194d4302e66ee707\", \"boolean value of isinstance(answer2.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -715,7 +715,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8691839517bbe6761161d7661ddbb93f", + "checksum": "158633fb70974524660c86ca85f55a92", "grade": true, "grade_id": "cell-af7afd4794001c7b", "locked": true, @@ -727,8 +727,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3)).encode(\"utf-8\")+b\"defe2b316e0fca52\").hexdigest() == \"4490f21cadd48d0f86f0acda228810eede63c085\", \"type of answer3 is not correct\"\n", - "assert sha1(str(answer3).encode(\"utf-8\")+b\"defe2b316e0fca52\").hexdigest() == \"dda5b24b8d9144aa9ec121227998313a022648f4\", \"value of answer3 is not correct\"\n", + "assert sha1(str(type(answer3)).encode(\"utf-8\")+b\"a1fb374bdafc28a4\").hexdigest() == \"af2f8a9130b82e185f6893204b4b8c6195ea7dc8\", \"type of answer3 is not correct\"\n", + "assert sha1(str(answer3).encode(\"utf-8\")+b\"a1fb374bdafc28a4\").hexdigest() == \"bcdda14ae6d5615a8b5213e3d212a9eb83afcf0b\", \"value of answer3 is not correct\"\n", "\n", "print('Success!')" ] @@ -788,7 +788,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c7657d483e154a6cc0b0c3e6f3a182c7", + "checksum": "f3d3e903f874f8a057a802b974bb1edf", "grade": true, "grade_id": "cell-690e322810064165", "locked": true, @@ -800,8 +800,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4)).encode(\"utf-8\")+b\"a69c3804adae9c70\").hexdigest() == \"f3239daef6d23f8e0c4f589426b8a20bf403e0bd\", \"type of answer4 is not correct\"\n", - "assert sha1(str(answer4).encode(\"utf-8\")+b\"a69c3804adae9c70\").hexdigest() == \"ed0b990774df1fe7494fc646252914cdc4323f6c\", \"value of answer4 is not correct\"\n", + "assert sha1(str(type(answer4)).encode(\"utf-8\")+b\"cea2ef6c8d5a04a4\").hexdigest() == \"24554dcc83ff55a59d8f9f504587479b7c4fd1fc\", \"type of answer4 is not correct\"\n", + "assert sha1(str(answer4).encode(\"utf-8\")+b\"cea2ef6c8d5a04a4\").hexdigest() == \"58ad176e249e423c5aed115d86f9bb944458abd6\", \"value of answer4 is not correct\"\n", "\n", "print('Success!')" ] @@ -868,7 +868,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bb9fd3163ee5039acc3ee9295315dec8", + "checksum": "cbc314d9ad644dcd1161c6c83eca510c", "grade": true, "grade_id": "cell-7cbe965dbdb7228d", "locked": true, @@ -880,10 +880,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer5)).encode(\"utf-8\")+b\"1c9613baf5f39609\").hexdigest() == \"fa1f9a8ed8840fa52e5555485124a460478ae0f8\", \"type of answer5 is not str. answer5 should be an str\"\n", - "assert sha1(str(len(answer5)).encode(\"utf-8\")+b\"1c9613baf5f39609\").hexdigest() == \"9e2d1493458b958f35109a95183ecbe387728580\", \"length of answer5 is not correct\"\n", - "assert sha1(str(answer5.lower()).encode(\"utf-8\")+b\"1c9613baf5f39609\").hexdigest() == \"79576c1ad29cdc32b7d6f24c616dd7d4231b6f33\", \"value of answer5 is not correct\"\n", - "assert sha1(str(answer5).encode(\"utf-8\")+b\"1c9613baf5f39609\").hexdigest() == \"b9f1f3fea37e1916cf141c6b67fc102e71c177c7\", \"correct string value of answer5 but incorrect case of letters\"\n", + "assert sha1(str(type(answer5)).encode(\"utf-8\")+b\"b40ce0dc2e9ae460\").hexdigest() == \"ad766dbb58986dfd35dd537c877e5842fb617292\", \"type of answer5 is not str. answer5 should be an str\"\n", + "assert sha1(str(len(answer5)).encode(\"utf-8\")+b\"b40ce0dc2e9ae460\").hexdigest() == \"9eccd00c77a5eedf50012b722dad1ad43bfc3045\", \"length of answer5 is not correct\"\n", + "assert sha1(str(answer5.lower()).encode(\"utf-8\")+b\"b40ce0dc2e9ae460\").hexdigest() == \"0730e104414f6866efc763d36851e3f796be71a1\", \"value of answer5 is not correct\"\n", + "assert sha1(str(answer5).encode(\"utf-8\")+b\"b40ce0dc2e9ae460\").hexdigest() == \"e0b3fd377c932932a6a3a5114a6f6dbc7ef835dc\", \"correct string value of answer5 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -954,7 +954,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "df2003be0e9b380c2d0c150f130d5a81", + "checksum": "8e77ddaa4d7799a21a4157529690460a", "grade": true, "grade_id": "cell-381c8aeacf15fd35", "locked": true, @@ -966,63 +966,63 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_training is None)).encode(\"utf-8\")+b\"fc1d3d9a2b801869\").hexdigest() == \"3e1431d90218453a53a6157960c5e11eea42b809\", \"type of marathon_training is None is not bool. marathon_training is None should be a bool\"\n", - "assert sha1(str(marathon_training is None).encode(\"utf-8\")+b\"fc1d3d9a2b801869\").hexdigest() == \"6611c0a258d0e02f4b996edc49c43a8a99f6b1a5\", \"boolean value of marathon_training is None is not correct\"\n", + "assert sha1(str(type(marathon_training is None)).encode(\"utf-8\")+b\"af18d0c62f86b811\").hexdigest() == \"5d8ea43ead56737238575fd35f7f71a4a5955867\", \"type of marathon_training is None is not bool. marathon_training is None should be a bool\"\n", + "assert sha1(str(marathon_training is None).encode(\"utf-8\")+b\"af18d0c62f86b811\").hexdigest() == \"129d3a54a0c638ffb00782d5fde4f3f0f907ab48\", \"boolean value of marathon_training is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_training.shape)).encode(\"utf-8\")+b\"36a09489f9e1d49c\").hexdigest() == \"479c4d76600f2f982d4a937099b48366c68e0d7e\", \"type of marathon_training.shape is not tuple. marathon_training.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_training.shape)).encode(\"utf-8\")+b\"36a09489f9e1d49c\").hexdigest() == \"d0684106253384774f3dd95d8f948b480ad41e2c\", \"length of marathon_training.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_training.shape))).encode(\"utf-8\")+b\"36a09489f9e1d49c\").hexdigest() == \"3c4aa6a520f5af10dbc3955717f56c2c585bd70a\", \"values of marathon_training.shape are not correct\"\n", - "assert sha1(str(marathon_training.shape).encode(\"utf-8\")+b\"36a09489f9e1d49c\").hexdigest() == \"283ceb1da988f5b5dac4cac66db95873046ed4da\", \"order of elements of marathon_training.shape is not correct\"\n", + "assert sha1(str(type(marathon_training.shape)).encode(\"utf-8\")+b\"5afe8f5f2eeab4c7\").hexdigest() == \"629612c609ef298a46ff3e481b987e32818a2274\", \"type of marathon_training.shape is not tuple. marathon_training.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_training.shape)).encode(\"utf-8\")+b\"5afe8f5f2eeab4c7\").hexdigest() == \"b60a5650503ddbb6b935be0b0121b27abfe207e4\", \"length of marathon_training.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_training.shape))).encode(\"utf-8\")+b\"5afe8f5f2eeab4c7\").hexdigest() == \"e5608429d8ff0f0fac44e7dadf5f2005ab82417a\", \"values of marathon_training.shape are not correct\"\n", + "assert sha1(str(marathon_training.shape).encode(\"utf-8\")+b\"5afe8f5f2eeab4c7\").hexdigest() == \"62c5c8d619ff2be7326ffa1be45978a224539855\", \"order of elements of marathon_training.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_training.age))).encode(\"utf-8\")+b\"d7154d577117f377\").hexdigest() == \"23ed230bbbf213d7f1febf0344145da1aa8a2463\", \"type of sum(marathon_training.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(marathon_training.age)).encode(\"utf-8\")+b\"d7154d577117f377\").hexdigest() == \"0ebb345959497e38ef511f25f951c2bb7d4cb87f\", \"value of sum(marathon_training.age) is not correct\"\n", + "assert sha1(str(type(sum(marathon_training.age))).encode(\"utf-8\")+b\"61e1f014b6822ac8\").hexdigest() == \"bdb7eda2d309151432a1d93302315f53eb7fb012\", \"type of sum(marathon_training.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(marathon_training.age)).encode(\"utf-8\")+b\"61e1f014b6822ac8\").hexdigest() == \"b978b8fa684e54a6d6a7caeaabcf8228b52c0eef\", \"value of sum(marathon_training.age) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_testing is None)).encode(\"utf-8\")+b\"854ed42a1d37895e\").hexdigest() == \"d49a3989842f1752af2e6151bb7242141e6ad2ea\", \"type of marathon_testing is None is not bool. marathon_testing is None should be a bool\"\n", - "assert sha1(str(marathon_testing is None).encode(\"utf-8\")+b\"854ed42a1d37895e\").hexdigest() == \"ed14f037a0306f0a4bbc9711410a7f09b1b30b75\", \"boolean value of marathon_testing is None is not correct\"\n", + "assert sha1(str(type(marathon_testing is None)).encode(\"utf-8\")+b\"49e68407b4491542\").hexdigest() == \"ce7b7c8ee7bee653b2392d71d20b6daf814e373f\", \"type of marathon_testing is None is not bool. marathon_testing is None should be a bool\"\n", + "assert sha1(str(marathon_testing is None).encode(\"utf-8\")+b\"49e68407b4491542\").hexdigest() == \"858260e24fc46dda4608a5cbd2a5c622f5deb90a\", \"boolean value of marathon_testing is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_testing.shape)).encode(\"utf-8\")+b\"ae9607678ae6f19d\").hexdigest() == \"2df9a398bc8e56b6bee75eace3cb7fe3fca4cc95\", \"type of marathon_testing.shape is not tuple. marathon_testing.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_testing.shape)).encode(\"utf-8\")+b\"ae9607678ae6f19d\").hexdigest() == \"cb7012b0ad93607a09bf7eaffe1c5f3e1965e0cf\", \"length of marathon_testing.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_testing.shape))).encode(\"utf-8\")+b\"ae9607678ae6f19d\").hexdigest() == \"1f1bc9e67f0b366af630b554578feaeaa2ada1d2\", \"values of marathon_testing.shape are not correct\"\n", - "assert sha1(str(marathon_testing.shape).encode(\"utf-8\")+b\"ae9607678ae6f19d\").hexdigest() == \"ba6340b0a81af69fe4e0f4ee4bb1eca0fa5b7f31\", \"order of elements of marathon_testing.shape is not correct\"\n", + "assert sha1(str(type(marathon_testing.shape)).encode(\"utf-8\")+b\"aa3c241a84a8d69d\").hexdigest() == \"5b264355de4b96fbcc795dcbdbb6edb3c210b705\", \"type of marathon_testing.shape is not tuple. marathon_testing.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_testing.shape)).encode(\"utf-8\")+b\"aa3c241a84a8d69d\").hexdigest() == \"89b300c65719a0c2d33e91660a5085edc3ca23ac\", \"length of marathon_testing.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_testing.shape))).encode(\"utf-8\")+b\"aa3c241a84a8d69d\").hexdigest() == \"1e6f6ea6902617cb0403dfa5af3f439625494799\", \"values of marathon_testing.shape are not correct\"\n", + "assert sha1(str(marathon_testing.shape).encode(\"utf-8\")+b\"aa3c241a84a8d69d\").hexdigest() == \"8a8a52fbdee24b5190957b7d4c1fa042b19fdddf\", \"order of elements of marathon_testing.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_testing.age))).encode(\"utf-8\")+b\"57572699fe2f75c4\").hexdigest() == \"576cc7ca85b86be89066f37c182b17e4ee11d043\", \"type of sum(marathon_testing.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(marathon_testing.age)).encode(\"utf-8\")+b\"57572699fe2f75c4\").hexdigest() == \"fb2c4694ac9511354d2fd9a4256f0b5ec62fba9a\", \"value of sum(marathon_testing.age) is not correct\"\n", + "assert sha1(str(type(sum(marathon_testing.age))).encode(\"utf-8\")+b\"2f571476ef5fa802\").hexdigest() == \"d0256bcb6824cefcfd8b57e3227efe5bd3baab0f\", \"type of sum(marathon_testing.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(marathon_testing.age)).encode(\"utf-8\")+b\"2f571476ef5fa802\").hexdigest() == \"34e617b85c82c976013a449b51b0b8d3516aef2a\", \"value of sum(marathon_testing.age) is not correct\"\n", "\n", - "assert sha1(str(type(X_train.columns.values)).encode(\"utf-8\")+b\"e8a2d7d3dbab4997\").hexdigest() == \"c5d7241932d24001ee14da12c0d759e96db5e3b2\", \"type of X_train.columns.values is not correct\"\n", - "assert sha1(str(X_train.columns.values).encode(\"utf-8\")+b\"e8a2d7d3dbab4997\").hexdigest() == \"2f464af222d185d3fa3b996378f7844b59b93362\", \"value of X_train.columns.values is not correct\"\n", + "assert sha1(str(type(X_train.columns.values)).encode(\"utf-8\")+b\"26317290a50c4b2f\").hexdigest() == \"fab433f0d4c36b15c9608e22504cee8a6c81ac23\", \"type of X_train.columns.values is not correct\"\n", + "assert sha1(str(X_train.columns.values).encode(\"utf-8\")+b\"26317290a50c4b2f\").hexdigest() == \"b1f58caa31be3fed471aaf60a5fa6ce3b5593f1d\", \"value of X_train.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(X_train.shape)).encode(\"utf-8\")+b\"0fdfd1a04515a598\").hexdigest() == \"2407d80ab036950624c881a1c3338bcf4374def0\", \"type of X_train.shape is not tuple. X_train.shape should be a tuple\"\n", - "assert sha1(str(len(X_train.shape)).encode(\"utf-8\")+b\"0fdfd1a04515a598\").hexdigest() == \"a7db81bbbf3d7be6a8e97fb80116c243276b5507\", \"length of X_train.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, X_train.shape))).encode(\"utf-8\")+b\"0fdfd1a04515a598\").hexdigest() == \"430ac65beb12ab223b73043b989577b009d8d6a2\", \"values of X_train.shape are not correct\"\n", - "assert sha1(str(X_train.shape).encode(\"utf-8\")+b\"0fdfd1a04515a598\").hexdigest() == \"6ce58ce9e56d3a541ca05dc5ef89179d6f365495\", \"order of elements of X_train.shape is not correct\"\n", + "assert sha1(str(type(X_train.shape)).encode(\"utf-8\")+b\"cea11337f5dd1061\").hexdigest() == \"e5b8e701193d22c7db4e02d370535c53edd74f70\", \"type of X_train.shape is not tuple. X_train.shape should be a tuple\"\n", + "assert sha1(str(len(X_train.shape)).encode(\"utf-8\")+b\"cea11337f5dd1061\").hexdigest() == \"cdc8212b23cf967ee3425f0d9c322c2fc06dde37\", \"length of X_train.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, X_train.shape))).encode(\"utf-8\")+b\"cea11337f5dd1061\").hexdigest() == \"735eeee4e5b97e7bf9f60afe0ff6a92bd135d192\", \"values of X_train.shape are not correct\"\n", + "assert sha1(str(X_train.shape).encode(\"utf-8\")+b\"cea11337f5dd1061\").hexdigest() == \"9a4447158db9063667748fe95f6eec326e4e2407\", \"order of elements of X_train.shape is not correct\"\n", "\n", - "assert sha1(str(type(y_train.name)).encode(\"utf-8\")+b\"de755ae3c626d6d3\").hexdigest() == \"22a8b62dc43bce8eb57280782c66d2ca69bcd5b9\", \"type of y_train.name is not str. y_train.name should be an str\"\n", - "assert sha1(str(len(y_train.name)).encode(\"utf-8\")+b\"de755ae3c626d6d3\").hexdigest() == \"b9bb3026499eadddbb96128df21c9aea31403e4a\", \"length of y_train.name is not correct\"\n", - "assert sha1(str(y_train.name.lower()).encode(\"utf-8\")+b\"de755ae3c626d6d3\").hexdigest() == \"18f54b7327b9cea7f689fe69367fc96062de7f4e\", \"value of y_train.name is not correct\"\n", - "assert sha1(str(y_train.name).encode(\"utf-8\")+b\"de755ae3c626d6d3\").hexdigest() == \"18f54b7327b9cea7f689fe69367fc96062de7f4e\", \"correct string value of y_train.name but incorrect case of letters\"\n", + "assert sha1(str(type(y_train.name)).encode(\"utf-8\")+b\"dab51e7c48c2ca41\").hexdigest() == \"e05e742ebc874826e36cefe0da09611decc5a036\", \"type of y_train.name is not str. y_train.name should be an str\"\n", + "assert sha1(str(len(y_train.name)).encode(\"utf-8\")+b\"dab51e7c48c2ca41\").hexdigest() == \"3097ea3d6601c0a1ffb8f778a65fafe585811d99\", \"length of y_train.name is not correct\"\n", + "assert sha1(str(y_train.name.lower()).encode(\"utf-8\")+b\"dab51e7c48c2ca41\").hexdigest() == \"5c8607a8e00d8a314c3c03f4726b4a5057298051\", \"value of y_train.name is not correct\"\n", + "assert sha1(str(y_train.name).encode(\"utf-8\")+b\"dab51e7c48c2ca41\").hexdigest() == \"5c8607a8e00d8a314c3c03f4726b4a5057298051\", \"correct string value of y_train.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(y_train.shape)).encode(\"utf-8\")+b\"0209335cdacf6325\").hexdigest() == \"297dad2a274c0da885e9eeeee9b8206833be2a72\", \"type of y_train.shape is not tuple. y_train.shape should be a tuple\"\n", - "assert sha1(str(len(y_train.shape)).encode(\"utf-8\")+b\"0209335cdacf6325\").hexdigest() == \"676a59817ec161e26f2cb8c63e75e634e47ff311\", \"length of y_train.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, y_train.shape))).encode(\"utf-8\")+b\"0209335cdacf6325\").hexdigest() == \"2606816f6097d04e8d562099565bc67aaa2c80d8\", \"values of y_train.shape are not correct\"\n", - "assert sha1(str(y_train.shape).encode(\"utf-8\")+b\"0209335cdacf6325\").hexdigest() == \"a89eb4479db7e16577309158a72fc9c261fdabb9\", \"order of elements of y_train.shape is not correct\"\n", + "assert sha1(str(type(y_train.shape)).encode(\"utf-8\")+b\"e54bce6d0b9fbdeb\").hexdigest() == \"ddef55c027c8bf9f82e97dea437eae799e897830\", \"type of y_train.shape is not tuple. y_train.shape should be a tuple\"\n", + "assert sha1(str(len(y_train.shape)).encode(\"utf-8\")+b\"e54bce6d0b9fbdeb\").hexdigest() == \"37cb536b1ba6d7c369630629e98e58a9294db29c\", \"length of y_train.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, y_train.shape))).encode(\"utf-8\")+b\"e54bce6d0b9fbdeb\").hexdigest() == \"47e6dd467615ec579df9de01f02a172e137636ae\", \"values of y_train.shape are not correct\"\n", + "assert sha1(str(y_train.shape).encode(\"utf-8\")+b\"e54bce6d0b9fbdeb\").hexdigest() == \"de86ce3cadbe02ccb22205da4a43f8dfc10e1093\", \"order of elements of y_train.shape is not correct\"\n", "\n", - "assert sha1(str(type(X_test.columns.values)).encode(\"utf-8\")+b\"ea9b7cad598d9c2a\").hexdigest() == \"1c8c849839ecace97c4337210aeb0fbeb5139e36\", \"type of X_test.columns.values is not correct\"\n", - "assert sha1(str(X_test.columns.values).encode(\"utf-8\")+b\"ea9b7cad598d9c2a\").hexdigest() == \"3c6afdb934b7a034c9b6d950e0f612df50d6ed50\", \"value of X_test.columns.values is not correct\"\n", + "assert sha1(str(type(X_test.columns.values)).encode(\"utf-8\")+b\"5f542f50ad06df82\").hexdigest() == \"bb12318ff0702b78c9d64800c4e43f2384f4eda4\", \"type of X_test.columns.values is not correct\"\n", + "assert sha1(str(X_test.columns.values).encode(\"utf-8\")+b\"5f542f50ad06df82\").hexdigest() == \"a49ebfc7d1f689e22c9c577a1ac084291ca168ee\", \"value of X_test.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(X_test.shape)).encode(\"utf-8\")+b\"ff86e0954c0647f5\").hexdigest() == \"4fa965c4558f019254fb8d55467319c5ed912d5e\", \"type of X_test.shape is not tuple. X_test.shape should be a tuple\"\n", - "assert sha1(str(len(X_test.shape)).encode(\"utf-8\")+b\"ff86e0954c0647f5\").hexdigest() == \"7487ed2213d26fd7f21f7d14aab74e8da4e532b6\", \"length of X_test.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, X_test.shape))).encode(\"utf-8\")+b\"ff86e0954c0647f5\").hexdigest() == \"96fde4d448bc9fad5b69c8c021080cb6b43c8a6d\", \"values of X_test.shape are not correct\"\n", - "assert sha1(str(X_test.shape).encode(\"utf-8\")+b\"ff86e0954c0647f5\").hexdigest() == \"4606f79e022dd6d126cbdc574022a4f144ac4f1e\", \"order of elements of X_test.shape is not correct\"\n", + "assert sha1(str(type(X_test.shape)).encode(\"utf-8\")+b\"b6a3c2b67e6bbd79\").hexdigest() == \"b73f213c20480266630318411bc26f16896e9dfa\", \"type of X_test.shape is not tuple. X_test.shape should be a tuple\"\n", + "assert sha1(str(len(X_test.shape)).encode(\"utf-8\")+b\"b6a3c2b67e6bbd79\").hexdigest() == \"fc7d4ad37fef0f784a7e474d60e8ee9a561ce0e2\", \"length of X_test.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, X_test.shape))).encode(\"utf-8\")+b\"b6a3c2b67e6bbd79\").hexdigest() == \"e7254b8fc7b765154afcb7a941113d884642371c\", \"values of X_test.shape are not correct\"\n", + "assert sha1(str(X_test.shape).encode(\"utf-8\")+b\"b6a3c2b67e6bbd79\").hexdigest() == \"b5513c6503c4ec70b681e162ab3833cb77d81859\", \"order of elements of X_test.shape is not correct\"\n", "\n", - "assert sha1(str(type(y_test.name)).encode(\"utf-8\")+b\"55775e4450ffcb88\").hexdigest() == \"6c2ab893c818a220747ebbf4bf36ed986f552241\", \"type of y_test.name is not str. y_test.name should be an str\"\n", - "assert sha1(str(len(y_test.name)).encode(\"utf-8\")+b\"55775e4450ffcb88\").hexdigest() == \"9d4f7f0eaed1b81aa3b3a48a12abbddc4a0ac3fa\", \"length of y_test.name is not correct\"\n", - "assert sha1(str(y_test.name.lower()).encode(\"utf-8\")+b\"55775e4450ffcb88\").hexdigest() == \"34356d87b34fbcf8eca8fd664c28fd3bee92f20b\", \"value of y_test.name is not correct\"\n", - "assert sha1(str(y_test.name).encode(\"utf-8\")+b\"55775e4450ffcb88\").hexdigest() == \"34356d87b34fbcf8eca8fd664c28fd3bee92f20b\", \"correct string value of y_test.name but incorrect case of letters\"\n", + "assert sha1(str(type(y_test.name)).encode(\"utf-8\")+b\"0eef6da483996d40\").hexdigest() == \"ab67aa2780c0f8498487bf8bb82f349c85cef3d4\", \"type of y_test.name is not str. y_test.name should be an str\"\n", + "assert sha1(str(len(y_test.name)).encode(\"utf-8\")+b\"0eef6da483996d40\").hexdigest() == \"f5b29e465042e94a48db8cfbd459d97b460a5022\", \"length of y_test.name is not correct\"\n", + "assert sha1(str(y_test.name.lower()).encode(\"utf-8\")+b\"0eef6da483996d40\").hexdigest() == \"1ee8b6bae71149213dfaea2e5487a40ec4a685e5\", \"value of y_test.name is not correct\"\n", + "assert sha1(str(y_test.name).encode(\"utf-8\")+b\"0eef6da483996d40\").hexdigest() == \"1ee8b6bae71149213dfaea2e5487a40ec4a685e5\", \"correct string value of y_test.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(y_test.shape)).encode(\"utf-8\")+b\"a497c6263281c462\").hexdigest() == \"69189b472c9fa1a9e02f750a0afd7045f20a96e5\", \"type of y_test.shape is not tuple. y_test.shape should be a tuple\"\n", - "assert sha1(str(len(y_test.shape)).encode(\"utf-8\")+b\"a497c6263281c462\").hexdigest() == \"b4f7eebdd68ea52b2f8e973e03fa4b77f715dbca\", \"length of y_test.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, y_test.shape))).encode(\"utf-8\")+b\"a497c6263281c462\").hexdigest() == \"57f7ca24c676ae52c99b391b10a3bd2f18e72429\", \"values of y_test.shape are not correct\"\n", - "assert sha1(str(y_test.shape).encode(\"utf-8\")+b\"a497c6263281c462\").hexdigest() == \"ea04e3d9bf3296434316d972ab4904459bb1e523\", \"order of elements of y_test.shape is not correct\"\n", + "assert sha1(str(type(y_test.shape)).encode(\"utf-8\")+b\"735e01f4827fe1ad\").hexdigest() == \"3472197d616d585e3ab1ec364fefb7981274d394\", \"type of y_test.shape is not tuple. y_test.shape should be a tuple\"\n", + "assert sha1(str(len(y_test.shape)).encode(\"utf-8\")+b\"735e01f4827fe1ad\").hexdigest() == \"284e24d5da77574b2b2eb808dce2d3a850da14ec\", \"length of y_test.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, y_test.shape))).encode(\"utf-8\")+b\"735e01f4827fe1ad\").hexdigest() == \"68f766bbdc8146613c8ab31e98ae8bde2e4d9ec6\", \"values of y_test.shape are not correct\"\n", + "assert sha1(str(y_test.shape).encode(\"utf-8\")+b\"735e01f4827fe1ad\").hexdigest() == \"676fe5f5237185e0f9a3f93b459c92c94a4387bb\", \"order of elements of y_test.shape is not correct\"\n", "\n", "print('Success!')" ] @@ -1101,7 +1101,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4c08220d105940a7c0475ee2b6a0ede6", + "checksum": "a0a46b56ff2efa83f43c3b58d1f5ca2d", "grade": true, "grade_id": "cell-289bc7a299c4f482", "locked": true, @@ -1113,31 +1113,31 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_pipe is None)).encode(\"utf-8\")+b\"aaffbf8709db9b10\").hexdigest() == \"8e5d57ffff96b9220cb6638e12543f1e9af50442\", \"type of marathon_pipe is None is not bool. marathon_pipe is None should be a bool\"\n", - "assert sha1(str(marathon_pipe is None).encode(\"utf-8\")+b\"aaffbf8709db9b10\").hexdigest() == \"f270b58f65030309951f6e8fa385992b61de3909\", \"boolean value of marathon_pipe is None is not correct\"\n", + "assert sha1(str(type(marathon_pipe is None)).encode(\"utf-8\")+b\"c0a1e8920cc4216e\").hexdigest() == \"b213152a68ff01dbcbb48f4575c7c280d5ddcdbb\", \"type of marathon_pipe is None is not bool. marathon_pipe is None should be a bool\"\n", + "assert sha1(str(marathon_pipe is None).encode(\"utf-8\")+b\"c0a1e8920cc4216e\").hexdigest() == \"2904611834080e51ffc4e81ee9e68b7d200eee25\", \"boolean value of marathon_pipe is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_pipe.steps[1][1].n_neighbors)).encode(\"utf-8\")+b\"be4770ff174ba0d5\").hexdigest() == \"7419fc0eb61e5f7d5211c7ca790f7eaa30b7fca4\", \"type of marathon_pipe.steps[1][1].n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(marathon_pipe.steps[1][1].n_neighbors).encode(\"utf-8\")+b\"be4770ff174ba0d5\").hexdigest() == \"b7f2dce4ca133e0c7e884f2453eae5374e9c3071\", \"value of marathon_pipe.steps[1][1].n_neighbors is not correct\"\n", + "assert sha1(str(type(marathon_pipe.steps[1][1].n_neighbors)).encode(\"utf-8\")+b\"ea4a67cadc5558fc\").hexdigest() == \"56d2d60213b17a0a1201ff29f9b076430e7bbabe\", \"type of marathon_pipe.steps[1][1].n_neighbors is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(marathon_pipe.steps[1][1].n_neighbors).encode(\"utf-8\")+b\"ea4a67cadc5558fc\").hexdigest() == \"2fdb2ecc6b1468440e52a836efdf3d88446ec229\", \"value of marathon_pipe.steps[1][1].n_neighbors is not correct\"\n", "\n", - "assert sha1(str(type(marathon_pipe.steps[1][1].weights)).encode(\"utf-8\")+b\"7951a46b8bd81560\").hexdigest() == \"5e42210c0849a1bf0bf87d3feb6eac2c1d015456\", \"type of marathon_pipe.steps[1][1].weights is not str. marathon_pipe.steps[1][1].weights should be an str\"\n", - "assert sha1(str(len(marathon_pipe.steps[1][1].weights)).encode(\"utf-8\")+b\"7951a46b8bd81560\").hexdigest() == \"1c11b18c5f5089198f1711fa648c357eb8e3ddeb\", \"length of marathon_pipe.steps[1][1].weights is not correct\"\n", - "assert sha1(str(marathon_pipe.steps[1][1].weights.lower()).encode(\"utf-8\")+b\"7951a46b8bd81560\").hexdigest() == \"bb3b9acb3d9bfbed7d8828efd4cfaded26a41ced\", \"value of marathon_pipe.steps[1][1].weights is not correct\"\n", - "assert sha1(str(marathon_pipe.steps[1][1].weights).encode(\"utf-8\")+b\"7951a46b8bd81560\").hexdigest() == \"bb3b9acb3d9bfbed7d8828efd4cfaded26a41ced\", \"correct string value of marathon_pipe.steps[1][1].weights but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_pipe.steps[1][1].weights)).encode(\"utf-8\")+b\"11821377b634e9d0\").hexdigest() == \"bb586a5910d13036f32acadbd9a37ed5961460c4\", \"type of marathon_pipe.steps[1][1].weights is not str. marathon_pipe.steps[1][1].weights should be an str\"\n", + "assert sha1(str(len(marathon_pipe.steps[1][1].weights)).encode(\"utf-8\")+b\"11821377b634e9d0\").hexdigest() == \"7822dbddfcb1115fb8bed702b4b75409d20a3813\", \"length of marathon_pipe.steps[1][1].weights is not correct\"\n", + "assert sha1(str(marathon_pipe.steps[1][1].weights.lower()).encode(\"utf-8\")+b\"11821377b634e9d0\").hexdigest() == \"b69b0d3f99d9955615aee9ec18c771b924094d03\", \"value of marathon_pipe.steps[1][1].weights is not correct\"\n", + "assert sha1(str(marathon_pipe.steps[1][1].weights).encode(\"utf-8\")+b\"11821377b634e9d0\").hexdigest() == \"b69b0d3f99d9955615aee9ec18c771b924094d03\", \"correct string value of marathon_pipe.steps[1][1].weights but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_pipe.steps[0][1])).encode(\"utf-8\")+b\"c3f07082a4939953\").hexdigest() == \"c075a37cd66336a5b7afbb788d13076b2a92731d\", \"type of marathon_pipe.steps[0][1] is not correct\"\n", - "assert sha1(str(marathon_pipe.steps[0][1]).encode(\"utf-8\")+b\"c3f07082a4939953\").hexdigest() == \"cfdaa883073873c2b186536daa3367448c5edb20\", \"value of marathon_pipe.steps[0][1] is not correct\"\n", + "assert sha1(str(type(marathon_pipe.steps[0][1])).encode(\"utf-8\")+b\"4070ea8e3283e801\").hexdigest() == \"01c28ef1e91b64a2022bb4fba2092d037d86b46f\", \"type of marathon_pipe.steps[0][1] is not correct\"\n", + "assert sha1(str(marathon_pipe.steps[0][1]).encode(\"utf-8\")+b\"4070ea8e3283e801\").hexdigest() == \"3e0e5e27c5bac0128991971723449e397ada7447\", \"value of marathon_pipe.steps[0][1] is not correct\"\n", "\n", - "assert sha1(str(type(marathon_cv is None)).encode(\"utf-8\")+b\"662825e7fb698a23\").hexdigest() == \"655ff6b539fda269e1bd88ae473a135cdbd50117\", \"type of marathon_cv is None is not bool. marathon_cv is None should be a bool\"\n", - "assert sha1(str(marathon_cv is None).encode(\"utf-8\")+b\"662825e7fb698a23\").hexdigest() == \"4740e7a1e54ed5c7a9f9f83556ff1fbf1c2d2e3f\", \"boolean value of marathon_cv is None is not correct\"\n", + "assert sha1(str(type(marathon_cv is None)).encode(\"utf-8\")+b\"efad54b030c58618\").hexdigest() == \"41bd7d745dcfad23d437fb16c0adfaca8d833231\", \"type of marathon_cv is None is not bool. marathon_cv is None should be a bool\"\n", + "assert sha1(str(marathon_cv is None).encode(\"utf-8\")+b\"efad54b030c58618\").hexdigest() == \"0b3ad7b6e3ab11366c2c7f529895159ca295576c\", \"boolean value of marathon_cv is None is not correct\"\n", "\n", - "assert sha1(str(type(len(marathon_cv['train_score']))).encode(\"utf-8\")+b\"593a02f9e1fd993a\").hexdigest() == \"0f8c7319144b65c8fd5464fc8772d254e2c2eeb5\", \"type of len(marathon_cv['train_score']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(marathon_cv['train_score'])).encode(\"utf-8\")+b\"593a02f9e1fd993a\").hexdigest() == \"b01fd5d20d9d7409c63e6a184278519a57f15762\", \"value of len(marathon_cv['train_score']) is not correct\"\n", + "assert sha1(str(type(len(marathon_cv['train_score']))).encode(\"utf-8\")+b\"9566330d287cd569\").hexdigest() == \"bd78fc2f20adc6419cf08c8e84fba4ad55b4a663\", \"type of len(marathon_cv['train_score']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(marathon_cv['train_score'])).encode(\"utf-8\")+b\"9566330d287cd569\").hexdigest() == \"fcff4997c75f4c6f3ae5cdde55f00a39e661f6a0\", \"value of len(marathon_cv['train_score']) is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_cv['train_score']))).encode(\"utf-8\")+b\"a30a40f91329648f\").hexdigest() == \"635bbdf6b87648a173d28d35d02bd29d6979c13b\", \"type of sum(marathon_cv['train_score']) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_cv['train_score']), 2)).encode(\"utf-8\")+b\"a30a40f91329648f\").hexdigest() == \"e6fe0b1981175c58fc7cb462a4d32a2cbd716099\", \"value of sum(marathon_cv['train_score']) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_cv['train_score']))).encode(\"utf-8\")+b\"d4649bec815f91b4\").hexdigest() == \"39c23d4212cff6a0631b50bc40fcdbca86c4edc6\", \"type of sum(marathon_cv['train_score']) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_cv['train_score']), 2)).encode(\"utf-8\")+b\"d4649bec815f91b4\").hexdigest() == \"60d3105867ac5bbce203791587d14601497e3176\", \"value of sum(marathon_cv['train_score']) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(marathon_cv['test_score']))).encode(\"utf-8\")+b\"01955c47b7d7686e\").hexdigest() == \"8a7ac70b33c09ae5e088aa5ee8daeadc4b9ff2c7\", \"type of sum(marathon_cv['test_score']) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_cv['test_score']), 2)).encode(\"utf-8\")+b\"01955c47b7d7686e\").hexdigest() == \"d956d3fb780393eff8b3ea2b84d127c8190aa271\", \"value of sum(marathon_cv['test_score']) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_cv['test_score']))).encode(\"utf-8\")+b\"51699378e42a05e6\").hexdigest() == \"835fa6142365ab534cca7f6fa693c16d3b4cde12\", \"type of sum(marathon_cv['test_score']) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_cv['test_score']), 2)).encode(\"utf-8\")+b\"51699378e42a05e6\").hexdigest() == \"4a5603c65170510c2965a0e5f6dd7daab4666471\", \"value of sum(marathon_cv['test_score']) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1208,7 +1208,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "72e201254d72fa9a0b16520f88181f38", + "checksum": "2106a2a1921c57bfbfb5cf921b6201c5", "grade": true, "grade_id": "cell-29d608ebfdd11366", "locked": true, @@ -1220,50 +1220,50 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(param_grid is None)).encode(\"utf-8\")+b\"22b02a2505d0df56\").hexdigest() == \"3e5647bd4d71e59e4085b896bb8ec46d8a2327d9\", \"type of param_grid is None is not bool. param_grid is None should be a bool\"\n", - "assert sha1(str(param_grid is None).encode(\"utf-8\")+b\"22b02a2505d0df56\").hexdigest() == \"763d7bae3a5f9879311781f74a6a2d401dacef56\", \"boolean value of param_grid is None is not correct\"\n", + "assert sha1(str(type(param_grid is None)).encode(\"utf-8\")+b\"ac51286e19dfadc1\").hexdigest() == \"c75547708c756e5e4a7c0554c4facbabee671c29\", \"type of param_grid is None is not bool. param_grid is None should be a bool\"\n", + "assert sha1(str(param_grid is None).encode(\"utf-8\")+b\"ac51286e19dfadc1\").hexdigest() == \"cb4afa17e7e937d41b41bcf8a823e1f95b85e305\", \"boolean value of param_grid is None is not correct\"\n", "\n", - "assert sha1(str(type(param_grid)).encode(\"utf-8\")+b\"7cfdaf023168fc24\").hexdigest() == \"83d95ae21d0b6a9473c8af8c92f81cfee69465c5\", \"type of type(param_grid) is not correct\"\n", + "assert sha1(str(type(param_grid)).encode(\"utf-8\")+b\"3685f8732990f683\").hexdigest() == \"c4e0c196a58a0e35b041733185b71c31d6608840\", \"type of type(param_grid) is not correct\"\n", "\n", - "assert sha1(str(type(\"kneighborsregressor__n_neighbors\" in param_grid)).encode(\"utf-8\")+b\"ed06fc767dc0cfb5\").hexdigest() == \"fc2949d9a22b25728be1023e1323a3ff8644c559\", \"type of \\\"kneighborsregressor__n_neighbors\\\" in param_grid is not bool. \\\"kneighborsregressor__n_neighbors\\\" in param_grid should be a bool\"\n", - "assert sha1(str(\"kneighborsregressor__n_neighbors\" in param_grid).encode(\"utf-8\")+b\"ed06fc767dc0cfb5\").hexdigest() == \"8ff8f1bd8ffdf4aa94200b303a83869d670945b1\", \"boolean value of \\\"kneighborsregressor__n_neighbors\\\" in param_grid is not correct\"\n", + "assert sha1(str(type(\"kneighborsregressor__n_neighbors\" in param_grid)).encode(\"utf-8\")+b\"39bdfa935747a1a3\").hexdigest() == \"6f4dd532b3d2e32d8af0401f4d4b877442714ee2\", \"type of \\\"kneighborsregressor__n_neighbors\\\" in param_grid is not bool. \\\"kneighborsregressor__n_neighbors\\\" in param_grid should be a bool\"\n", + "assert sha1(str(\"kneighborsregressor__n_neighbors\" in param_grid).encode(\"utf-8\")+b\"39bdfa935747a1a3\").hexdigest() == \"c5982e38e4d65db3ebc57354f910665967620951\", \"boolean value of \\\"kneighborsregressor__n_neighbors\\\" in param_grid is not correct\"\n", "\n", - "assert sha1(str(type(sum(i for i in param_grid['kneighborsregressor__n_neighbors']))).encode(\"utf-8\")+b\"5edc685923868120\").hexdigest() == \"28d17f9f7846b1608623cf1de66a25bd17f0da55\", \"type of sum(i for i in param_grid['kneighborsregressor__n_neighbors']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(i for i in param_grid['kneighborsregressor__n_neighbors'])).encode(\"utf-8\")+b\"5edc685923868120\").hexdigest() == \"25fc33847b1c1429b1283419fad487833e3a7a65\", \"value of sum(i for i in param_grid['kneighborsregressor__n_neighbors']) is not correct\"\n", + "assert sha1(str(type(sum(i for i in param_grid['kneighborsregressor__n_neighbors']))).encode(\"utf-8\")+b\"32656a1260913b34\").hexdigest() == \"1792a67828219634c7a9952fb25283f681d6561f\", \"type of sum(i for i in param_grid['kneighborsregressor__n_neighbors']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(i for i in param_grid['kneighborsregressor__n_neighbors'])).encode(\"utf-8\")+b\"32656a1260913b34\").hexdigest() == \"c36fcb72cfed53e1a374aee87e875cb269d52c9a\", \"value of sum(i for i in param_grid['kneighborsregressor__n_neighbors']) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_tuned is None)).encode(\"utf-8\")+b\"bdd15ea64c652264\").hexdigest() == \"e0e9ff1276b834bc1fd2503ae9cdc353ff895526\", \"type of marathon_tuned is None is not bool. marathon_tuned is None should be a bool\"\n", - "assert sha1(str(marathon_tuned is None).encode(\"utf-8\")+b\"bdd15ea64c652264\").hexdigest() == \"22375c9b09c6b6ac7d677523584d36811e98d67e\", \"boolean value of marathon_tuned is None is not correct\"\n", + "assert sha1(str(type(marathon_tuned is None)).encode(\"utf-8\")+b\"b15d8509c42b05a1\").hexdigest() == \"22c7c6ba8b6de8a095c372d7dfe548d1a8b07bc2\", \"type of marathon_tuned is None is not bool. marathon_tuned is None should be a bool\"\n", + "assert sha1(str(marathon_tuned is None).encode(\"utf-8\")+b\"b15d8509c42b05a1\").hexdigest() == \"bc597e7561737785b0be92eb7814f85672fb98da\", \"boolean value of marathon_tuned is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_tuned.n_splits_)).encode(\"utf-8\")+b\"fafcd59d2929cc3a\").hexdigest() == \"17dcb469c7d2eafd296dfc2ffc915b21ca8599c7\", \"type of marathon_tuned.n_splits_ is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(marathon_tuned.n_splits_).encode(\"utf-8\")+b\"fafcd59d2929cc3a\").hexdigest() == \"eaa3f89adc6aa6d4453271bb4df8b2ac79b56778\", \"value of marathon_tuned.n_splits_ is not correct\"\n", + "assert sha1(str(type(marathon_tuned.n_splits_)).encode(\"utf-8\")+b\"0a4922ed6a735d4e\").hexdigest() == \"fd051862bc09e7239a11b789859472678da4e1c4\", \"type of marathon_tuned.n_splits_ is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(marathon_tuned.n_splits_).encode(\"utf-8\")+b\"0a4922ed6a735d4e\").hexdigest() == \"966625e5e2db49319e145e56b062587c1d0b5390\", \"value of marathon_tuned.n_splits_ is not correct\"\n", "\n", - "assert sha1(str(type(marathon_tuned.estimator[0])).encode(\"utf-8\")+b\"5cf75cd7d4494aa6\").hexdigest() == \"f60aafe298e94a07b2a5958c790caf702ce569a6\", \"type of marathon_tuned.estimator[0] is not correct\"\n", - "assert sha1(str(marathon_tuned.estimator[0]).encode(\"utf-8\")+b\"5cf75cd7d4494aa6\").hexdigest() == \"4814981885d7b5db9add2ef0e139529884ed86c4\", \"value of marathon_tuned.estimator[0] is not correct\"\n", + "assert sha1(str(type(marathon_tuned.estimator[0])).encode(\"utf-8\")+b\"6f318874183a5c00\").hexdigest() == \"f7cbaefb43c9622b2f0102f6c8c1b7cb29521e3f\", \"type of marathon_tuned.estimator[0] is not correct\"\n", + "assert sha1(str(marathon_tuned.estimator[0]).encode(\"utf-8\")+b\"6f318874183a5c00\").hexdigest() == \"efa0fe91c27b6470ce5bb9c17ece4dae82efdd2e\", \"value of marathon_tuned.estimator[0] is not correct\"\n", "\n", - "assert sha1(str(type(marathon_tuned.estimator[1])).encode(\"utf-8\")+b\"b948249bea3ccab4\").hexdigest() == \"6b48bb64d68137456ab6526630eb6217c1732513\", \"type of marathon_tuned.estimator[1] is not correct\"\n", - "assert sha1(str(marathon_tuned.estimator[1]).encode(\"utf-8\")+b\"b948249bea3ccab4\").hexdigest() == \"375b95d9c61101760e76e887342ffc964c1857a1\", \"value of marathon_tuned.estimator[1] is not correct\"\n", + "assert sha1(str(type(marathon_tuned.estimator[1])).encode(\"utf-8\")+b\"4b37341c63501016\").hexdigest() == \"b83a6a4ffe44e45c1ec964529e55ae28058d98ba\", \"type of marathon_tuned.estimator[1] is not correct\"\n", + "assert sha1(str(marathon_tuned.estimator[1]).encode(\"utf-8\")+b\"4b37341c63501016\").hexdigest() == \"1062f9594fb905e1563e90653942d92720af2e9e\", \"value of marathon_tuned.estimator[1] is not correct\"\n", "\n", - "assert sha1(str(type(marathon_tuned.param_grid == param_grid)).encode(\"utf-8\")+b\"2ae189e18364ba55\").hexdigest() == \"f4dba3dbd3b6a3c1704eef957453c637e1efebdd\", \"type of marathon_tuned.param_grid == param_grid is not bool. marathon_tuned.param_grid == param_grid should be a bool\"\n", - "assert sha1(str(marathon_tuned.param_grid == param_grid).encode(\"utf-8\")+b\"2ae189e18364ba55\").hexdigest() == \"0c186fc48227ddb4b92819ada4f2e2169e9e1360\", \"boolean value of marathon_tuned.param_grid == param_grid is not correct\"\n", + "assert sha1(str(type(marathon_tuned.param_grid == param_grid)).encode(\"utf-8\")+b\"0b3416cc2958b588\").hexdigest() == \"201fb7aa21d9cb4eeab2df5c3b4ff3bd1636685d\", \"type of marathon_tuned.param_grid == param_grid is not bool. marathon_tuned.param_grid == param_grid should be a bool\"\n", + "assert sha1(str(marathon_tuned.param_grid == param_grid).encode(\"utf-8\")+b\"0b3416cc2958b588\").hexdigest() == \"7d9ea5410c6c8698cef7b487a29aa52f25895de7\", \"boolean value of marathon_tuned.param_grid == param_grid is not correct\"\n", "\n", - "assert sha1(str(type(marathon_results is None)).encode(\"utf-8\")+b\"50c6f3d71a32359e\").hexdigest() == \"12be43108e19d32bc26ce6a1650b8f2717b66c3c\", \"type of marathon_results is None is not bool. marathon_results is None should be a bool\"\n", - "assert sha1(str(marathon_results is None).encode(\"utf-8\")+b\"50c6f3d71a32359e\").hexdigest() == \"99ddbd863e9f0c61965c2d5fc2ba277888c17db6\", \"boolean value of marathon_results is None is not correct\"\n", + "assert sha1(str(type(marathon_results is None)).encode(\"utf-8\")+b\"e311b9057da7fb98\").hexdigest() == \"101e537de7dcd3c1dad10f8bd8bd212bf9a5db74\", \"type of marathon_results is None is not bool. marathon_results is None should be a bool\"\n", + "assert sha1(str(marathon_results is None).encode(\"utf-8\")+b\"e311b9057da7fb98\").hexdigest() == \"ede451510952a7435f489ccbc90ce510743a0978\", \"boolean value of marathon_results is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_results)).encode(\"utf-8\")+b\"cb4e490829d75b15\").hexdigest() == \"dd95eb4d10876de44f1de2e9fd6b05ccb8b14355\", \"type of type(marathon_results) is not correct\"\n", + "assert sha1(str(type(marathon_results)).encode(\"utf-8\")+b\"3c42a6367aa82a2d\").hexdigest() == \"02884f9ba3ad6b5c34541471384fb6a4b0569ed8\", \"type of type(marathon_results) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_results.shape)).encode(\"utf-8\")+b\"3522879ac4878b3f\").hexdigest() == \"36d33a6f8516e0a0ef4ef93a70999de4d4616a6a\", \"type of marathon_results.shape is not tuple. marathon_results.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_results.shape)).encode(\"utf-8\")+b\"3522879ac4878b3f\").hexdigest() == \"beb9438d354626be565ab9b5abc2f250f3736a29\", \"length of marathon_results.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_results.shape))).encode(\"utf-8\")+b\"3522879ac4878b3f\").hexdigest() == \"e9ee4881797891df014e3752a74cc31131d11700\", \"values of marathon_results.shape are not correct\"\n", - "assert sha1(str(marathon_results.shape).encode(\"utf-8\")+b\"3522879ac4878b3f\").hexdigest() == \"1e64f9e17d65fd668c7af84ae40a031d36cc4944\", \"order of elements of marathon_results.shape is not correct\"\n", + "assert sha1(str(type(marathon_results.shape)).encode(\"utf-8\")+b\"3fd56339c29fba9a\").hexdigest() == \"831812d6bbc84b23f6a8d3acfc4516f3ffbfeb41\", \"type of marathon_results.shape is not tuple. marathon_results.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_results.shape)).encode(\"utf-8\")+b\"3fd56339c29fba9a\").hexdigest() == \"ecc3093014a7a1e6456f8a7e82a75ce45f292d9e\", \"length of marathon_results.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_results.shape))).encode(\"utf-8\")+b\"3fd56339c29fba9a\").hexdigest() == \"fc8f2b23279bdb3a97d4d0f0a9cfab858087c1eb\", \"values of marathon_results.shape are not correct\"\n", + "assert sha1(str(marathon_results.shape).encode(\"utf-8\")+b\"3fd56339c29fba9a\").hexdigest() == \"4dc4d7562f5619289cbb21bb399c6392711ffe28\", \"order of elements of marathon_results.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_results.param_kneighborsregressor__n_neighbors))).encode(\"utf-8\")+b\"aef1fbeb1da70dfe\").hexdigest() == \"aec7bb370c84fb9dfc879984f4c9832f143caa2f\", \"type of sum(marathon_results.param_kneighborsregressor__n_neighbors) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(marathon_results.param_kneighborsregressor__n_neighbors)).encode(\"utf-8\")+b\"aef1fbeb1da70dfe\").hexdigest() == \"e6e22590b05958c2b1727cf69e171ad6b60ea7e7\", \"value of sum(marathon_results.param_kneighborsregressor__n_neighbors) is not correct\"\n", + "assert sha1(str(type(sum(marathon_results.param_kneighborsregressor__n_neighbors))).encode(\"utf-8\")+b\"6f27844a5b8fd6d4\").hexdigest() == \"7daf1e97bc22b3b676e746182e0305d5695713cf\", \"type of sum(marathon_results.param_kneighborsregressor__n_neighbors) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(marathon_results.param_kneighborsregressor__n_neighbors)).encode(\"utf-8\")+b\"6f27844a5b8fd6d4\").hexdigest() == \"6ed42f09c4594af38d15e130cabf237b00ad1fd6\", \"value of sum(marathon_results.param_kneighborsregressor__n_neighbors) is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_results.mean_test_score))).encode(\"utf-8\")+b\"dcb6f55543a59b3e\").hexdigest() == \"24c342d321114bef651d11a52c555fe339f4be4f\", \"type of sum(marathon_results.mean_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_results.mean_test_score), 2)).encode(\"utf-8\")+b\"dcb6f55543a59b3e\").hexdigest() == \"b729b0f7535c7613377426f64a0ed248bfa40a2f\", \"value of sum(marathon_results.mean_test_score) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_results.mean_test_score))).encode(\"utf-8\")+b\"8a0bca084171c989\").hexdigest() == \"3ea34c800a7fdeec378b60fdb01cac7a77699d93\", \"type of sum(marathon_results.mean_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_results.mean_test_score), 2)).encode(\"utf-8\")+b\"8a0bca084171c989\").hexdigest() == \"4fa1a009e7bd6d3e7d7a1187077bff22b60b1378\", \"value of sum(marathon_results.mean_test_score) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(marathon_results.std_test_score))).encode(\"utf-8\")+b\"af4be61e6c39d546\").hexdigest() == \"9d6b4041bb3fa890c3fd788156ba974bc59b3b5c\", \"type of sum(marathon_results.std_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_results.std_test_score), 2)).encode(\"utf-8\")+b\"af4be61e6c39d546\").hexdigest() == \"686ed5dc66d397a2b9972418d1db9b6a4f6288f1\", \"value of sum(marathon_results.std_test_score) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_results.std_test_score))).encode(\"utf-8\")+b\"da945fe25b2f0cd8\").hexdigest() == \"d56b089353bb904affce8efd8d3987e51cb93e2d\", \"type of sum(marathon_results.std_test_score) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_results.std_test_score), 2)).encode(\"utf-8\")+b\"da945fe25b2f0cd8\").hexdigest() == \"2b41312bdc40a9d69a3a1f4fb4f52b48f88a9451\", \"value of sum(marathon_results.std_test_score) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1349,7 +1349,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "79f8fd411aed87929eb64eedd5a890f9", + "checksum": "30cfc280b4f07044bbe7e16d15087842", "grade": true, "grade_id": "cell-a1e34e1fb62d79f5", "locked": true, @@ -1361,22 +1361,22 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_min is None)).encode(\"utf-8\")+b\"4b82af5286fbf8f0\").hexdigest() == \"6147b0997c260b254b6130f96c9686ed7c83dd64\", \"type of marathon_min is None is not bool. marathon_min is None should be a bool\"\n", - "assert sha1(str(marathon_min is None).encode(\"utf-8\")+b\"4b82af5286fbf8f0\").hexdigest() == \"dff1b9ffb71232136eecd0c264d59f6d47f77023\", \"boolean value of marathon_min is None is not correct\"\n", + "assert sha1(str(type(marathon_min is None)).encode(\"utf-8\")+b\"89b74409ace81fc1\").hexdigest() == \"d68add97b9ee9eb34fda33bb03edad6d45cc25b9\", \"type of marathon_min is None is not bool. marathon_min is None should be a bool\"\n", + "assert sha1(str(marathon_min is None).encode(\"utf-8\")+b\"89b74409ace81fc1\").hexdigest() == \"98eb48c3bf41d6c22a76d79b5c021e778e9844df\", \"boolean value of marathon_min is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_min)).encode(\"utf-8\")+b\"9ed304f900fa24e2\").hexdigest() == \"f0c764fa1613e01776dc07443edaba3c81a6239e\", \"type of type(marathon_min) is not correct\"\n", + "assert sha1(str(type(marathon_min)).encode(\"utf-8\")+b\"c43a67f94d04c65e\").hexdigest() == \"c95a31666411c4f119f22b8df834144224b07395\", \"type of type(marathon_min) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_min)).encode(\"utf-8\")+b\"3ba1e3861c57e2d1\").hexdigest() == \"60969e193f2c9fb52a9b090047093416cd4a3534\", \"type of marathon_min is not dict. marathon_min should be a dict\"\n", - "assert sha1(str(len(list(marathon_min.keys()))).encode(\"utf-8\")+b\"3ba1e3861c57e2d1\").hexdigest() == \"daded4d00f685f2f687e2a313ba96694dba49bf1\", \"number of keys of marathon_min is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_min.keys()))).encode(\"utf-8\")+b\"3ba1e3861c57e2d1\").hexdigest() == \"5ec859c8e6d443aefbc93df4f7da25c8d06ca108\", \"keys of marathon_min are not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_min.values()))).encode(\"utf-8\")+b\"3ba1e3861c57e2d1\").hexdigest() == \"2e412fec690e8b9ba18a1e362a82167ca6d28556\", \"correct keys, but values of marathon_min are not correct\"\n", - "assert sha1(str(marathon_min).encode(\"utf-8\")+b\"3ba1e3861c57e2d1\").hexdigest() == \"5a88aad60d0d1d58c155273ee0e6f3dc367438ec\", \"correct keys and values, but incorrect correspondence in keys and values of marathon_min\"\n", + "assert sha1(str(type(marathon_min)).encode(\"utf-8\")+b\"3d452c863f05d7e2\").hexdigest() == \"27f9671075a526fc12a32c005a809374a589cc05\", \"type of marathon_min is not dict. marathon_min should be a dict\"\n", + "assert sha1(str(len(list(marathon_min.keys()))).encode(\"utf-8\")+b\"3d452c863f05d7e2\").hexdigest() == \"27fb62619f72d6a1fd339fd9954888a19d01c752\", \"number of keys of marathon_min is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_min.keys()))).encode(\"utf-8\")+b\"3d452c863f05d7e2\").hexdigest() == \"e1a675a00ac8fa521eade33871e333af17f11fb0\", \"keys of marathon_min are not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_min.values()))).encode(\"utf-8\")+b\"3d452c863f05d7e2\").hexdigest() == \"1457d3ff2325b1f760e19a6eb0e822d3d027d21d\", \"correct keys, but values of marathon_min are not correct\"\n", + "assert sha1(str(marathon_min).encode(\"utf-8\")+b\"3d452c863f05d7e2\").hexdigest() == \"f2a9e45c1a079d4c49d5720d73b684a30aae8bff\", \"correct keys and values, but incorrect correspondence in keys and values of marathon_min\"\n", "\n", - "assert sha1(str(type(marathon_best_RMSPE is None)).encode(\"utf-8\")+b\"1965ed4a84af25ac\").hexdigest() == \"185ea7e29665c7eef0273486a925874172a50353\", \"type of marathon_best_RMSPE is None is not bool. marathon_best_RMSPE is None should be a bool\"\n", - "assert sha1(str(marathon_best_RMSPE is None).encode(\"utf-8\")+b\"1965ed4a84af25ac\").hexdigest() == \"45ec4d2bf0ccf66b8c4ef84a912e22e1a15938ff\", \"boolean value of marathon_best_RMSPE is None is not correct\"\n", + "assert sha1(str(type(marathon_best_RMSPE is None)).encode(\"utf-8\")+b\"13428f06297d25a4\").hexdigest() == \"4728fad6cbe1f6f326397a9e8b4050096be938cc\", \"type of marathon_best_RMSPE is None is not bool. marathon_best_RMSPE is None should be a bool\"\n", + "assert sha1(str(marathon_best_RMSPE is None).encode(\"utf-8\")+b\"13428f06297d25a4\").hexdigest() == \"1fb8a127b78a8b44e8dc3e552c1afa9649707d3e\", \"boolean value of marathon_best_RMSPE is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_best_RMSPE)).encode(\"utf-8\")+b\"af57ccc33b7fca82\").hexdigest() == \"b027beab8fe22947aac3809bbfe6f56f5c408ecb\", \"type of marathon_best_RMSPE is not correct\"\n", - "assert sha1(str(marathon_best_RMSPE).encode(\"utf-8\")+b\"af57ccc33b7fca82\").hexdigest() == \"e8026acdc7c1ff02f9aa1ac3d9279e723a023911\", \"value of marathon_best_RMSPE is not correct\"\n", + "assert sha1(str(type(marathon_best_RMSPE)).encode(\"utf-8\")+b\"f842434daa959f65\").hexdigest() == \"a5b322bf227e8991e989db9f95a83ae327b507cc\", \"type of marathon_best_RMSPE is not correct\"\n", + "assert sha1(str(marathon_best_RMSPE).encode(\"utf-8\")+b\"f842434daa959f65\").hexdigest() == \"8409095d99ddba9f268ca8ec975dab1b3098a395\", \"value of marathon_best_RMSPE is not correct\"\n", "\n", "print('Success!')" ] @@ -1448,7 +1448,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0f537c8969ceaa133ba3ea9992fabd69", + "checksum": "c2a42113336860a444490474daa038b3", "grade": true, "grade_id": "cell-94fab75dca459b65", "locked": true, @@ -1460,19 +1460,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_prediction is None)).encode(\"utf-8\")+b\"f280743436881ea8\").hexdigest() == \"9787213bcfe527b6cadc71500d3985e9d3e5b00f\", \"type of marathon_prediction is None is not bool. marathon_prediction is None should be a bool\"\n", - "assert sha1(str(marathon_prediction is None).encode(\"utf-8\")+b\"f280743436881ea8\").hexdigest() == \"6ccf7a3de14ae7b97fd55965e9dd92b693014388\", \"boolean value of marathon_prediction is None is not correct\"\n", + "assert sha1(str(type(marathon_prediction is None)).encode(\"utf-8\")+b\"66c5d2362cc12aa8\").hexdigest() == \"69771114ed329624b3c0a61e7a2097e31e5d9443\", \"type of marathon_prediction is None is not bool. marathon_prediction is None should be a bool\"\n", + "assert sha1(str(marathon_prediction is None).encode(\"utf-8\")+b\"66c5d2362cc12aa8\").hexdigest() == \"e64f50d11939c6632c04b3d09e7c8c26b46c8305\", \"boolean value of marathon_prediction is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_prediction)).encode(\"utf-8\")+b\"995ff3380eb6fba2\").hexdigest() == \"5483fc6ead8c251f0f5c2a25753dc6419d80166c\", \"type of type(marathon_prediction) is not correct\"\n", + "assert sha1(str(type(marathon_prediction)).encode(\"utf-8\")+b\"70d61d653715010d\").hexdigest() == \"a22cad4a6723c3ac3f356075210ce28da7bdd9e3\", \"type of type(marathon_prediction) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_prediction.sum())).encode(\"utf-8\")+b\"b5ddb2a80e2db433\").hexdigest() == \"e319f76acd970c37742c1449e2ed3e7688905319\", \"type of marathon_prediction.sum() is not correct\"\n", - "assert sha1(str(marathon_prediction.sum()).encode(\"utf-8\")+b\"b5ddb2a80e2db433\").hexdigest() == \"b6235de031e4c7f96f97b56bdc83ef60bfbda293\", \"value of marathon_prediction.sum() is not correct\"\n", + "assert sha1(str(type(marathon_prediction.sum())).encode(\"utf-8\")+b\"a48c0a042ee411dc\").hexdigest() == \"b7b5e303d5e3e6713cc317d1621d3a1b9fa2192b\", \"type of marathon_prediction.sum() is not correct\"\n", + "assert sha1(str(marathon_prediction.sum()).encode(\"utf-8\")+b\"a48c0a042ee411dc\").hexdigest() == \"baad84c0d593bbd3905236eb410081108f3653d7\", \"value of marathon_prediction.sum() is not correct\"\n", "\n", - "assert sha1(str(type(marathon_summary is None)).encode(\"utf-8\")+b\"cc61fce5b8cf2626\").hexdigest() == \"c9d8dde054c37aaa006a89171f41d3f698a395ae\", \"type of marathon_summary is None is not bool. marathon_summary is None should be a bool\"\n", - "assert sha1(str(marathon_summary is None).encode(\"utf-8\")+b\"cc61fce5b8cf2626\").hexdigest() == \"9def28d45ce107ee3f09e309621e1282722b9533\", \"boolean value of marathon_summary is None is not correct\"\n", + "assert sha1(str(type(marathon_summary is None)).encode(\"utf-8\")+b\"e65da5319128d53d\").hexdigest() == \"471affe75d523d447a8cd8b184b6de4dde317bb7\", \"type of marathon_summary is None is not bool. marathon_summary is None should be a bool\"\n", + "assert sha1(str(marathon_summary is None).encode(\"utf-8\")+b\"e65da5319128d53d\").hexdigest() == \"a2a4a4cbb7d59628c4d9f4fb2b5212cf8b5a75c7\", \"boolean value of marathon_summary is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_summary)).encode(\"utf-8\")+b\"2587ff7bc7b7a1ab\").hexdigest() == \"ffabaf40164265a47478f3dd80e64c94f508777f\", \"type of marathon_summary is not correct\"\n", - "assert sha1(str(marathon_summary).encode(\"utf-8\")+b\"2587ff7bc7b7a1ab\").hexdigest() == \"a2a8525a28c37eaac4c59a9e9b88900299dd529d\", \"value of marathon_summary is not correct\"\n", + "assert sha1(str(type(marathon_summary)).encode(\"utf-8\")+b\"1d53380f977eb377\").hexdigest() == \"d82544a55069068f75a49d3e717d7713b00b7158\", \"type of marathon_summary is not correct\"\n", + "assert sha1(str(marathon_summary).encode(\"utf-8\")+b\"1d53380f977eb377\").hexdigest() == \"a72662cfe3d6c64eb7babdc26f98733d460ac513\", \"value of marathon_summary is not correct\"\n", "\n", "print('Success!')" ] @@ -1554,7 +1554,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "40e4fb6caaf9c1cef9c6cfd64ef1fe46", + "checksum": "a544eeae18b92e27ab4ee7de95c793bf", "grade": true, "grade_id": "cell-f39ed1223c189ec6", "locked": true, @@ -1567,8 +1567,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer8_3)).encode(\"utf-8\")+b\"b79932a953e6d239\").hexdigest() == \"9d1db5ebda1d1ac1279124d09609da9c0a6f85ea\", \"type of answer8_3 is not bool. answer8_3 should be a bool\"\n", - "assert sha1(str(answer8_3).encode(\"utf-8\")+b\"b79932a953e6d239\").hexdigest() == \"367f4d64e830e1026cc239303f8f5c5122c64845\", \"boolean value of answer8_3 is not correct\"\n", + "assert sha1(str(type(answer8_3)).encode(\"utf-8\")+b\"619d7675bb1cda0a\").hexdigest() == \"a9ccb5d8c47a5fb3f9ba27ab226d82e6b7fd263a\", \"type of answer8_3 is not bool. answer8_3 should be a bool\"\n", + "assert sha1(str(answer8_3).encode(\"utf-8\")+b\"619d7675bb1cda0a\").hexdigest() == \"af0fb4c3014dc077ee4ab63e0d3b8039bd9bfd2a\", \"boolean value of answer8_3 is not correct\"\n", "\n", "print('Success!')" ] @@ -1638,7 +1638,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e5c53ff604394ca7d9124ce6df52d120", + "checksum": "9f0ddf3900639f940123875be5a35cfa", "grade": true, "grade_id": "cell-5eff9c974a058bdf", "locked": true, @@ -1650,57 +1650,57 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_preds is None)).encode(\"utf-8\")+b\"ec50b4dd3a59f412\").hexdigest() == \"afb5e9102fb5de4099bd6455446128ffbd3031b7\", \"type of marathon_preds is None is not bool. marathon_preds is None should be a bool\"\n", - "assert sha1(str(marathon_preds is None).encode(\"utf-8\")+b\"ec50b4dd3a59f412\").hexdigest() == \"51fa033a27a34d8ff181b0b3d57b5500513d6c9a\", \"boolean value of marathon_preds is None is not correct\"\n", + "assert sha1(str(type(marathon_preds is None)).encode(\"utf-8\")+b\"05085d961712d31b\").hexdigest() == \"bd39760a1f92929743ecb251e02b11ba2c53fabb\", \"type of marathon_preds is None is not bool. marathon_preds is None should be a bool\"\n", + "assert sha1(str(marathon_preds is None).encode(\"utf-8\")+b\"05085d961712d31b\").hexdigest() == \"7d7ac96fa84e242233b9b1e6ca6fee7ecb41f88c\", \"boolean value of marathon_preds is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_preds)).encode(\"utf-8\")+b\"89a2e89995a05a86\").hexdigest() == \"482828bd2c5d9c399fac6c1d29908f619b8de437\", \"type of type(marathon_preds) is not correct\"\n", + "assert sha1(str(type(marathon_preds)).encode(\"utf-8\")+b\"ce4f604ca1c1c3a9\").hexdigest() == \"88cf744a262d6844942cb13f98386828326e99a0\", \"type of type(marathon_preds) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_preds.shape)).encode(\"utf-8\")+b\"61d3eb3be0a95ac2\").hexdigest() == \"7816d81eb9d098df66b13436cd614207db175ce8\", \"type of marathon_preds.shape is not tuple. marathon_preds.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_preds.shape)).encode(\"utf-8\")+b\"61d3eb3be0a95ac2\").hexdigest() == \"5a8358b0e77b503d13ee896f0ba922f15cb6c78d\", \"length of marathon_preds.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_preds.shape))).encode(\"utf-8\")+b\"61d3eb3be0a95ac2\").hexdigest() == \"2e9e15b280340be1c945492365638cbb0a23b480\", \"values of marathon_preds.shape are not correct\"\n", - "assert sha1(str(marathon_preds.shape).encode(\"utf-8\")+b\"61d3eb3be0a95ac2\").hexdigest() == \"42e402022724b354493fc50cd8d4cf84405cce92\", \"order of elements of marathon_preds.shape is not correct\"\n", + "assert sha1(str(type(marathon_preds.shape)).encode(\"utf-8\")+b\"4fef9ebba6858504\").hexdigest() == \"3c08c1c00d24a06f196bbd26ec81dda5f37fda10\", \"type of marathon_preds.shape is not tuple. marathon_preds.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_preds.shape)).encode(\"utf-8\")+b\"4fef9ebba6858504\").hexdigest() == \"20dbd56051d97d20c8d997d6ccca3ac5418f4532\", \"length of marathon_preds.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_preds.shape))).encode(\"utf-8\")+b\"4fef9ebba6858504\").hexdigest() == \"0f05dec25dd46b0107bf3bb2476b920487a7c5d2\", \"values of marathon_preds.shape are not correct\"\n", + "assert sha1(str(marathon_preds.shape).encode(\"utf-8\")+b\"4fef9ebba6858504\").hexdigest() == \"79743436ef1e01f5cb76293c4cfb01b2d4de902f\", \"order of elements of marathon_preds.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"predictions\" in marathon_preds.columns)).encode(\"utf-8\")+b\"0d44d71f2f3eb093\").hexdigest() == \"7b1eb6ed9d664847ec941dcb5213baea763cb6f8\", \"type of \\\"predictions\\\" in marathon_preds.columns is not bool. \\\"predictions\\\" in marathon_preds.columns should be a bool\"\n", - "assert sha1(str(\"predictions\" in marathon_preds.columns).encode(\"utf-8\")+b\"0d44d71f2f3eb093\").hexdigest() == \"cde956120fe09846c63668316d42d6c165b4ad59\", \"boolean value of \\\"predictions\\\" in marathon_preds.columns is not correct\"\n", + "assert sha1(str(type(\"predictions\" in marathon_preds.columns)).encode(\"utf-8\")+b\"f1a2d3a788b55fef\").hexdigest() == \"0c4a2d3c7dd5537bfce228364dc0f9d51c873d54\", \"type of \\\"predictions\\\" in marathon_preds.columns is not bool. \\\"predictions\\\" in marathon_preds.columns should be a bool\"\n", + "assert sha1(str(\"predictions\" in marathon_preds.columns).encode(\"utf-8\")+b\"f1a2d3a788b55fef\").hexdigest() == \"78accb0f50744a4c06a13c104524bde5fe021967\", \"boolean value of \\\"predictions\\\" in marathon_preds.columns is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_preds.predictions))).encode(\"utf-8\")+b\"2f2192a607691aef\").hexdigest() == \"3c30ed1373142c3319e57e19f2d0fef4ba4a193a\", \"type of sum(marathon_preds.predictions) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_preds.predictions), 2)).encode(\"utf-8\")+b\"2f2192a607691aef\").hexdigest() == \"df3e2d4fbdabee04201896c7c6e7b882331b2e6d\", \"value of sum(marathon_preds.predictions) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_preds.predictions))).encode(\"utf-8\")+b\"2e8721b7959b5a68\").hexdigest() == \"4b4636a694779233317dc27fea45d778c054c819\", \"type of sum(marathon_preds.predictions) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_preds.predictions), 2)).encode(\"utf-8\")+b\"2e8721b7959b5a68\").hexdigest() == \"91639de6a16f4870f45ca229eb8555ead27ddb27\", \"value of sum(marathon_preds.predictions) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(marathon_preds.time_hrs))).encode(\"utf-8\")+b\"8c76bdacff38bcec\").hexdigest() == \"6ee9c8407e7bc5e185681d1928f6830aa6761ad2\", \"type of sum(marathon_preds.time_hrs) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_preds.time_hrs), 2)).encode(\"utf-8\")+b\"8c76bdacff38bcec\").hexdigest() == \"b7d5588a59e90030913c1e1e2a644e79e10ca071\", \"value of sum(marathon_preds.time_hrs) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_preds.time_hrs))).encode(\"utf-8\")+b\"2656f4a74b893014\").hexdigest() == \"765b036888255343788fed59aae59efaaf9c80fb\", \"type of sum(marathon_preds.time_hrs) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_preds.time_hrs), 2)).encode(\"utf-8\")+b\"2656f4a74b893014\").hexdigest() == \"e27609be0a42ec27a1f43f27616626d6d078b3f5\", \"value of sum(marathon_preds.time_hrs) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(marathon_plot is None)).encode(\"utf-8\")+b\"cfc3e7613f96e21c\").hexdigest() == \"73396f2bcc647e7199096d83508b9d7d59645ccb\", \"type of marathon_plot is None is not bool. marathon_plot is None should be a bool\"\n", - "assert sha1(str(marathon_plot is None).encode(\"utf-8\")+b\"cfc3e7613f96e21c\").hexdigest() == \"68e4bba3cd8bdef38c09b4473c128b43c95ced50\", \"boolean value of marathon_plot is None is not correct\"\n", + "assert sha1(str(type(marathon_plot is None)).encode(\"utf-8\")+b\"c44cf005cf1ed940\").hexdigest() == \"f3b26f1ab3c362168ae1be2c62bb924b024d864c\", \"type of marathon_plot is None is not bool. marathon_plot is None should be a bool\"\n", + "assert sha1(str(marathon_plot is None).encode(\"utf-8\")+b\"c44cf005cf1ed940\").hexdigest() == \"0b21f2e018c67dd98debebc711e58c68775a29f9\", \"boolean value of marathon_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(len(marathon_plot.layer))).encode(\"utf-8\")+b\"eebfafa6f6ec6beb\").hexdigest() == \"507e71f89b9f8aa4938c0aff0f1667056b9f7e4e\", \"type of len(marathon_plot.layer) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(marathon_plot.layer)).encode(\"utf-8\")+b\"eebfafa6f6ec6beb\").hexdigest() == \"b8d613da2a452071cb9b38459c6cbb6055237217\", \"value of len(marathon_plot.layer) is not correct\"\n", + "assert sha1(str(type(len(marathon_plot.layer))).encode(\"utf-8\")+b\"ff6f7119123bdfb0\").hexdigest() == \"768519d551d4d277a2010f09ae3426fade0629d2\", \"type of len(marathon_plot.layer) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(marathon_plot.layer)).encode(\"utf-8\")+b\"ff6f7119123bdfb0\").hexdigest() == \"4f777334178a1c82994cad1a2a80568591a95649\", \"value of len(marathon_plot.layer) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].mark)).encode(\"utf-8\")+b\"52795c8b3a084017\").hexdigest() == \"1ad2fc34698098d1e644e6287a124aef972cfcf8\", \"type of marathon_plot.layer[0].mark is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].mark).encode(\"utf-8\")+b\"52795c8b3a084017\").hexdigest() == \"8dbb95be6a4347b9cf0c9d9ff9a9dd4bb349ce00\", \"value of marathon_plot.layer[0].mark is not correct\"\n", + "assert sha1(str(type(marathon_plot.layer[0].mark)).encode(\"utf-8\")+b\"b2a55c960bee3cc6\").hexdigest() == \"4fa9863dba3a580b19bc3e7bcc5b272d7380451e\", \"type of marathon_plot.layer[0].mark is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].mark).encode(\"utf-8\")+b\"b2a55c960bee3cc6\").hexdigest() == \"7ac5cbf2237e00fff9624838472f2dc24bf35824\", \"value of marathon_plot.layer[0].mark is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[1].mark)).encode(\"utf-8\")+b\"ac88fd9846b01044\").hexdigest() == \"83958030c43b58d1d2b81ed809c397fbb114b7d9\", \"type of marathon_plot.layer[1].mark is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].mark).encode(\"utf-8\")+b\"ac88fd9846b01044\").hexdigest() == \"5c7fa257e30a3c4988a5d0f256e238d1eb906ae7\", \"value of marathon_plot.layer[1].mark is not correct\"\n", + "assert sha1(str(type(marathon_plot.layer[1].mark)).encode(\"utf-8\")+b\"41200213682f5854\").hexdigest() == \"19ae0ffecb9aa350898fd144ec8dc5a4e7a0971d\", \"type of marathon_plot.layer[1].mark is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].mark).encode(\"utf-8\")+b\"41200213682f5854\").hexdigest() == \"51e32ae148e4684abe3aed6ee32d8b90a3796ebe\", \"value of marathon_plot.layer[1].mark is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"70d762d88e18f6a2\").hexdigest() == \"63607add2b955b6ca3af2af89e9c296b083802f8\", \"type of marathon_plot.layer[0].encoding.x['shorthand'] is not str. marathon_plot.layer[0].encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"70d762d88e18f6a2\").hexdigest() == \"c4cd379f549694f699acd695980db19e19e7a14c\", \"length of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"70d762d88e18f6a2\").hexdigest() == \"151df7b98d28f95bd52ffc45583389486a83676c\", \"value of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand']).encode(\"utf-8\")+b\"70d762d88e18f6a2\").hexdigest() == \"151df7b98d28f95bd52ffc45583389486a83676c\", \"correct string value of marathon_plot.layer[0].encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"965b9e5c5b2fbb27\").hexdigest() == \"a29fd88b18432decf31abdde2d22b7b53804622f\", \"type of marathon_plot.layer[0].encoding.x['shorthand'] is not str. marathon_plot.layer[0].encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"965b9e5c5b2fbb27\").hexdigest() == \"b3b8f5673574bab4c844264cb1d13b94a9b19723\", \"length of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"965b9e5c5b2fbb27\").hexdigest() == \"711e0896df5faff39bf1c2c93039cffd5cc52e50\", \"value of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand']).encode(\"utf-8\")+b\"965b9e5c5b2fbb27\").hexdigest() == \"711e0896df5faff39bf1c2c93039cffd5cc52e50\", \"correct string value of marathon_plot.layer[0].encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"5d0b1891dd292b6e\").hexdigest() == \"5c25b5cba14cbc5fa8c3ccd373db04cbbd886f3a\", \"type of marathon_plot.layer[0].encoding.y['shorthand'] is not str. marathon_plot.layer[0].encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"5d0b1891dd292b6e\").hexdigest() == \"ee111c198a692b2a3fa36003cfa2bc49be0e5b95\", \"length of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"5d0b1891dd292b6e\").hexdigest() == \"22d37157702cf20d07a571421c4c4582503c2ced\", \"value of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand']).encode(\"utf-8\")+b\"5d0b1891dd292b6e\").hexdigest() == \"22d37157702cf20d07a571421c4c4582503c2ced\", \"correct string value of marathon_plot.layer[0].encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"f2063af07de18610\").hexdigest() == \"7556444824b84fdd8b3e623eba3f222b3324fc35\", \"type of marathon_plot.layer[0].encoding.y['shorthand'] is not str. marathon_plot.layer[0].encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"f2063af07de18610\").hexdigest() == \"df261a255260d92bb0042084036d48ab68b5ef5d\", \"length of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"f2063af07de18610\").hexdigest() == \"2b1a0c036763e1382a95a248e33691bae45d7d41\", \"value of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand']).encode(\"utf-8\")+b\"f2063af07de18610\").hexdigest() == \"2b1a0c036763e1382a95a248e33691bae45d7d41\", \"correct string value of marathon_plot.layer[0].encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"12ac89a8ac9bf1f3\").hexdigest() == \"55c829fa5c99c6c2f0c0f2f67d56095d300f160c\", \"type of marathon_plot.layer[1].encoding.y['shorthand'] is not str. marathon_plot.layer[1].encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"12ac89a8ac9bf1f3\").hexdigest() == \"b0d4c412976840b86a38d0c5979e615c5836d2f2\", \"length of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"12ac89a8ac9bf1f3\").hexdigest() == \"02b09d24a850703afc1b31552d29f8791c30e5eb\", \"value of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand']).encode(\"utf-8\")+b\"12ac89a8ac9bf1f3\").hexdigest() == \"02b09d24a850703afc1b31552d29f8791c30e5eb\", \"correct string value of marathon_plot.layer[1].encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"506b85e4f2c80277\").hexdigest() == \"e21cb67daf0484d808bcd96e484219b9c52609a0\", \"type of marathon_plot.layer[1].encoding.y['shorthand'] is not str. marathon_plot.layer[1].encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"506b85e4f2c80277\").hexdigest() == \"bd6ec2fb1acd67dd460b722f3a6df2901541b626\", \"length of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"506b85e4f2c80277\").hexdigest() == \"b5b8ecf9e544c48cb07521d1ee741ecd79d889cb\", \"value of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand']).encode(\"utf-8\")+b\"506b85e4f2c80277\").hexdigest() == \"b5b8ecf9e544c48cb07521d1ee741ecd79d889cb\", \"correct string value of marathon_plot.layer[1].encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.x['title'], str))).encode(\"utf-8\")+b\"0b5202bc56b3a4db\").hexdigest() == \"8c4893b4c0fe17313606ad245ef1b842a10d5282\", \"type of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.x['title'], str)).encode(\"utf-8\")+b\"0b5202bc56b3a4db\").hexdigest() == \"be9cf0eac5ce8bf7eb2b930c06cc6ba42efb3c28\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.x['title'], str))).encode(\"utf-8\")+b\"208ec2f0eed679de\").hexdigest() == \"c7bdf3ffce9586ba72f2064f0a719dc0ff8cfdd0\", \"type of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.x['title'], str)).encode(\"utf-8\")+b\"208ec2f0eed679de\").hexdigest() == \"fe0463a763e68da26c6525aacc9aa23f72ced326\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.y['title'], str))).encode(\"utf-8\")+b\"f09628446353f7c4\").hexdigest() == \"faa5dd1fc7d48d97974b382b9487140ec6461129\", \"type of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.y['title'], str)).encode(\"utf-8\")+b\"f09628446353f7c4\").hexdigest() == \"b264945d82724841a46444f88fc495314260e523\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.y['title'], str))).encode(\"utf-8\")+b\"f9f86f1c52781a38\").hexdigest() == \"f355c84390c17d7b84cb39b7628de501a06dae8c\", \"type of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.y['title'], str)).encode(\"utf-8\")+b\"f9f86f1c52781a38\").hexdigest() == \"858f7f03240585cf8fc3670f84a14be67d611491\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_regression2/py_worksheet_regression2.ipynb b/py_worksheet_regression2/py_worksheet_regression2.ipynb index af2bed6..93ff100 100644 --- a/py_worksheet_regression2/py_worksheet_regression2.ipynb +++ b/py_worksheet_regression2/py_worksheet_regression2.ipynb @@ -144,7 +144,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5dc35585a1d2e67162f32967b52efb06", + "checksum": "9e79db9c51c087b674a8c92b90bde710", "grade": true, "grade_id": "cell-69d13db813c674a2", "locked": true, @@ -157,10 +157,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_0)).encode(\"utf-8\")+b\"8af9d4bd7e06c414\").hexdigest() == \"0fef4cd1dbfa28f0ca0c2079ed3728291ff798be\", \"type of answer1_0 is not str. answer1_0 should be an str\"\n", - "assert sha1(str(len(answer1_0)).encode(\"utf-8\")+b\"8af9d4bd7e06c414\").hexdigest() == \"5e35bbc73cd0efa489b7004fcc9aa8cce7dee32d\", \"length of answer1_0 is not correct\"\n", - "assert sha1(str(answer1_0.lower()).encode(\"utf-8\")+b\"8af9d4bd7e06c414\").hexdigest() == \"77a1c6cf63b9967d187edd1cdf3bc153e22f3b77\", \"value of answer1_0 is not correct\"\n", - "assert sha1(str(answer1_0).encode(\"utf-8\")+b\"8af9d4bd7e06c414\").hexdigest() == \"4b94e65508de8f4f32c58055950ffddfb8f86e0c\", \"correct string value of answer1_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_0)).encode(\"utf-8\")+b\"890878964ff94ca4\").hexdigest() == \"04b4dcd601bac914024aee542227bb5961b2e6ae\", \"type of answer1_0 is not str. answer1_0 should be an str\"\n", + "assert sha1(str(len(answer1_0)).encode(\"utf-8\")+b\"890878964ff94ca4\").hexdigest() == \"56d8f2b2b25c3d1fff1c4994c48900aacad00f5d\", \"length of answer1_0 is not correct\"\n", + "assert sha1(str(answer1_0.lower()).encode(\"utf-8\")+b\"890878964ff94ca4\").hexdigest() == \"d3ba313e2881695779bf9f875b50066c897f1108\", \"value of answer1_0 is not correct\"\n", + "assert sha1(str(answer1_0).encode(\"utf-8\")+b\"890878964ff94ca4\").hexdigest() == \"c1c27c8b83007bca3385e69529d83b66e738f642\", \"correct string value of answer1_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -232,7 +232,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2961dca41d4ac2bc3508bae300012dd9", + "checksum": "20dfdd290f7db0306c90b4c43f8a2ec2", "grade": true, "grade_id": "cell-f7542e36e61cd131", "locked": true, @@ -245,10 +245,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"dba2d58fe34ccae9\").hexdigest() == \"9cdeb689d9170adf0f0ab95529a61f4913747c1b\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", - "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"dba2d58fe34ccae9\").hexdigest() == \"e7f18387dd25221566349bfacda45014241a6e36\", \"length of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"dba2d58fe34ccae9\").hexdigest() == \"232c7d5fc4518062d97747e0fe724a180fbd9303\", \"value of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"dba2d58fe34ccae9\").hexdigest() == \"53d3d2d76cde3a7241f79c109a98d931ae559a3d\", \"correct string value of answer1_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"07a3c77247a04195\").hexdigest() == \"6cb7e96d54488463441b36c8ec1ab915897169b4\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", + "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"07a3c77247a04195\").hexdigest() == \"c2b2fff9a9f72667176c4a22cae9534d39b127cf\", \"length of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"07a3c77247a04195\").hexdigest() == \"0e8985730208c961f126aa6cd08824b82b9d1c3d\", \"value of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"07a3c77247a04195\").hexdigest() == \"ce2c3daa594d43ee4ee3f8489895389a704c1822\", \"correct string value of answer1_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -320,7 +320,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "81f7b33f43d919e49ae31c7f9e5c32f1", + "checksum": "e30b5bfbe84198039347aa52e8cfe86b", "grade": true, "grade_id": "cell-547b82e7a64b9aa1", "locked": true, @@ -333,10 +333,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"3aa02f0581d8ef01\").hexdigest() == \"2f6400dd97edf907a264401e3a30c374c27834bd\", \"type of answer1_2 is not str. answer1_2 should be an str\"\n", - "assert sha1(str(len(answer1_2)).encode(\"utf-8\")+b\"3aa02f0581d8ef01\").hexdigest() == \"5b5da52164dc8ddec1971bce6ec6b7ba16d0e063\", \"length of answer1_2 is not correct\"\n", - "assert sha1(str(answer1_2.lower()).encode(\"utf-8\")+b\"3aa02f0581d8ef01\").hexdigest() == \"c47ab31ba65fa0834bb0b998692e6e148877a68c\", \"value of answer1_2 is not correct\"\n", - "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"3aa02f0581d8ef01\").hexdigest() == \"cae838375f45a5a5a1da51aa04593cc5f8e74a92\", \"correct string value of answer1_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"b004f451379057b6\").hexdigest() == \"d3d1c4bbdbc20cfde5db743727980b18e99fdefb\", \"type of answer1_2 is not str. answer1_2 should be an str\"\n", + "assert sha1(str(len(answer1_2)).encode(\"utf-8\")+b\"b004f451379057b6\").hexdigest() == \"cb2f9c3344fd8433a82fe0f613adcdbaf9424025\", \"length of answer1_2 is not correct\"\n", + "assert sha1(str(answer1_2.lower()).encode(\"utf-8\")+b\"b004f451379057b6\").hexdigest() == \"626bd23a78d772d9e3ce2df620ae485125a72bac\", \"value of answer1_2 is not correct\"\n", + "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"b004f451379057b6\").hexdigest() == \"351e783d88c000240c41764c8ba744497d0087c0\", \"correct string value of answer1_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -533,7 +533,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4223f850e861ca72dd145bf9ec80e113", + "checksum": "104e89b6f95d48c49ca45d5d73cc9e82", "grade": true, "grade_id": "cell-9d0a3c3a16e0f47b", "locked": true, @@ -545,8 +545,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_0)).encode(\"utf-8\")+b\"5ff16e82a48db0fb\").hexdigest() == \"850d1f140b30fb46b4b2df323bdecf4bb3f9ff72\", \"type of answer2_0 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(answer2_0, 2)).encode(\"utf-8\")+b\"5ff16e82a48db0fb\").hexdigest() == \"02dcfb2211559be25ae03532f8c584a9c3da176c\", \"value of answer2_0 is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(answer2_0)).encode(\"utf-8\")+b\"6c7a08a8d640e413\").hexdigest() == \"c0a06509e31952573f6919e9afbe0456f6b5f69e\", \"type of answer2_0 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(answer2_0, 2)).encode(\"utf-8\")+b\"6c7a08a8d640e413\").hexdigest() == \"c645d3533aa9559c10770ae96b066615b7bc3313\", \"value of answer2_0 is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -631,7 +631,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "dc7c6b2e9c6f23356ba90431316faf2b", + "checksum": "a99c79f3132832f2258167989455ba30", "grade": true, "grade_id": "cell-840f1140c7655088", "locked": true, @@ -643,8 +643,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"9a30d9d8993b7992\").hexdigest() == \"84f931fd799bdf6afa7befe8d7770422f384d0f2\", \"type of answer2_1 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(answer2_1, 2)).encode(\"utf-8\")+b\"9a30d9d8993b7992\").hexdigest() == \"1e7bf446efe94bc76f97a508b404296c236e7e04\", \"value of answer2_1 is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"175af5e766816de1\").hexdigest() == \"9784e0c29fc384f12488ae964ec19527df11fafd\", \"type of answer2_1 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(answer2_1, 2)).encode(\"utf-8\")+b\"175af5e766816de1\").hexdigest() == \"a1cef548b2b99ee93170c21af643ad78699a8f49\", \"value of answer2_1 is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -729,7 +729,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ea2ab88bd78ed797a59412a6fe2827e9", + "checksum": "772bcbe9c6ccbc3f09d3c19b4c24078f", "grade": true, "grade_id": "cell-3e544bd712b4d796", "locked": true, @@ -741,8 +741,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_2)).encode(\"utf-8\")+b\"a57de19ed370ff8e\").hexdigest() == \"e92f97304a7d2fdee225fe10905ed5b31a244bc4\", \"type of answer2_2 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(answer2_2, 2)).encode(\"utf-8\")+b\"a57de19ed370ff8e\").hexdigest() == \"62c1d30da01a86f86bf41089baefe99c500cf3d7\", \"value of answer2_2 is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(answer2_2)).encode(\"utf-8\")+b\"ca794ab7ed821511\").hexdigest() == \"7c183ca2ce7b4f7d3d1f6c90f6d6db8515a4ad39\", \"type of answer2_2 is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(answer2_2, 2)).encode(\"utf-8\")+b\"ca794ab7ed821511\").hexdigest() == \"6b4f7cef2335ed3d57d98ca9cc996a21d4da56f5\", \"value of answer2_2 is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -801,7 +801,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "94ccde8e2a0f3e9915470de6026b48b8", + "checksum": "2360ab2788642299b746c1843b17b156", "grade": true, "grade_id": "cell-4ae1ac995c661109", "locked": true, @@ -813,10 +813,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"b0fbe862e84a889b\").hexdigest() == \"4ea7464f0380f8943acac3531bc239c431433299\", \"type of answer2_3 is not str. answer2_3 should be an str\"\n", - "assert sha1(str(len(answer2_3)).encode(\"utf-8\")+b\"b0fbe862e84a889b\").hexdigest() == \"b5357b60055dfc44518e05a55751cae847e8c4a0\", \"length of answer2_3 is not correct\"\n", - "assert sha1(str(answer2_3.lower()).encode(\"utf-8\")+b\"b0fbe862e84a889b\").hexdigest() == \"a699866e701612f95ef5a765d7c1a2e70683167a\", \"value of answer2_3 is not correct\"\n", - "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"b0fbe862e84a889b\").hexdigest() == \"923b22b4d5e8f06988670e28d54b45f8b2547c0c\", \"correct string value of answer2_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_3)).encode(\"utf-8\")+b\"3972f03d256ee33c\").hexdigest() == \"dad569c72043685343be147dba491f94e16572cc\", \"type of answer2_3 is not str. answer2_3 should be an str\"\n", + "assert sha1(str(len(answer2_3)).encode(\"utf-8\")+b\"3972f03d256ee33c\").hexdigest() == \"c1773a90664c730da607a6155895fe198ec35fd2\", \"length of answer2_3 is not correct\"\n", + "assert sha1(str(answer2_3.lower()).encode(\"utf-8\")+b\"3972f03d256ee33c\").hexdigest() == \"3c4d808a7b834e7e6bee0a5c2e9cd0fefeec9c87\", \"value of answer2_3 is not correct\"\n", + "assert sha1(str(answer2_3).encode(\"utf-8\")+b\"3972f03d256ee33c\").hexdigest() == \"c0bcc15972ed0a4b45c0247abe3b9c00c6d4e941\", \"correct string value of answer2_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -902,7 +902,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "65ef6221f000965e2d9b3686f8fc95d7", + "checksum": "135945b025e64dd7b9657112f6e9896c", "grade": true, "grade_id": "cell-36eda8d5f9545c0e", "locked": true, @@ -914,27 +914,27 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon is None)).encode(\"utf-8\")+b\"8cee29ccf1e9231b\").hexdigest() == \"590300921f9a04cf9b656e88cf4f3bbf12fb5abd\", \"type of marathon is None is not bool. marathon is None should be a bool\"\n", - "assert sha1(str(marathon is None).encode(\"utf-8\")+b\"8cee29ccf1e9231b\").hexdigest() == \"50b793d59dbc6b276730617a4a450e782a589d1a\", \"boolean value of marathon is None is not correct\"\n", + "assert sha1(str(type(marathon is None)).encode(\"utf-8\")+b\"6ce0b12672fb24e2\").hexdigest() == \"71239a7e9c098951c0765e17519ccb9110195f1a\", \"type of marathon is None is not bool. marathon is None should be a bool\"\n", + "assert sha1(str(marathon is None).encode(\"utf-8\")+b\"6ce0b12672fb24e2\").hexdigest() == \"1bf86a01bb8e6911f0fec93c8a123eed481405a2\", \"boolean value of marathon is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon)).encode(\"utf-8\")+b\"225d63529a63fe5f\").hexdigest() == \"a568038181086cc6eb3f75d26f8a798d87acc39d\", \"type of type(marathon) is not correct\"\n", + "assert sha1(str(type(marathon)).encode(\"utf-8\")+b\"840c63c2544c88ed\").hexdigest() == \"7f74d41f1d5cd56aef365318ff7e1ef443bb83ea\", \"type of type(marathon) is not correct\"\n", "\n", - "assert sha1(str(type(marathon.shape)).encode(\"utf-8\")+b\"7ad84373b2f703d1\").hexdigest() == \"ddd3b125e35f48faafedd82aeee96423f357bdf6\", \"type of marathon.shape is not tuple. marathon.shape should be a tuple\"\n", - "assert sha1(str(len(marathon.shape)).encode(\"utf-8\")+b\"7ad84373b2f703d1\").hexdigest() == \"58332dea17b357e104278f8c3dfe862810cf3081\", \"length of marathon.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon.shape))).encode(\"utf-8\")+b\"7ad84373b2f703d1\").hexdigest() == \"ff0cd5260ff0e152e7d66fb7335b210a893c7d31\", \"values of marathon.shape are not correct\"\n", - "assert sha1(str(marathon.shape).encode(\"utf-8\")+b\"7ad84373b2f703d1\").hexdigest() == \"9ca4b6528191e7a2b6de2807f0e2b0203d5ff530\", \"order of elements of marathon.shape is not correct\"\n", + "assert sha1(str(type(marathon.shape)).encode(\"utf-8\")+b\"f5295a1891d0693a\").hexdigest() == \"dba3e1e736f8213cd66d8ab41d987e4efc6c174e\", \"type of marathon.shape is not tuple. marathon.shape should be a tuple\"\n", + "assert sha1(str(len(marathon.shape)).encode(\"utf-8\")+b\"f5295a1891d0693a\").hexdigest() == \"85ea30058aa48407f612ac283b06a85a97251fa5\", \"length of marathon.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon.shape))).encode(\"utf-8\")+b\"f5295a1891d0693a\").hexdigest() == \"10dd37f78974e0265e82ae0959e4cce69c64b57d\", \"values of marathon.shape are not correct\"\n", + "assert sha1(str(marathon.shape).encode(\"utf-8\")+b\"f5295a1891d0693a\").hexdigest() == \"037439261030ff3bcf7d0baa53e8387efd60fd21\", \"order of elements of marathon.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"time_hrs\" in marathon.columns)).encode(\"utf-8\")+b\"6ae0705b372b4a60\").hexdigest() == \"825bcfce89c76b37efc4ca3bca62e896749be167\", \"type of \\\"time_hrs\\\" in marathon.columns is not bool. \\\"time_hrs\\\" in marathon.columns should be a bool\"\n", - "assert sha1(str(\"time_hrs\" in marathon.columns).encode(\"utf-8\")+b\"6ae0705b372b4a60\").hexdigest() == \"68b49932db27f62e6a59d261afcda5a351b188e4\", \"boolean value of \\\"time_hrs\\\" in marathon.columns is not correct\"\n", + "assert sha1(str(type(\"time_hrs\" in marathon.columns)).encode(\"utf-8\")+b\"0ccb2a1795fa4c83\").hexdigest() == \"a7aa0e58bf704c5e89b67fa18c01ac0212b168f9\", \"type of \\\"time_hrs\\\" in marathon.columns is not bool. \\\"time_hrs\\\" in marathon.columns should be a bool\"\n", + "assert sha1(str(\"time_hrs\" in marathon.columns).encode(\"utf-8\")+b\"0ccb2a1795fa4c83\").hexdigest() == \"c28734c36151e2c694db0184490c34865d71a6e2\", \"boolean value of \\\"time_hrs\\\" in marathon.columns is not correct\"\n", "\n", - "assert sha1(str(type(\"max\" in marathon.columns)).encode(\"utf-8\")+b\"74071531ccf9e45b\").hexdigest() == \"a28604806a27d2f2d6e766d0560a73f4be6ed7a8\", \"type of \\\"max\\\" in marathon.columns is not bool. \\\"max\\\" in marathon.columns should be a bool\"\n", - "assert sha1(str(\"max\" in marathon.columns).encode(\"utf-8\")+b\"74071531ccf9e45b\").hexdigest() == \"66e34a82633fefdf8c8e8127431653cec086727e\", \"boolean value of \\\"max\\\" in marathon.columns is not correct\"\n", + "assert sha1(str(type(\"max\" in marathon.columns)).encode(\"utf-8\")+b\"8c4e0aaa380bd68c\").hexdigest() == \"502edc622c1f29fb3f29e167945148a693fc11c2\", \"type of \\\"max\\\" in marathon.columns is not bool. \\\"max\\\" in marathon.columns should be a bool\"\n", + "assert sha1(str(\"max\" in marathon.columns).encode(\"utf-8\")+b\"8c4e0aaa380bd68c\").hexdigest() == \"b7afdb28f348429c223ca3482930d7ea7dc713b0\", \"boolean value of \\\"max\\\" in marathon.columns is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(marathon['max']), 0))).encode(\"utf-8\")+b\"c67fc05edec07a3e\").hexdigest() == \"3a650ac11c976a54be6fa8a5faf6b482a37629c8\", \"type of round(sum(marathon['max']), 0) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(marathon['max']), 0), 2)).encode(\"utf-8\")+b\"c67fc05edec07a3e\").hexdigest() == \"d445df183a0e83186c2d45d32062cc54bfd91491\", \"value of round(sum(marathon['max']), 0) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(marathon['max']), 0))).encode(\"utf-8\")+b\"fa7be8243229f5ea\").hexdigest() == \"ca104317cf21c2f5653a7c1fcf33bc4cad00ce84\", \"type of round(sum(marathon['max']), 0) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(marathon['max']), 0), 2)).encode(\"utf-8\")+b\"fa7be8243229f5ea\").hexdigest() == \"d38d9ad3f59e9d1d920002f4e22e5ac1f5b1a808\", \"value of round(sum(marathon['max']), 0) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(round(sum(marathon['time_hrs']), 0))).encode(\"utf-8\")+b\"33b7e56284c0e128\").hexdigest() == \"718be798aa7815e2e90a2c13ba6eafc021ce71dd\", \"type of round(sum(marathon['time_hrs']), 0) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(marathon['time_hrs']), 0), 2)).encode(\"utf-8\")+b\"33b7e56284c0e128\").hexdigest() == \"9de3cebc7f534b40df57bbb464ce8e8bc33846d8\", \"value of round(sum(marathon['time_hrs']), 0) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(marathon['time_hrs']), 0))).encode(\"utf-8\")+b\"43c6d19edaecc115\").hexdigest() == \"3dcc74317b1ad2853cd077ed721d9f57589a0dbe\", \"type of round(sum(marathon['time_hrs']), 0) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(marathon['time_hrs']), 0), 2)).encode(\"utf-8\")+b\"43c6d19edaecc115\").hexdigest() == \"f6874f0baad9bff4146c966349a5b348c97f6a4e\", \"value of round(sum(marathon['time_hrs']), 0) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1007,7 +1007,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b17bcdf7876b2b1263d7ec112667682a", + "checksum": "e6440030f43120ce21a56d721f7fc08f", "grade": true, "grade_id": "cell-b1eb46161667bcec", "locked": true, @@ -1019,63 +1019,63 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_training is None)).encode(\"utf-8\")+b\"f7b8b5f11272b115\").hexdigest() == \"1eea9e8bfcdda1d07e600a5f618e6fd3899a5b7a\", \"type of marathon_training is None is not bool. marathon_training is None should be a bool\"\n", - "assert sha1(str(marathon_training is None).encode(\"utf-8\")+b\"f7b8b5f11272b115\").hexdigest() == \"e13b1fe636af6a332be630a82fbd3f3177f18c86\", \"boolean value of marathon_training is None is not correct\"\n", + "assert sha1(str(type(marathon_training is None)).encode(\"utf-8\")+b\"bd46b74e620fa656\").hexdigest() == \"3c47613c7f72c3b82a30ceb088435e05378a21e6\", \"type of marathon_training is None is not bool. marathon_training is None should be a bool\"\n", + "assert sha1(str(marathon_training is None).encode(\"utf-8\")+b\"bd46b74e620fa656\").hexdigest() == \"7266f3448b7579c9f06928fb3accd73385494927\", \"boolean value of marathon_training is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_training.shape)).encode(\"utf-8\")+b\"ad677dacc12844c6\").hexdigest() == \"5b9619723a34c919e2acd492c58350060b79444b\", \"type of marathon_training.shape is not tuple. marathon_training.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_training.shape)).encode(\"utf-8\")+b\"ad677dacc12844c6\").hexdigest() == \"8a918a1b43a4f833e357aad0be1d011f3c2164f3\", \"length of marathon_training.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_training.shape))).encode(\"utf-8\")+b\"ad677dacc12844c6\").hexdigest() == \"ecfe12fbce7d0960c8c49a789fb35f8c897e4441\", \"values of marathon_training.shape are not correct\"\n", - "assert sha1(str(marathon_training.shape).encode(\"utf-8\")+b\"ad677dacc12844c6\").hexdigest() == \"8e4650a2bc125de2f6f4a0d7d4064623c62d071e\", \"order of elements of marathon_training.shape is not correct\"\n", + "assert sha1(str(type(marathon_training.shape)).encode(\"utf-8\")+b\"68c03e09bec9b7fa\").hexdigest() == \"009190aa1a5f0aaea1c43c9b335d5bba9dc46bd9\", \"type of marathon_training.shape is not tuple. marathon_training.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_training.shape)).encode(\"utf-8\")+b\"68c03e09bec9b7fa\").hexdigest() == \"e726add8024c009a6fc6ad647feb6736d1699838\", \"length of marathon_training.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_training.shape))).encode(\"utf-8\")+b\"68c03e09bec9b7fa\").hexdigest() == \"8b7a2508cac192822aa5929e4ab923f5a01041f9\", \"values of marathon_training.shape are not correct\"\n", + "assert sha1(str(marathon_training.shape).encode(\"utf-8\")+b\"68c03e09bec9b7fa\").hexdigest() == \"81d4e3cc0c70ec33c11e41acadb6f8b2809315f6\", \"order of elements of marathon_training.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_training.age))).encode(\"utf-8\")+b\"0c738871cbf143d3\").hexdigest() == \"935796262ad3e77668f1ae4ae0f40b7c92a98f53\", \"type of sum(marathon_training.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(marathon_training.age)).encode(\"utf-8\")+b\"0c738871cbf143d3\").hexdigest() == \"11ab4d7f3ed87a02f0c9be88acfffdc47155bcfa\", \"value of sum(marathon_training.age) is not correct\"\n", + "assert sha1(str(type(sum(marathon_training.age))).encode(\"utf-8\")+b\"44c36ddde1346394\").hexdigest() == \"6111b25c3cc87e87339754b1343cb4cb3658f537\", \"type of sum(marathon_training.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(marathon_training.age)).encode(\"utf-8\")+b\"44c36ddde1346394\").hexdigest() == \"8a5a1c953212a779f195cc27c2119493a49c7143\", \"value of sum(marathon_training.age) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_testing is None)).encode(\"utf-8\")+b\"40991bfd77b7da37\").hexdigest() == \"5bca11114bddda38a170d770e4fdef1cf1bca314\", \"type of marathon_testing is None is not bool. marathon_testing is None should be a bool\"\n", - "assert sha1(str(marathon_testing is None).encode(\"utf-8\")+b\"40991bfd77b7da37\").hexdigest() == \"ff2fb9c2e7592767ad9784666918376e7e82e771\", \"boolean value of marathon_testing is None is not correct\"\n", + "assert sha1(str(type(marathon_testing is None)).encode(\"utf-8\")+b\"950a29e104cd4ce4\").hexdigest() == \"51bedea40a1afa52cbcd0b84f0b1d0082ce0b9fb\", \"type of marathon_testing is None is not bool. marathon_testing is None should be a bool\"\n", + "assert sha1(str(marathon_testing is None).encode(\"utf-8\")+b\"950a29e104cd4ce4\").hexdigest() == \"c5771b8cd44b6ddb363b232fa459c062ba9a3553\", \"boolean value of marathon_testing is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_testing.shape)).encode(\"utf-8\")+b\"fa7adf0430561e26\").hexdigest() == \"5747de082c84d44f5904094bd9e0be6804071228\", \"type of marathon_testing.shape is not tuple. marathon_testing.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_testing.shape)).encode(\"utf-8\")+b\"fa7adf0430561e26\").hexdigest() == \"be650db15f66c26a1c266a3523f560942e30e16c\", \"length of marathon_testing.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_testing.shape))).encode(\"utf-8\")+b\"fa7adf0430561e26\").hexdigest() == \"4a0d3597449251f4eebd8a0d7609e58a4765f0b7\", \"values of marathon_testing.shape are not correct\"\n", - "assert sha1(str(marathon_testing.shape).encode(\"utf-8\")+b\"fa7adf0430561e26\").hexdigest() == \"a13e1d7300cbd39b0d181b9a61e34ac4ea33c9a4\", \"order of elements of marathon_testing.shape is not correct\"\n", + "assert sha1(str(type(marathon_testing.shape)).encode(\"utf-8\")+b\"87da7ba2c8c054d6\").hexdigest() == \"097e7486677afb43477ab5164e7a28d809beb68e\", \"type of marathon_testing.shape is not tuple. marathon_testing.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_testing.shape)).encode(\"utf-8\")+b\"87da7ba2c8c054d6\").hexdigest() == \"00dce8955ce6c945184c408d2b04790cf14b3359\", \"length of marathon_testing.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_testing.shape))).encode(\"utf-8\")+b\"87da7ba2c8c054d6\").hexdigest() == \"a1a2f6847e41d2a28ea71fc1fb0baa69a27d238e\", \"values of marathon_testing.shape are not correct\"\n", + "assert sha1(str(marathon_testing.shape).encode(\"utf-8\")+b\"87da7ba2c8c054d6\").hexdigest() == \"9226ccbe098059619cfa1c60c73cdaa8b6dc92a4\", \"order of elements of marathon_testing.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_testing.age))).encode(\"utf-8\")+b\"b9b467182fbb095a\").hexdigest() == \"704cae26436b9f94a6c13e5601b5c33e2c68a5df\", \"type of sum(marathon_testing.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(marathon_testing.age)).encode(\"utf-8\")+b\"b9b467182fbb095a\").hexdigest() == \"ee47a5f81c54e1c20663767378950795b881d2cc\", \"value of sum(marathon_testing.age) is not correct\"\n", + "assert sha1(str(type(sum(marathon_testing.age))).encode(\"utf-8\")+b\"70554129b764603a\").hexdigest() == \"30e96c0258dabcb67c24a9d4ac5290346008ffdd\", \"type of sum(marathon_testing.age) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(marathon_testing.age)).encode(\"utf-8\")+b\"70554129b764603a\").hexdigest() == \"3312ccabc385ece519ad7b45eba8d2c4b47e3ac7\", \"value of sum(marathon_testing.age) is not correct\"\n", "\n", - "assert sha1(str(type(X_train.columns.values)).encode(\"utf-8\")+b\"7a47627d8292d962\").hexdigest() == \"f7b2458be04a3e0d6795da000836c82fb8712dd7\", \"type of X_train.columns.values is not correct\"\n", - "assert sha1(str(X_train.columns.values).encode(\"utf-8\")+b\"7a47627d8292d962\").hexdigest() == \"8b17577930d707f2b57bee7d754c5ad085f0d68d\", \"value of X_train.columns.values is not correct\"\n", + "assert sha1(str(type(X_train.columns.values)).encode(\"utf-8\")+b\"2204601e36f33695\").hexdigest() == \"981d1123ee05d279759f181be7dc64e8be2be015\", \"type of X_train.columns.values is not correct\"\n", + "assert sha1(str(X_train.columns.values).encode(\"utf-8\")+b\"2204601e36f33695\").hexdigest() == \"1ec78d16a465b8461d7e88042e1769a884ec0fb7\", \"value of X_train.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(X_train.shape)).encode(\"utf-8\")+b\"1d68a959d6a36c41\").hexdigest() == \"9faaa44cb85efd27116a1d8ce7fadc4c528324a4\", \"type of X_train.shape is not tuple. X_train.shape should be a tuple\"\n", - "assert sha1(str(len(X_train.shape)).encode(\"utf-8\")+b\"1d68a959d6a36c41\").hexdigest() == \"a3d9cca90f1847185724df2fcdb343d66cc615f1\", \"length of X_train.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, X_train.shape))).encode(\"utf-8\")+b\"1d68a959d6a36c41\").hexdigest() == \"a8fb714318b004b0c1c5223dceb8e1a4edb89dfd\", \"values of X_train.shape are not correct\"\n", - "assert sha1(str(X_train.shape).encode(\"utf-8\")+b\"1d68a959d6a36c41\").hexdigest() == \"b3ebfa2d1ec944542eba2cba13e6d86b1e4a3e88\", \"order of elements of X_train.shape is not correct\"\n", + "assert sha1(str(type(X_train.shape)).encode(\"utf-8\")+b\"26d525c956786c39\").hexdigest() == \"165a7e1e8f1a65b9601b40bfc219dfa514187f45\", \"type of X_train.shape is not tuple. X_train.shape should be a tuple\"\n", + "assert sha1(str(len(X_train.shape)).encode(\"utf-8\")+b\"26d525c956786c39\").hexdigest() == \"200cbcb97df1d747b1ed49222f52b031142f928c\", \"length of X_train.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, X_train.shape))).encode(\"utf-8\")+b\"26d525c956786c39\").hexdigest() == \"cfcda3455ca710805d00cd0128f451643fa1fd8f\", \"values of X_train.shape are not correct\"\n", + "assert sha1(str(X_train.shape).encode(\"utf-8\")+b\"26d525c956786c39\").hexdigest() == \"f692e752947d06874559780c7df01a080e892e65\", \"order of elements of X_train.shape is not correct\"\n", "\n", - "assert sha1(str(type(y_train.name)).encode(\"utf-8\")+b\"19e79101e93c4a5c\").hexdigest() == \"b88772d19325a4a770609f665c433e6a3e9432ac\", \"type of y_train.name is not str. y_train.name should be an str\"\n", - "assert sha1(str(len(y_train.name)).encode(\"utf-8\")+b\"19e79101e93c4a5c\").hexdigest() == \"14d29b8994ee2a724e071f20ed09a568b74e3468\", \"length of y_train.name is not correct\"\n", - "assert sha1(str(y_train.name.lower()).encode(\"utf-8\")+b\"19e79101e93c4a5c\").hexdigest() == \"b8607f4fe6e926a21d6d368990bb31563f92aa79\", \"value of y_train.name is not correct\"\n", - "assert sha1(str(y_train.name).encode(\"utf-8\")+b\"19e79101e93c4a5c\").hexdigest() == \"b8607f4fe6e926a21d6d368990bb31563f92aa79\", \"correct string value of y_train.name but incorrect case of letters\"\n", + "assert sha1(str(type(y_train.name)).encode(\"utf-8\")+b\"c8ac1d4c0103da06\").hexdigest() == \"63ec88dd4d1ea40348f4879a03cf09c617e58782\", \"type of y_train.name is not str. y_train.name should be an str\"\n", + "assert sha1(str(len(y_train.name)).encode(\"utf-8\")+b\"c8ac1d4c0103da06\").hexdigest() == \"2626d10bc3356f369431c4535d8a118dbe65bcd2\", \"length of y_train.name is not correct\"\n", + "assert sha1(str(y_train.name.lower()).encode(\"utf-8\")+b\"c8ac1d4c0103da06\").hexdigest() == \"34c2938524244d3ff4a8244619f999bf95d329b4\", \"value of y_train.name is not correct\"\n", + "assert sha1(str(y_train.name).encode(\"utf-8\")+b\"c8ac1d4c0103da06\").hexdigest() == \"34c2938524244d3ff4a8244619f999bf95d329b4\", \"correct string value of y_train.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(y_train.shape)).encode(\"utf-8\")+b\"59a61e002c4b1836\").hexdigest() == \"c9a6f0c1e336e4fe02a5f793df628223316e60e3\", \"type of y_train.shape is not tuple. y_train.shape should be a tuple\"\n", - "assert sha1(str(len(y_train.shape)).encode(\"utf-8\")+b\"59a61e002c4b1836\").hexdigest() == \"dd3c78bc97f66266f59532438e0871d85ec34c01\", \"length of y_train.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, y_train.shape))).encode(\"utf-8\")+b\"59a61e002c4b1836\").hexdigest() == \"cfd320dfc2dd0efb2e1c6c0d5a6d4e4e2480c054\", \"values of y_train.shape are not correct\"\n", - "assert sha1(str(y_train.shape).encode(\"utf-8\")+b\"59a61e002c4b1836\").hexdigest() == \"beac2acf5578616c353e8706eb80eab8da2e2280\", \"order of elements of y_train.shape is not correct\"\n", + "assert sha1(str(type(y_train.shape)).encode(\"utf-8\")+b\"dde85b4237b3f4cf\").hexdigest() == \"76978f2283b3d80869f9cb3590022ad9f564cf20\", \"type of y_train.shape is not tuple. y_train.shape should be a tuple\"\n", + "assert sha1(str(len(y_train.shape)).encode(\"utf-8\")+b\"dde85b4237b3f4cf\").hexdigest() == \"c54a6df5d7d8a634fa6232dbbda4dac0e14d06fc\", \"length of y_train.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, y_train.shape))).encode(\"utf-8\")+b\"dde85b4237b3f4cf\").hexdigest() == \"8bca2059b197a83849209b3e7772e2ad45786d82\", \"values of y_train.shape are not correct\"\n", + "assert sha1(str(y_train.shape).encode(\"utf-8\")+b\"dde85b4237b3f4cf\").hexdigest() == \"91e9141afe650e2c6882c7fb927ec5db5e00efcf\", \"order of elements of y_train.shape is not correct\"\n", "\n", - "assert sha1(str(type(X_test.columns.values)).encode(\"utf-8\")+b\"e105a57d6014e9a1\").hexdigest() == \"0d09d2d9afbfcb1a1654d60c08272f1952471ada\", \"type of X_test.columns.values is not correct\"\n", - "assert sha1(str(X_test.columns.values).encode(\"utf-8\")+b\"e105a57d6014e9a1\").hexdigest() == \"fe2af982798ccf6f4bbde8c27a2716f2c23f19c8\", \"value of X_test.columns.values is not correct\"\n", + "assert sha1(str(type(X_test.columns.values)).encode(\"utf-8\")+b\"b4f3f4601328acfc\").hexdigest() == \"48370be31fa89366e7d88da1b80abf804197c964\", \"type of X_test.columns.values is not correct\"\n", + "assert sha1(str(X_test.columns.values).encode(\"utf-8\")+b\"b4f3f4601328acfc\").hexdigest() == \"6eff97c22b4204dd6fd7ab594153a09a2a2acb8c\", \"value of X_test.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(X_test.shape)).encode(\"utf-8\")+b\"6505195ad08a496f\").hexdigest() == \"ad4256f1279755b07008d8c810c2e733c9e0c3a5\", \"type of X_test.shape is not tuple. X_test.shape should be a tuple\"\n", - "assert sha1(str(len(X_test.shape)).encode(\"utf-8\")+b\"6505195ad08a496f\").hexdigest() == \"112f711f96204190fe485403af737c52e93af7fe\", \"length of X_test.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, X_test.shape))).encode(\"utf-8\")+b\"6505195ad08a496f\").hexdigest() == \"0c8b71039f895e9b7ef6ffaa7ba1d11f8e011c6f\", \"values of X_test.shape are not correct\"\n", - "assert sha1(str(X_test.shape).encode(\"utf-8\")+b\"6505195ad08a496f\").hexdigest() == \"64671c12e0b7504e792cb37a677c1e862b8d0e3d\", \"order of elements of X_test.shape is not correct\"\n", + "assert sha1(str(type(X_test.shape)).encode(\"utf-8\")+b\"bb3b1f8a3ccb7b31\").hexdigest() == \"ac30eb38fc7871ed7aab1e0331d6d4d136f009da\", \"type of X_test.shape is not tuple. X_test.shape should be a tuple\"\n", + "assert sha1(str(len(X_test.shape)).encode(\"utf-8\")+b\"bb3b1f8a3ccb7b31\").hexdigest() == \"b6f2dd5574b4da4b25e784cc615af86832cdd0b5\", \"length of X_test.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, X_test.shape))).encode(\"utf-8\")+b\"bb3b1f8a3ccb7b31\").hexdigest() == \"4e0c6052600892a08375216425580034eaefe84c\", \"values of X_test.shape are not correct\"\n", + "assert sha1(str(X_test.shape).encode(\"utf-8\")+b\"bb3b1f8a3ccb7b31\").hexdigest() == \"90e984fe5e5df5d8e435ba9a3ab7e91755ea5f8d\", \"order of elements of X_test.shape is not correct\"\n", "\n", - "assert sha1(str(type(y_test.name)).encode(\"utf-8\")+b\"2756c1707693aa74\").hexdigest() == \"2c5597654c72b0d7d259cf0f47bb039796aebe76\", \"type of y_test.name is not str. y_test.name should be an str\"\n", - "assert sha1(str(len(y_test.name)).encode(\"utf-8\")+b\"2756c1707693aa74\").hexdigest() == \"7cc27af01890e44d36b1269103ff6e44d66c2d13\", \"length of y_test.name is not correct\"\n", - "assert sha1(str(y_test.name.lower()).encode(\"utf-8\")+b\"2756c1707693aa74\").hexdigest() == \"b6a0bd1cb97d6369000b7ebc040a91d0ed43fa32\", \"value of y_test.name is not correct\"\n", - "assert sha1(str(y_test.name).encode(\"utf-8\")+b\"2756c1707693aa74\").hexdigest() == \"b6a0bd1cb97d6369000b7ebc040a91d0ed43fa32\", \"correct string value of y_test.name but incorrect case of letters\"\n", + "assert sha1(str(type(y_test.name)).encode(\"utf-8\")+b\"7ab6b2c0c33d4080\").hexdigest() == \"1da038a4a28025229535a4bcf8ba1489dc5192e5\", \"type of y_test.name is not str. y_test.name should be an str\"\n", + "assert sha1(str(len(y_test.name)).encode(\"utf-8\")+b\"7ab6b2c0c33d4080\").hexdigest() == \"a80ca7f9ca2ceb6fa7531f94324a880db0c62e22\", \"length of y_test.name is not correct\"\n", + "assert sha1(str(y_test.name.lower()).encode(\"utf-8\")+b\"7ab6b2c0c33d4080\").hexdigest() == \"6bba73ab3a09eae2b3897c2037ebbf0993e6b9bc\", \"value of y_test.name is not correct\"\n", + "assert sha1(str(y_test.name).encode(\"utf-8\")+b\"7ab6b2c0c33d4080\").hexdigest() == \"6bba73ab3a09eae2b3897c2037ebbf0993e6b9bc\", \"correct string value of y_test.name but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(y_test.shape)).encode(\"utf-8\")+b\"b1659078b2604ca7\").hexdigest() == \"aca9d80fe06f428eb69ba854b754255d062d7f85\", \"type of y_test.shape is not tuple. y_test.shape should be a tuple\"\n", - "assert sha1(str(len(y_test.shape)).encode(\"utf-8\")+b\"b1659078b2604ca7\").hexdigest() == \"2216c1c422f22a624ad11ff1809b1bc243e4e97c\", \"length of y_test.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, y_test.shape))).encode(\"utf-8\")+b\"b1659078b2604ca7\").hexdigest() == \"32a2ce22aed61d32be6c8c8d573afaf70c06903b\", \"values of y_test.shape are not correct\"\n", - "assert sha1(str(y_test.shape).encode(\"utf-8\")+b\"b1659078b2604ca7\").hexdigest() == \"bccc924ccc5bbd8d1599db55ae78900e8ebb2c1d\", \"order of elements of y_test.shape is not correct\"\n", + "assert sha1(str(type(y_test.shape)).encode(\"utf-8\")+b\"c2f61d2b0af0a4eb\").hexdigest() == \"f364532f75ff6b25bf546ebdce3b0118a0b7d232\", \"type of y_test.shape is not tuple. y_test.shape should be a tuple\"\n", + "assert sha1(str(len(y_test.shape)).encode(\"utf-8\")+b\"c2f61d2b0af0a4eb\").hexdigest() == \"a1a74a2d2a67a8b258cd9421b647ebe2cbe3450f\", \"length of y_test.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, y_test.shape))).encode(\"utf-8\")+b\"c2f61d2b0af0a4eb\").hexdigest() == \"f9e360954106f047ac7bde7d925998f777501286\", \"values of y_test.shape are not correct\"\n", + "assert sha1(str(y_test.shape).encode(\"utf-8\")+b\"c2f61d2b0af0a4eb\").hexdigest() == \"22e0cbd2f7b3751b50d250b8e5ab436abc2be9f6\", \"order of elements of y_test.shape is not correct\"\n", "\n", "print('Success!')" ] @@ -1135,7 +1135,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "fd1c67dfa8eb6f7bf01b1b6d89dca563", + "checksum": "eb054637791de5d0c6c9352f70ccd29c", "grade": true, "grade_id": "cell-883edd273699e4b7", "locked": true, @@ -1147,35 +1147,35 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_scatter is None)).encode(\"utf-8\")+b\"7aa21e1b15583549\").hexdigest() == \"5ce4c8ef9bbf01ca32c21355f1073dd6128f52b8\", \"type of marathon_scatter is None is not bool. marathon_scatter is None should be a bool\"\n", - "assert sha1(str(marathon_scatter is None).encode(\"utf-8\")+b\"7aa21e1b15583549\").hexdigest() == \"22f4de0bf376d3ea37c37917e08965dc62f96048\", \"boolean value of marathon_scatter is None is not correct\"\n", + "assert sha1(str(type(marathon_scatter is None)).encode(\"utf-8\")+b\"1b3718a8aa17653b\").hexdigest() == \"8413f9f66314df6fc9303928552c58cfae5c3956\", \"type of marathon_scatter is None is not bool. marathon_scatter is None should be a bool\"\n", + "assert sha1(str(marathon_scatter is None).encode(\"utf-8\")+b\"1b3718a8aa17653b\").hexdigest() == \"16eeb7bfefe311bd8e62fde95b10bbab7b1da72a\", \"boolean value of marathon_scatter is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"845478aaae96e856\").hexdigest() == \"3aa004650e35b4d3108bfbe41ca2e4d9fd1af8ca\", \"type of marathon_scatter.encoding.x['shorthand'] is not str. marathon_scatter.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"845478aaae96e856\").hexdigest() == \"a95dc656fb8b750c3011294b2c6ccd5d083c9687\", \"length of marathon_scatter.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_scatter.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"845478aaae96e856\").hexdigest() == \"292bc502288cce323c38cfde96b6644f3ab7d70b\", \"value of marathon_scatter.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_scatter.encoding.x['shorthand']).encode(\"utf-8\")+b\"845478aaae96e856\").hexdigest() == \"292bc502288cce323c38cfde96b6644f3ab7d70b\", \"correct string value of marathon_scatter.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"529487924b6c22f2\").hexdigest() == \"b0f75aa7c61d4ccb8b5585b55ec8e27bd096e5f5\", \"type of marathon_scatter.encoding.x['shorthand'] is not str. marathon_scatter.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_scatter.encoding.x['shorthand'])).encode(\"utf-8\")+b\"529487924b6c22f2\").hexdigest() == \"4809bd871b33c3457159d7092ed43157102129e3\", \"length of marathon_scatter.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_scatter.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"529487924b6c22f2\").hexdigest() == \"07bd17efc6f23f577edbe247659c8374c3e6b5ec\", \"value of marathon_scatter.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_scatter.encoding.x['shorthand']).encode(\"utf-8\")+b\"529487924b6c22f2\").hexdigest() == \"07bd17efc6f23f577edbe247659c8374c3e6b5ec\", \"correct string value of marathon_scatter.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"c55cc321612aebd7\").hexdigest() == \"1967f902ac763e7778bed3953bbf5c599b4e9338\", \"type of marathon_scatter.encoding.y['shorthand'] is not str. marathon_scatter.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"c55cc321612aebd7\").hexdigest() == \"53da6dc0f6ef77b93e98d9fc154e33933a51a623\", \"length of marathon_scatter.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_scatter.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"c55cc321612aebd7\").hexdigest() == \"6d75a634fa547e88889503c21e697a5c73c50e81\", \"value of marathon_scatter.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_scatter.encoding.y['shorthand']).encode(\"utf-8\")+b\"c55cc321612aebd7\").hexdigest() == \"6d75a634fa547e88889503c21e697a5c73c50e81\", \"correct string value of marathon_scatter.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"216e344631a0fb67\").hexdigest() == \"20f27984684d3ce4e92410c1ffbb79bf1fe3ae07\", \"type of marathon_scatter.encoding.y['shorthand'] is not str. marathon_scatter.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_scatter.encoding.y['shorthand'])).encode(\"utf-8\")+b\"216e344631a0fb67\").hexdigest() == \"3783a669bfbe5d18eaa37b5be5f879cf060f9b87\", \"length of marathon_scatter.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_scatter.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"216e344631a0fb67\").hexdigest() == \"e2046679b23f8f0edb13146e1c96dab292675011\", \"value of marathon_scatter.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_scatter.encoding.y['shorthand']).encode(\"utf-8\")+b\"216e344631a0fb67\").hexdigest() == \"e2046679b23f8f0edb13146e1c96dab292675011\", \"correct string value of marathon_scatter.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_scatter.mark.type)).encode(\"utf-8\")+b\"51d80f5383c18689\").hexdigest() == \"97bcd7851885d3e297d36be24a09780a82ec5c84\", \"type of marathon_scatter.mark.type is not str. marathon_scatter.mark.type should be an str\"\n", - "assert sha1(str(len(marathon_scatter.mark.type)).encode(\"utf-8\")+b\"51d80f5383c18689\").hexdigest() == \"ab2a7b7a42bf1af3317aa7ef7485fdbdc0b0d3a9\", \"length of marathon_scatter.mark.type is not correct\"\n", - "assert sha1(str(marathon_scatter.mark.type.lower()).encode(\"utf-8\")+b\"51d80f5383c18689\").hexdigest() == \"64ee6b4699f6663fc9d7393a5e73d96acef87edc\", \"value of marathon_scatter.mark.type is not correct\"\n", - "assert sha1(str(marathon_scatter.mark.type).encode(\"utf-8\")+b\"51d80f5383c18689\").hexdigest() == \"64ee6b4699f6663fc9d7393a5e73d96acef87edc\", \"correct string value of marathon_scatter.mark.type but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_scatter.mark.type)).encode(\"utf-8\")+b\"5c1fbb95a3a19056\").hexdigest() == \"c5c0a4b9c7f3531e87d1c4e96bf9e309fc20b234\", \"type of marathon_scatter.mark.type is not str. marathon_scatter.mark.type should be an str\"\n", + "assert sha1(str(len(marathon_scatter.mark.type)).encode(\"utf-8\")+b\"5c1fbb95a3a19056\").hexdigest() == \"cea811d7b68a9bd805ca41e977ba38aa429aa5d3\", \"length of marathon_scatter.mark.type is not correct\"\n", + "assert sha1(str(marathon_scatter.mark.type.lower()).encode(\"utf-8\")+b\"5c1fbb95a3a19056\").hexdigest() == \"0328a5eb0b1d57e3b0f3be9905a91a1a2547cb82\", \"value of marathon_scatter.mark.type is not correct\"\n", + "assert sha1(str(marathon_scatter.mark.type).encode(\"utf-8\")+b\"5c1fbb95a3a19056\").hexdigest() == \"0328a5eb0b1d57e3b0f3be9905a91a1a2547cb82\", \"correct string value of marathon_scatter.mark.type but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_scatter.data.shape[0])).encode(\"utf-8\")+b\"bf57427d5fe50195\").hexdigest() == \"4bfac3767a207e176713d4aad4e2ffda1c8cb3c6\", \"type of marathon_scatter.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(marathon_scatter.data.shape[0]).encode(\"utf-8\")+b\"bf57427d5fe50195\").hexdigest() == \"f18a1c857ac4869424d4833da6d7b7413f872592\", \"value of marathon_scatter.data.shape[0] is not correct\"\n", + "assert sha1(str(type(marathon_scatter.data.shape[0])).encode(\"utf-8\")+b\"9dca22156e0ba137\").hexdigest() == \"0a812925620f4ebed2c8037f89f6b0226c89f84f\", \"type of marathon_scatter.data.shape[0] is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(marathon_scatter.data.shape[0]).encode(\"utf-8\")+b\"9dca22156e0ba137\").hexdigest() == \"75f42bcc1bbdec0107e924e366bb572b528af875\", \"value of marathon_scatter.data.shape[0] is not correct\"\n", "\n", - "assert sha1(str(type('opacity' in marathon_scatter.mark.to_dict())).encode(\"utf-8\")+b\"4a69158e510ee36c\").hexdigest() == \"85861218098525f5908427d11be8cad7993c117a\", \"type of 'opacity' in marathon_scatter.mark.to_dict() is not bool. 'opacity' in marathon_scatter.mark.to_dict() should be a bool\"\n", - "assert sha1(str('opacity' in marathon_scatter.mark.to_dict()).encode(\"utf-8\")+b\"4a69158e510ee36c\").hexdigest() == \"5e1715893ce900bd957c5dfb1adc39f1ba254b6b\", \"boolean value of 'opacity' in marathon_scatter.mark.to_dict() is not correct\"\n", + "assert sha1(str(type('opacity' in marathon_scatter.mark.to_dict())).encode(\"utf-8\")+b\"7714232ebec61d2f\").hexdigest() == \"7e8cf1c5d208dde75e232ca06f5c717b613b6eec\", \"type of 'opacity' in marathon_scatter.mark.to_dict() is not bool. 'opacity' in marathon_scatter.mark.to_dict() should be a bool\"\n", + "assert sha1(str('opacity' in marathon_scatter.mark.to_dict()).encode(\"utf-8\")+b\"7714232ebec61d2f\").hexdigest() == \"85b6414211291f50911248a49d878c1207f5eb04\", \"boolean value of 'opacity' in marathon_scatter.mark.to_dict() is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_scatter.encoding.x['title'], str))).encode(\"utf-8\")+b\"c872b146217592af\").hexdigest() == \"df67c5f5b5fbde314385d98bd8f0eeecd31c0025\", \"type of isinstance(marathon_scatter.encoding.x['title'], str) is not bool. isinstance(marathon_scatter.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_scatter.encoding.x['title'], str)).encode(\"utf-8\")+b\"c872b146217592af\").hexdigest() == \"2ed8f01fcb148e3e98d606f634085bbafc9a2345\", \"boolean value of isinstance(marathon_scatter.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_scatter.encoding.x['title'], str))).encode(\"utf-8\")+b\"cd5b99b959316607\").hexdigest() == \"38a02f9bc4e8139b12c544e1abab022ff7d919a4\", \"type of isinstance(marathon_scatter.encoding.x['title'], str) is not bool. isinstance(marathon_scatter.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_scatter.encoding.x['title'], str)).encode(\"utf-8\")+b\"cd5b99b959316607\").hexdigest() == \"1c0e2a7e045f436b4249b61760b35aea994c8382\", \"boolean value of isinstance(marathon_scatter.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_scatter.encoding.y['title'], str))).encode(\"utf-8\")+b\"6745ebd94f447681\").hexdigest() == \"c36b89723d5f4d8709173d3f5dba45a35ad39cbd\", \"type of isinstance(marathon_scatter.encoding.y['title'], str) is not bool. isinstance(marathon_scatter.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_scatter.encoding.y['title'], str)).encode(\"utf-8\")+b\"6745ebd94f447681\").hexdigest() == \"9144c8bfbedd6a7496a46d6023af6ac0581e86cf\", \"boolean value of isinstance(marathon_scatter.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_scatter.encoding.y['title'], str))).encode(\"utf-8\")+b\"8646964f35dcb937\").hexdigest() == \"4c2c1c9136b225291e85bcd8fc7453ca3867d5af\", \"type of isinstance(marathon_scatter.encoding.y['title'], str) is not bool. isinstance(marathon_scatter.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_scatter.encoding.y['title'], str)).encode(\"utf-8\")+b\"8646964f35dcb937\").hexdigest() == \"5ee0a435d742014f6de20ecc0ff2c68239f6be4c\", \"boolean value of isinstance(marathon_scatter.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1239,7 +1239,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c0eb5ff11932b72177d1ab880d462f60", + "checksum": "d1cfef47e7d4023490216aba560e198f", "grade": true, "grade_id": "cell-a647adab28a3dfb2", "locked": true, @@ -1251,11 +1251,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(lm is None)).encode(\"utf-8\")+b\"a7e21dbc379ef537\").hexdigest() == \"63cb523142377222abf2adbd17e124cc8bf8bd8f\", \"type of lm is None is not bool. lm is None should be a bool\"\n", - "assert sha1(str(lm is None).encode(\"utf-8\")+b\"a7e21dbc379ef537\").hexdigest() == \"a1105e8c08da53067619ff02ceb53db902ff3fa0\", \"boolean value of lm is None is not correct\"\n", + "assert sha1(str(type(lm is None)).encode(\"utf-8\")+b\"ffb500d04ff3fbbd\").hexdigest() == \"20e2348c089ea6a5b1c04bf566c22a76d5d7619a\", \"type of lm is None is not bool. lm is None should be a bool\"\n", + "assert sha1(str(lm is None).encode(\"utf-8\")+b\"ffb500d04ff3fbbd\").hexdigest() == \"5e927b21fab3a5d05ed7270fb3851cfaf8e33590\", \"boolean value of lm is None is not correct\"\n", "\n", - "assert sha1(str(type(type(lm))).encode(\"utf-8\")+b\"c81719ce18002f3a\").hexdigest() == \"f6dc7f6a5c8e766a65f996ecb655922738c3798c\", \"type of type(lm) is not correct\"\n", - "assert sha1(str(type(lm)).encode(\"utf-8\")+b\"c81719ce18002f3a\").hexdigest() == \"dcb387f03bf812541b4e7a2c5cafc720ffec133f\", \"value of type(lm) is not correct\"\n", + "assert sha1(str(type(type(lm))).encode(\"utf-8\")+b\"3427c49f32318e90\").hexdigest() == \"71c72d512fc50d0288ae9462c33068e5905a15b5\", \"type of type(lm) is not correct\"\n", + "assert sha1(str(type(lm)).encode(\"utf-8\")+b\"3427c49f32318e90\").hexdigest() == \"9ac817c61d3f864be000d70ff70c2d76b966b1df\", \"value of type(lm) is not correct\"\n", "\n", "print('Success!')" ] @@ -1318,7 +1318,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7984a5250fb76bb411866772cb06e54e", + "checksum": "b416b9fc728b6caa517d1f9c4a7b4150", "grade": true, "grade_id": "cell-9d3b1ff7fdd3faa5", "locked": true, @@ -1331,17 +1331,17 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(lm_fit is None)).encode(\"utf-8\")+b\"e3d121d1fb0dabeb\").hexdigest() == \"6390f64797357a5a14fdc8bcf7a23892af3b3c6f\", \"type of lm_fit is None is not bool. lm_fit is None should be a bool\"\n", - "assert sha1(str(lm_fit is None).encode(\"utf-8\")+b\"e3d121d1fb0dabeb\").hexdigest() == \"677a2dd7af966c7f6217285000d0d2aea85b5346\", \"boolean value of lm_fit is None is not correct\"\n", + "assert sha1(str(type(lm_fit is None)).encode(\"utf-8\")+b\"97a37b2690148bce\").hexdigest() == \"4d1ea816938715cfd7a70da7cde92b7b68eff8ef\", \"type of lm_fit is None is not bool. lm_fit is None should be a bool\"\n", + "assert sha1(str(lm_fit is None).encode(\"utf-8\")+b\"97a37b2690148bce\").hexdigest() == \"2ad3bef03dfd461f12b58d3205d0ee6d9cebe626\", \"boolean value of lm_fit is None is not correct\"\n", "\n", - "assert sha1(str(type(type(lm_fit))).encode(\"utf-8\")+b\"9738413bebcf7aed\").hexdigest() == \"61f640b420ff986e7f5038ac4b0ba8de4a667c0f\", \"type of type(lm_fit) is not correct\"\n", - "assert sha1(str(type(lm_fit)).encode(\"utf-8\")+b\"9738413bebcf7aed\").hexdigest() == \"15908f6e713a818ad65fd75a2426c0a702d6df01\", \"value of type(lm_fit) is not correct\"\n", + "assert sha1(str(type(type(lm_fit))).encode(\"utf-8\")+b\"688a058199fc114a\").hexdigest() == \"30fa6cfcb2b454b575b6c5c89fe096cb7b80cc71\", \"type of type(lm_fit) is not correct\"\n", + "assert sha1(str(type(lm_fit)).encode(\"utf-8\")+b\"688a058199fc114a\").hexdigest() == \"b4fe223f502d32e9951afa75d75acb4270c30a20\", \"value of type(lm_fit) is not correct\"\n", "\n", - "assert sha1(str(type(lm_fit.coef_)).encode(\"utf-8\")+b\"1d2b458ef782cd79\").hexdigest() == \"f26428cb45d04cb643fc2dccb0404d06ec1ce3ed\", \"type of lm_fit.coef_ is not correct\"\n", - "assert sha1(str(lm_fit.coef_).encode(\"utf-8\")+b\"1d2b458ef782cd79\").hexdigest() == \"a737900d6ef3b8a233f7033bdde19e6bc5b1dff9\", \"value of lm_fit.coef_ is not correct\"\n", + "assert sha1(str(type(lm_fit.coef_)).encode(\"utf-8\")+b\"7b97c1dae8de6b8b\").hexdigest() == \"1b22bc96799804170c2c7d87e7b14d1f69149270\", \"type of lm_fit.coef_ is not correct\"\n", + "assert sha1(str(lm_fit.coef_).encode(\"utf-8\")+b\"7b97c1dae8de6b8b\").hexdigest() == \"fd9ae2b896f9c8233d61511be285fb82cadf5b82\", \"value of lm_fit.coef_ is not correct\"\n", "\n", - "assert sha1(str(type(lm_fit.intercept_)).encode(\"utf-8\")+b\"900ada05a3c9449f\").hexdigest() == \"c0973833ef5bd597db4599c77c3a840a07f83a4c\", \"type of lm_fit.intercept_ is not correct\"\n", - "assert sha1(str(lm_fit.intercept_).encode(\"utf-8\")+b\"900ada05a3c9449f\").hexdigest() == \"aced3e3172264a9492f9413df18ae758580bc93d\", \"value of lm_fit.intercept_ is not correct\"\n", + "assert sha1(str(type(lm_fit.intercept_)).encode(\"utf-8\")+b\"f108981739f1e6fd\").hexdigest() == \"c98c0affdf88872df9bfc627098e7a13312c2fae\", \"type of lm_fit.intercept_ is not correct\"\n", + "assert sha1(str(lm_fit.intercept_).encode(\"utf-8\")+b\"f108981739f1e6fd\").hexdigest() == \"2d96404da7cba8d2ee54103ddee38866451fb16a\", \"value of lm_fit.intercept_ is not correct\"\n", "\n", "print('Success!')" ] @@ -1410,7 +1410,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "46dc42405688efa13ae91b6252296c80", + "checksum": "0494033d2a30fee7117cb8dbe5076f47", "grade": true, "grade_id": "cell-4664079ebe7d0892", "locked": true, @@ -1422,57 +1422,57 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_preds is None)).encode(\"utf-8\")+b\"9774f5effdf65bda\").hexdigest() == \"44f57919b27ba03e080b183b7d7731db017b3255\", \"type of marathon_preds is None is not bool. marathon_preds is None should be a bool\"\n", - "assert sha1(str(marathon_preds is None).encode(\"utf-8\")+b\"9774f5effdf65bda\").hexdigest() == \"0e41d6e6f018ffd253b8383667e4e2eb995ec433\", \"boolean value of marathon_preds is None is not correct\"\n", + "assert sha1(str(type(marathon_preds is None)).encode(\"utf-8\")+b\"8c016494f179e882\").hexdigest() == \"f981d015cd1cd9a296c671175e08a134c7dd5313\", \"type of marathon_preds is None is not bool. marathon_preds is None should be a bool\"\n", + "assert sha1(str(marathon_preds is None).encode(\"utf-8\")+b\"8c016494f179e882\").hexdigest() == \"62fc58f39fa8994a14e3d36da1cb8cf754142b30\", \"boolean value of marathon_preds is None is not correct\"\n", "\n", - "assert sha1(str(type(marathon_preds)).encode(\"utf-8\")+b\"42cecb6be5c7ebf5\").hexdigest() == \"16cbf7b3d77e6b9d493db225e6a90b7afc7018e2\", \"type of type(marathon_preds) is not correct\"\n", + "assert sha1(str(type(marathon_preds)).encode(\"utf-8\")+b\"1cd01a6b6290c18c\").hexdigest() == \"1d033bae323ff74f364fbb09d41b2b90525ee3e9\", \"type of type(marathon_preds) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_preds.shape)).encode(\"utf-8\")+b\"6c5da521a99a6c0a\").hexdigest() == \"3d8f7170a080bd6cef3198ccd50073f7114e7067\", \"type of marathon_preds.shape is not tuple. marathon_preds.shape should be a tuple\"\n", - "assert sha1(str(len(marathon_preds.shape)).encode(\"utf-8\")+b\"6c5da521a99a6c0a\").hexdigest() == \"65955d0b407a5026b1726eada5b40e562d869424\", \"length of marathon_preds.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, marathon_preds.shape))).encode(\"utf-8\")+b\"6c5da521a99a6c0a\").hexdigest() == \"d7c110c0379e7bc6b980d4500eed55a2c31d9010\", \"values of marathon_preds.shape are not correct\"\n", - "assert sha1(str(marathon_preds.shape).encode(\"utf-8\")+b\"6c5da521a99a6c0a\").hexdigest() == \"354989d79193b5a28b2c9eaacf55af394d51b797\", \"order of elements of marathon_preds.shape is not correct\"\n", + "assert sha1(str(type(marathon_preds.shape)).encode(\"utf-8\")+b\"d5c01120527fd284\").hexdigest() == \"e4f36d38b5bc843cd760693ae702af7c32787495\", \"type of marathon_preds.shape is not tuple. marathon_preds.shape should be a tuple\"\n", + "assert sha1(str(len(marathon_preds.shape)).encode(\"utf-8\")+b\"d5c01120527fd284\").hexdigest() == \"9bd596725da839efad9e3be565feec5493dd41d0\", \"length of marathon_preds.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, marathon_preds.shape))).encode(\"utf-8\")+b\"d5c01120527fd284\").hexdigest() == \"def905edf84ebd3d3439fef64b2e78e2d51817a6\", \"values of marathon_preds.shape are not correct\"\n", + "assert sha1(str(marathon_preds.shape).encode(\"utf-8\")+b\"d5c01120527fd284\").hexdigest() == \"66dd383bbd63e288df5a6449605cb3f98040011c\", \"order of elements of marathon_preds.shape is not correct\"\n", "\n", - "assert sha1(str(type(\"predictions\" in marathon_preds.columns)).encode(\"utf-8\")+b\"c724531a5955cd98\").hexdigest() == \"a4d99ad6a003d42a9ce2b85900749c0a86529bb4\", \"type of \\\"predictions\\\" in marathon_preds.columns is not bool. \\\"predictions\\\" in marathon_preds.columns should be a bool\"\n", - "assert sha1(str(\"predictions\" in marathon_preds.columns).encode(\"utf-8\")+b\"c724531a5955cd98\").hexdigest() == \"36aac1924403184f8d16b9c8f2debc2846e77075\", \"boolean value of \\\"predictions\\\" in marathon_preds.columns is not correct\"\n", + "assert sha1(str(type(\"predictions\" in marathon_preds.columns)).encode(\"utf-8\")+b\"5da3f9cd2ebbc396\").hexdigest() == \"c529a0050a977e17f3d24382eae32d6fbf86f14a\", \"type of \\\"predictions\\\" in marathon_preds.columns is not bool. \\\"predictions\\\" in marathon_preds.columns should be a bool\"\n", + "assert sha1(str(\"predictions\" in marathon_preds.columns).encode(\"utf-8\")+b\"5da3f9cd2ebbc396\").hexdigest() == \"405ff042d2c33e30fba68acf6f4f2377782e322a\", \"boolean value of \\\"predictions\\\" in marathon_preds.columns is not correct\"\n", "\n", - "assert sha1(str(type(sum(marathon_preds.predictions))).encode(\"utf-8\")+b\"458ffe8d7f57c93b\").hexdigest() == \"012867f12c0fdb4ee97119623f7f204cc856cfce\", \"type of sum(marathon_preds.predictions) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_preds.predictions), 2)).encode(\"utf-8\")+b\"458ffe8d7f57c93b\").hexdigest() == \"83e566bf52d10c6044e8fc4e0f664c258829526b\", \"value of sum(marathon_preds.predictions) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_preds.predictions))).encode(\"utf-8\")+b\"59cb154a3098c596\").hexdigest() == \"21bf0ef95bde189085d756d6b86c206820013525\", \"type of sum(marathon_preds.predictions) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_preds.predictions), 2)).encode(\"utf-8\")+b\"59cb154a3098c596\").hexdigest() == \"ee95327750641dfa10b420a80b18f16e57662ef4\", \"value of sum(marathon_preds.predictions) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(marathon_preds.time_hrs))).encode(\"utf-8\")+b\"5232adfb65da4a4c\").hexdigest() == \"ffdc6dd4928ba821e58e458b63424e537d053677\", \"type of sum(marathon_preds.time_hrs) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(marathon_preds.time_hrs), 2)).encode(\"utf-8\")+b\"5232adfb65da4a4c\").hexdigest() == \"7f88fb80b3f5aa5311607bd1410725a568e43107\", \"value of sum(marathon_preds.time_hrs) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(marathon_preds.time_hrs))).encode(\"utf-8\")+b\"2f887ce8243f0144\").hexdigest() == \"51b338dac1912b485bfaf1716fe3a42d3e4b4ffd\", \"type of sum(marathon_preds.time_hrs) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(marathon_preds.time_hrs), 2)).encode(\"utf-8\")+b\"2f887ce8243f0144\").hexdigest() == \"4699ecdffc81394de4ea315eee053e08c7425f9c\", \"value of sum(marathon_preds.time_hrs) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(marathon_plot is None)).encode(\"utf-8\")+b\"01ddc350d9ac5194\").hexdigest() == \"5142b79321207f4303381c9fabe96d52ecf8f58d\", \"type of marathon_plot is None is not bool. marathon_plot is None should be a bool\"\n", - "assert sha1(str(marathon_plot is None).encode(\"utf-8\")+b\"01ddc350d9ac5194\").hexdigest() == \"3c060e968144ea9a9a6841bb5ca05258ac4a31e5\", \"boolean value of marathon_plot is None is not correct\"\n", + "assert sha1(str(type(marathon_plot is None)).encode(\"utf-8\")+b\"c933dd6bef9e3e46\").hexdigest() == \"f6c9e67bae503a8f00a87920335a5fef4064e0e6\", \"type of marathon_plot is None is not bool. marathon_plot is None should be a bool\"\n", + "assert sha1(str(marathon_plot is None).encode(\"utf-8\")+b\"c933dd6bef9e3e46\").hexdigest() == \"033cfd93416e1bda20b439f8e929e17b689e6941\", \"boolean value of marathon_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(len(marathon_plot.layer))).encode(\"utf-8\")+b\"a40b059b684476c8\").hexdigest() == \"35f75f08379e7889312379145f387a35f4ed8ef5\", \"type of len(marathon_plot.layer) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(marathon_plot.layer)).encode(\"utf-8\")+b\"a40b059b684476c8\").hexdigest() == \"da1f53d39e44c73c3acdd121444ff0fc2884597f\", \"value of len(marathon_plot.layer) is not correct\"\n", + "assert sha1(str(type(len(marathon_plot.layer))).encode(\"utf-8\")+b\"122f0545088ad69f\").hexdigest() == \"6a29b7906b3aadb419a5aa2250d2986f8875d484\", \"type of len(marathon_plot.layer) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(marathon_plot.layer)).encode(\"utf-8\")+b\"122f0545088ad69f\").hexdigest() == \"d082935f15ec87c142f6ffd2a36d3d541a347962\", \"value of len(marathon_plot.layer) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].mark)).encode(\"utf-8\")+b\"54c42d19a0502e45\").hexdigest() == \"236b09d4b08f93a16a99c7b275296a03f5c2b57f\", \"type of marathon_plot.layer[0].mark is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].mark).encode(\"utf-8\")+b\"54c42d19a0502e45\").hexdigest() == \"937d9ddb0cacfdce1ec234ef08aaaa5a9dcaef1e\", \"value of marathon_plot.layer[0].mark is not correct\"\n", + "assert sha1(str(type(marathon_plot.layer[0].mark)).encode(\"utf-8\")+b\"9a5b0211ae456091\").hexdigest() == \"e995f966a72aacc6377dcc0ac2afee83702fa2df\", \"type of marathon_plot.layer[0].mark is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].mark).encode(\"utf-8\")+b\"9a5b0211ae456091\").hexdigest() == \"82b20158d9dd76eda535abd9b7bd8022043559df\", \"value of marathon_plot.layer[0].mark is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[1].mark)).encode(\"utf-8\")+b\"e2b24ade04084c48\").hexdigest() == \"b45fcabcc0146b3d310e417a9ee36c6f3aad6411\", \"type of marathon_plot.layer[1].mark is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].mark).encode(\"utf-8\")+b\"e2b24ade04084c48\").hexdigest() == \"2cabfa70704a7c955b25aaaeebff6ff16adb669d\", \"value of marathon_plot.layer[1].mark is not correct\"\n", + "assert sha1(str(type(marathon_plot.layer[1].mark)).encode(\"utf-8\")+b\"b832743c95dd47ad\").hexdigest() == \"c3a5e1762c7437b7cc8b8d82ed7fc21422b6b7bc\", \"type of marathon_plot.layer[1].mark is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].mark).encode(\"utf-8\")+b\"b832743c95dd47ad\").hexdigest() == \"9c800164ae7dc998ee76c3b08e9e67989015032e\", \"value of marathon_plot.layer[1].mark is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"2473652af0c4b48b\").hexdigest() == \"39c521688f0003f26226fd4c801d82782f91f35f\", \"type of marathon_plot.layer[0].encoding.x['shorthand'] is not str. marathon_plot.layer[0].encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"2473652af0c4b48b\").hexdigest() == \"10e83f7787e91057388fd3918f1b436fceb911ef\", \"length of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"2473652af0c4b48b\").hexdigest() == \"a2aebfe013515bbea84889bcdb4597ae4329e2bb\", \"value of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand']).encode(\"utf-8\")+b\"2473652af0c4b48b\").hexdigest() == \"a2aebfe013515bbea84889bcdb4597ae4329e2bb\", \"correct string value of marathon_plot.layer[0].encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"bc87bc8fce4269e1\").hexdigest() == \"15c6158494b616c8c33beb325d72e1aecc181df3\", \"type of marathon_plot.layer[0].encoding.x['shorthand'] is not str. marathon_plot.layer[0].encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"bc87bc8fce4269e1\").hexdigest() == \"e61449a1816f89758e40667631a6ff5390c0d5cf\", \"length of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"bc87bc8fce4269e1\").hexdigest() == \"361c21950afb52ee5b9c3fc8976ff50ca553675d\", \"value of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand']).encode(\"utf-8\")+b\"bc87bc8fce4269e1\").hexdigest() == \"361c21950afb52ee5b9c3fc8976ff50ca553675d\", \"correct string value of marathon_plot.layer[0].encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"615dc22e964d0944\").hexdigest() == \"c81da728e4368292b0b5ac262a187656d915b95f\", \"type of marathon_plot.layer[0].encoding.y['shorthand'] is not str. marathon_plot.layer[0].encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"615dc22e964d0944\").hexdigest() == \"61642de5054c40a92c5b472acc9785fbd10d7fce\", \"length of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"615dc22e964d0944\").hexdigest() == \"941b2f7beb6ba89f0d19a56025af876febfd4a9c\", \"value of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand']).encode(\"utf-8\")+b\"615dc22e964d0944\").hexdigest() == \"941b2f7beb6ba89f0d19a56025af876febfd4a9c\", \"correct string value of marathon_plot.layer[0].encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"04cfd1e0485488c6\").hexdigest() == \"1d5859615b1d86ded34a49926531655dc86ba904\", \"type of marathon_plot.layer[0].encoding.y['shorthand'] is not str. marathon_plot.layer[0].encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"04cfd1e0485488c6\").hexdigest() == \"b1a814d142aafb934d4bbdbf60e722329aac754a\", \"length of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"04cfd1e0485488c6\").hexdigest() == \"36d0e5cf7afb46fc0a8ec475c2c59012a27896b1\", \"value of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand']).encode(\"utf-8\")+b\"04cfd1e0485488c6\").hexdigest() == \"36d0e5cf7afb46fc0a8ec475c2c59012a27896b1\", \"correct string value of marathon_plot.layer[0].encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"b7402b906acaa818\").hexdigest() == \"7877bb0608a08d870f00d6a959740a8c33439a19\", \"type of marathon_plot.layer[1].encoding.y['shorthand'] is not str. marathon_plot.layer[1].encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"b7402b906acaa818\").hexdigest() == \"6e4e398b6293788297d898bed9a6e2e70588c817\", \"length of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"b7402b906acaa818\").hexdigest() == \"cc9c46cce02ee9182514f5c78f3ac0f883d44903\", \"value of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand']).encode(\"utf-8\")+b\"b7402b906acaa818\").hexdigest() == \"cc9c46cce02ee9182514f5c78f3ac0f883d44903\", \"correct string value of marathon_plot.layer[1].encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"3dd1c29f155a6d3b\").hexdigest() == \"1d99cfe5e01ec77217226ee7efc938c6df1809af\", \"type of marathon_plot.layer[1].encoding.y['shorthand'] is not str. marathon_plot.layer[1].encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"3dd1c29f155a6d3b\").hexdigest() == \"361344f7502449a63357051e80c321b277644d12\", \"length of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"3dd1c29f155a6d3b\").hexdigest() == \"bce8d564745e60c4b36d16e6c2e3b3e9c052939c\", \"value of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand']).encode(\"utf-8\")+b\"3dd1c29f155a6d3b\").hexdigest() == \"bce8d564745e60c4b36d16e6c2e3b3e9c052939c\", \"correct string value of marathon_plot.layer[1].encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.x['title'], str))).encode(\"utf-8\")+b\"9939be46232e164d\").hexdigest() == \"fcd3236618d89403f17956c9dd4f63cdc868bacb\", \"type of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.x['title'], str)).encode(\"utf-8\")+b\"9939be46232e164d\").hexdigest() == \"71d879f7db58988c6ad3cc084ee621086547fa5e\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.x['title'], str))).encode(\"utf-8\")+b\"907e22588b011757\").hexdigest() == \"00dfd437276a762dcd76440caa4290f6cb7ced17\", \"type of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.x['title'], str)).encode(\"utf-8\")+b\"907e22588b011757\").hexdigest() == \"5201d06b3285a78ff85dd52bd0ccea973891b3a1\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.y['title'], str))).encode(\"utf-8\")+b\"75ce347ea6b35527\").hexdigest() == \"dfb7ff3151fd0a475fe02f730b50f3aa73b41678\", \"type of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.y['title'], str)).encode(\"utf-8\")+b\"75ce347ea6b35527\").hexdigest() == \"98b40c18d348e28d41b96a5b1801c4196fc73e9d\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.y['title'], str))).encode(\"utf-8\")+b\"5d1bbad601b1dac4\").hexdigest() == \"f92f01d1e72ab1b7aa5e7792983c507d3bf2cf0b\", \"type of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.y['title'], str)).encode(\"utf-8\")+b\"5d1bbad601b1dac4\").hexdigest() == \"877897f71db34e7441955010cd752e69c9938585\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1540,7 +1540,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "36f0301c91648f7d2a2a344cd70a4843", + "checksum": "0613c2432e06d8f825d43ed38797ead2", "grade": true, "grade_id": "cell-41031aad5e75b436", "locked": true, @@ -1552,26 +1552,26 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(test_preds is None)).encode(\"utf-8\")+b\"63f7897e3b3ac7ff\").hexdigest() == \"e9097f883e7529ebda9f7af131f9ac0fc577b835\", \"type of test_preds is None is not bool. test_preds is None should be a bool\"\n", - "assert sha1(str(test_preds is None).encode(\"utf-8\")+b\"63f7897e3b3ac7ff\").hexdigest() == \"7bd3dbb968228d19a8a253a6fb3aaa3991ffcdef\", \"boolean value of test_preds is None is not correct\"\n", + "assert sha1(str(type(test_preds is None)).encode(\"utf-8\")+b\"970a6d0791dd0d2f\").hexdigest() == \"d082dc6bb3b6c351dbf8fd07013c1c1eb8125f75\", \"type of test_preds is None is not bool. test_preds is None should be a bool\"\n", + "assert sha1(str(test_preds is None).encode(\"utf-8\")+b\"970a6d0791dd0d2f\").hexdigest() == \"9936351c1443c8708371d9a82a2772879b233c2b\", \"boolean value of test_preds is None is not correct\"\n", "\n", - "assert sha1(str(type(test_preds)).encode(\"utf-8\")+b\"79db1255e3c6e565\").hexdigest() == \"8fed1fea8f4845fc50629c05a2ec28f086cbbb46\", \"type of type(test_preds) is not correct\"\n", + "assert sha1(str(type(test_preds)).encode(\"utf-8\")+b\"77c10c4bfab138fc\").hexdigest() == \"f09b02bf5c057cbe968ea48a65b4cedf6a86cd70\", \"type of type(test_preds) is not correct\"\n", "\n", - "assert sha1(str(type(test_preds.shape)).encode(\"utf-8\")+b\"e803f196aec9370d\").hexdigest() == \"946a639599fd1d15f4e5ea8755f264d785d4cac1\", \"type of test_preds.shape is not tuple. test_preds.shape should be a tuple\"\n", - "assert sha1(str(len(test_preds.shape)).encode(\"utf-8\")+b\"e803f196aec9370d\").hexdigest() == \"401aedda8a3be25d748334baec0a63f24cc9df68\", \"length of test_preds.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, test_preds.shape))).encode(\"utf-8\")+b\"e803f196aec9370d\").hexdigest() == \"dbb37d47b3fc5417c820b9958cfabd1af6f3e06a\", \"values of test_preds.shape are not correct\"\n", - "assert sha1(str(test_preds.shape).encode(\"utf-8\")+b\"e803f196aec9370d\").hexdigest() == \"db98cbdc5582d26ccb07146f16f36b4bccd09f4a\", \"order of elements of test_preds.shape is not correct\"\n", + "assert sha1(str(type(test_preds.shape)).encode(\"utf-8\")+b\"f886b8c00ca10408\").hexdigest() == \"d455471fb8e0ecfdebb4700009b52de7c2471150\", \"type of test_preds.shape is not tuple. test_preds.shape should be a tuple\"\n", + "assert sha1(str(len(test_preds.shape)).encode(\"utf-8\")+b\"f886b8c00ca10408\").hexdigest() == \"31567839fc6b2a2e3de1732f4402534d2fd327f7\", \"length of test_preds.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, test_preds.shape))).encode(\"utf-8\")+b\"f886b8c00ca10408\").hexdigest() == \"c9ccdf7cd5d9647b983b78158f23955f5aaff40e\", \"values of test_preds.shape are not correct\"\n", + "assert sha1(str(test_preds.shape).encode(\"utf-8\")+b\"f886b8c00ca10408\").hexdigest() == \"1905ff4843d4c4bd3c899bdbd68a99f3220e4adb\", \"order of elements of test_preds.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(test_preds.predictions))).encode(\"utf-8\")+b\"e1c0bed521388017\").hexdigest() == \"300e44dbad3b006e755f698b133b3da7eed2617f\", \"type of sum(test_preds.predictions) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(test_preds.predictions), 2)).encode(\"utf-8\")+b\"e1c0bed521388017\").hexdigest() == \"fbb12393491fc142f454876dee35f30d71f831b1\", \"value of sum(test_preds.predictions) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(test_preds.predictions))).encode(\"utf-8\")+b\"1c03c711fa3889b9\").hexdigest() == \"0c7871d575b52695d4ddf25cb4f074d1dacaf611\", \"type of sum(test_preds.predictions) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(test_preds.predictions), 2)).encode(\"utf-8\")+b\"1c03c711fa3889b9\").hexdigest() == \"f49b45a86b67e20607c3e2343595ded456e0d1a4\", \"value of sum(test_preds.predictions) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(lm_rmspe is None)).encode(\"utf-8\")+b\"95dfb4004c9758e2\").hexdigest() == \"23ba70ecc08f22e47f8b1eaacd65ae901ae9ef35\", \"type of lm_rmspe is None is not bool. lm_rmspe is None should be a bool\"\n", - "assert sha1(str(lm_rmspe is None).encode(\"utf-8\")+b\"95dfb4004c9758e2\").hexdigest() == \"ff989a606904445c051f636bc945e9668d0e74c7\", \"boolean value of lm_rmspe is None is not correct\"\n", + "assert sha1(str(type(lm_rmspe is None)).encode(\"utf-8\")+b\"a2e898cc1bce110c\").hexdigest() == \"7a93fc7eb168c869b0bafe99b55250eed27d3702\", \"type of lm_rmspe is None is not bool. lm_rmspe is None should be a bool\"\n", + "assert sha1(str(lm_rmspe is None).encode(\"utf-8\")+b\"a2e898cc1bce110c\").hexdigest() == \"75c09ba80cd3cf0fa3094eb9058bd8bb723ba885\", \"boolean value of lm_rmspe is None is not correct\"\n", "\n", - "assert sha1(str(type(lm_rmspe)).encode(\"utf-8\")+b\"326295698554ad74\").hexdigest() == \"f258d64a03b6afdbccc587ebd0473de215a430d3\", \"type of type(lm_rmspe) is not correct\"\n", + "assert sha1(str(type(lm_rmspe)).encode(\"utf-8\")+b\"7d725f74b8b2b5cf\").hexdigest() == \"5b4084d87c918bbe232011854998675a2ef56fdf\", \"type of type(lm_rmspe) is not correct\"\n", "\n", - "assert sha1(str(type(round(lm_rmspe, 1))).encode(\"utf-8\")+b\"12ab528030b3e5fb\").hexdigest() == \"a696a3ff1fa7bb831530b340f78cffcb52794fed\", \"type of round(lm_rmspe, 1) is not correct\"\n", - "assert sha1(str(round(lm_rmspe, 1)).encode(\"utf-8\")+b\"12ab528030b3e5fb\").hexdigest() == \"96942441706481487e03b4d1288530e60d1da856\", \"value of round(lm_rmspe, 1) is not correct\"\n", + "assert sha1(str(type(round(lm_rmspe, 1))).encode(\"utf-8\")+b\"d5ab8bf9e1088dbb\").hexdigest() == \"ab2a6e52c5c1bebb1b7273e523781c44226c4bd1\", \"type of round(lm_rmspe, 1) is not correct\"\n", + "assert sha1(str(round(lm_rmspe, 1)).encode(\"utf-8\")+b\"d5ab8bf9e1088dbb\").hexdigest() == \"5faaa722fa0a4ec49a197833a5880882a47ed43a\", \"value of round(lm_rmspe, 1) is not correct\"\n", "\n", "print('Success!')" ] @@ -1634,7 +1634,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c3cefebde23a078b41e831950a62b91c", + "checksum": "926b501f14eed538e1d5c75f5332895f", "grade": true, "grade_id": "cell-218d130332eebf2a", "locked": true, @@ -1647,38 +1647,38 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(marathon_plot is None)).encode(\"utf-8\")+b\"544ca4cf40d5c618\").hexdigest() == \"9a8cd07603dd6b139f7ad8902c8e7f2654556f5c\", \"type of marathon_plot is None is not bool. marathon_plot is None should be a bool\"\n", - "assert sha1(str(marathon_plot is None).encode(\"utf-8\")+b\"544ca4cf40d5c618\").hexdigest() == \"08da11d10eee749aae85e1eea883e9b9f819c23c\", \"boolean value of marathon_plot is None is not correct\"\n", + "assert sha1(str(type(marathon_plot is None)).encode(\"utf-8\")+b\"7b4fc87eb3be904c\").hexdigest() == \"2b7703caa3ab95b81333a41911035a784dc17943\", \"type of marathon_plot is None is not bool. marathon_plot is None should be a bool\"\n", + "assert sha1(str(marathon_plot is None).encode(\"utf-8\")+b\"7b4fc87eb3be904c\").hexdigest() == \"af52b893d32620ff50ca992e6a581179dc9c700c\", \"boolean value of marathon_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(len(marathon_plot.layer))).encode(\"utf-8\")+b\"1036e5558889de63\").hexdigest() == \"cd398c187bf82730ddbdf04a1739d5d3e2bebdf1\", \"type of len(marathon_plot.layer) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(len(marathon_plot.layer)).encode(\"utf-8\")+b\"1036e5558889de63\").hexdigest() == \"afca6566224eee3f02609f2511992aa92897fb41\", \"value of len(marathon_plot.layer) is not correct\"\n", + "assert sha1(str(type(len(marathon_plot.layer))).encode(\"utf-8\")+b\"674889921a64ef3e\").hexdigest() == \"dfe617248cd03d64a7a657a7ae957e7c7b397282\", \"type of len(marathon_plot.layer) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(len(marathon_plot.layer)).encode(\"utf-8\")+b\"674889921a64ef3e\").hexdigest() == \"ec2bb5b0331bf7f946842e737308c03b87f570c9\", \"value of len(marathon_plot.layer) is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].mark)).encode(\"utf-8\")+b\"6f125695f5dde0c4\").hexdigest() == \"416b321a8f064dd33462b362d6e9c4ab448a5f06\", \"type of marathon_plot.layer[0].mark is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].mark).encode(\"utf-8\")+b\"6f125695f5dde0c4\").hexdigest() == \"305e49ee490d5dbcff446630447ddffe61fcf485\", \"value of marathon_plot.layer[0].mark is not correct\"\n", + "assert sha1(str(type(marathon_plot.layer[0].mark)).encode(\"utf-8\")+b\"79e3a1b47ddf5aac\").hexdigest() == \"638984548e5a0d6c35401cc7b372c1786083e28e\", \"type of marathon_plot.layer[0].mark is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].mark).encode(\"utf-8\")+b\"79e3a1b47ddf5aac\").hexdigest() == \"20c921a35d00b60c23fe9857ce30af38e8dc6be2\", \"value of marathon_plot.layer[0].mark is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[1].mark)).encode(\"utf-8\")+b\"e127da6f5d9b6966\").hexdigest() == \"c632c947c63b190452701640df4eb3651ed35583\", \"type of marathon_plot.layer[1].mark is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].mark).encode(\"utf-8\")+b\"e127da6f5d9b6966\").hexdigest() == \"9683b29abb434e72133eaf786bd05781ba2712e9\", \"value of marathon_plot.layer[1].mark is not correct\"\n", + "assert sha1(str(type(marathon_plot.layer[1].mark)).encode(\"utf-8\")+b\"b72b81237bd1c064\").hexdigest() == \"08883f8a033c59e3a9ea8193dc814a930c33fe46\", \"type of marathon_plot.layer[1].mark is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].mark).encode(\"utf-8\")+b\"b72b81237bd1c064\").hexdigest() == \"29d58a65c0e7398c6d553959ae5904d36584caad\", \"value of marathon_plot.layer[1].mark is not correct\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"76d9d1502b18cdc6\").hexdigest() == \"6672609dd00193b5861bab6afec1d454e692affb\", \"type of marathon_plot.layer[0].encoding.x['shorthand'] is not str. marathon_plot.layer[0].encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"76d9d1502b18cdc6\").hexdigest() == \"2f49df704f8aa8d290ea21d15b63c1ed722acee6\", \"length of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"76d9d1502b18cdc6\").hexdigest() == \"70639bc5fd444a0357651a532ec2274252646434\", \"value of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand']).encode(\"utf-8\")+b\"76d9d1502b18cdc6\").hexdigest() == \"70639bc5fd444a0357651a532ec2274252646434\", \"correct string value of marathon_plot.layer[0].encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"a78a3aca125e53ff\").hexdigest() == \"d473627eb902b51249d7db28e9fa6f53e3f47281\", \"type of marathon_plot.layer[0].encoding.x['shorthand'] is not str. marathon_plot.layer[0].encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[0].encoding.x['shorthand'])).encode(\"utf-8\")+b\"a78a3aca125e53ff\").hexdigest() == \"8b9aa301c3e86bc0fcd6411440ea70ccbcdca466\", \"length of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"a78a3aca125e53ff\").hexdigest() == \"9c7007e5bd0b57884479071c078b321973dd4d2d\", \"value of marathon_plot.layer[0].encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.x['shorthand']).encode(\"utf-8\")+b\"a78a3aca125e53ff\").hexdigest() == \"9c7007e5bd0b57884479071c078b321973dd4d2d\", \"correct string value of marathon_plot.layer[0].encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"1b164596eada0e27\").hexdigest() == \"8082d7dc331cb048042006b51b6d45996daa513b\", \"type of marathon_plot.layer[0].encoding.y['shorthand'] is not str. marathon_plot.layer[0].encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"1b164596eada0e27\").hexdigest() == \"3800d354058bbf23c4645dac0b88ca128c134edb\", \"length of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"1b164596eada0e27\").hexdigest() == \"1baccd4f60d0acdbc66b867e7900f29f51f141e6\", \"value of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand']).encode(\"utf-8\")+b\"1b164596eada0e27\").hexdigest() == \"1baccd4f60d0acdbc66b867e7900f29f51f141e6\", \"correct string value of marathon_plot.layer[0].encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"93f524138c5867fc\").hexdigest() == \"aac5c6394460458767533045c125acae58691899\", \"type of marathon_plot.layer[0].encoding.y['shorthand'] is not str. marathon_plot.layer[0].encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[0].encoding.y['shorthand'])).encode(\"utf-8\")+b\"93f524138c5867fc\").hexdigest() == \"5b33d8ae6593eefe90042ff4614e0f729f632880\", \"length of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"93f524138c5867fc\").hexdigest() == \"657b825db79f06bed5c71bd963c9b53fa47f0663\", \"value of marathon_plot.layer[0].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[0].encoding.y['shorthand']).encode(\"utf-8\")+b\"93f524138c5867fc\").hexdigest() == \"657b825db79f06bed5c71bd963c9b53fa47f0663\", \"correct string value of marathon_plot.layer[0].encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"f6e8cdefe6869e32\").hexdigest() == \"ff43e5d69c61f9f8fbb3a0eff82d3884176276ff\", \"type of marathon_plot.layer[1].encoding.y['shorthand'] is not str. marathon_plot.layer[1].encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"f6e8cdefe6869e32\").hexdigest() == \"9954b236f9b18c3336c730205d7bb2216ae2360e\", \"length of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"f6e8cdefe6869e32\").hexdigest() == \"317ada07ca168a17062d90e7ea0ba1f389b97072\", \"value of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand']).encode(\"utf-8\")+b\"f6e8cdefe6869e32\").hexdigest() == \"317ada07ca168a17062d90e7ea0ba1f389b97072\", \"correct string value of marathon_plot.layer[1].encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"b562352b67a5652e\").hexdigest() == \"82fce814664e0f8e827dd3eac312750f0231fbc9\", \"type of marathon_plot.layer[1].encoding.y['shorthand'] is not str. marathon_plot.layer[1].encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(marathon_plot.layer[1].encoding.y['shorthand'])).encode(\"utf-8\")+b\"b562352b67a5652e\").hexdigest() == \"33adb0ca4b1182915b84ad9011d08ce14091fc81\", \"length of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"b562352b67a5652e\").hexdigest() == \"4c3d21eee874a3f4d8f1addd4b4cd48fc62875d8\", \"value of marathon_plot.layer[1].encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(marathon_plot.layer[1].encoding.y['shorthand']).encode(\"utf-8\")+b\"b562352b67a5652e\").hexdigest() == \"4c3d21eee874a3f4d8f1addd4b4cd48fc62875d8\", \"correct string value of marathon_plot.layer[1].encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.x['title'], str))).encode(\"utf-8\")+b\"2cdf73963ffe7841\").hexdigest() == \"dbf926b4bae2e5dc7768477b126d15e999bcd43b\", \"type of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.x['title'], str)).encode(\"utf-8\")+b\"2cdf73963ffe7841\").hexdigest() == \"5c00baa1e8d703a79e9e3d6ad78808376102d57c\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.x['title'], str))).encode(\"utf-8\")+b\"a7472b56b8eebfd9\").hexdigest() == \"976f63cc86308dda5a48ccc9344cc195220fb922\", \"type of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.x['title'], str)).encode(\"utf-8\")+b\"a7472b56b8eebfd9\").hexdigest() == \"94f9a9962985dd837e7baad36a68e50a426c6ac3\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.y['title'], str))).encode(\"utf-8\")+b\"510c245e6939e48f\").hexdigest() == \"231fc4d8297232bf6941b80a59594b6284c6b895\", \"type of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.y['title'], str)).encode(\"utf-8\")+b\"510c245e6939e48f\").hexdigest() == \"9bf159a474d9ff7cfc3fdbbf1ebd22d9a6798ad6\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(marathon_plot.layer[0].encoding.y['title'], str))).encode(\"utf-8\")+b\"dfee7d3f500c89d9\").hexdigest() == \"4dff929ab95da1e884afbeca9ddc3e30e1d3c231\", \"type of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not bool. isinstance(marathon_plot.layer[0].encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(marathon_plot.layer[0].encoding.y['title'], str)).encode(\"utf-8\")+b\"dfee7d3f500c89d9\").hexdigest() == \"2d2907d992d3d65d418a88e050f7fdc9247d9ddb\", \"boolean value of isinstance(marathon_plot.layer[0].encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1743,7 +1743,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c7f482da93eb7e4921595691074641c6", + "checksum": "7040f926702ffb32d05f2d73d2d016e5", "grade": true, "grade_id": "cell-c180c6230f13243c", "locked": true, @@ -1755,10 +1755,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_6)).encode(\"utf-8\")+b\"e9f2e968d99e8496\").hexdigest() == \"9fc6338804c59abcc9881c09eea0b04cd5908f16\", \"type of answer3_6 is not str. answer3_6 should be an str\"\n", - "assert sha1(str(len(answer3_6)).encode(\"utf-8\")+b\"e9f2e968d99e8496\").hexdigest() == \"e1b3a2e56450b7baada723ff7dd9ab9fedf37b21\", \"length of answer3_6 is not correct\"\n", - "assert sha1(str(answer3_6.lower()).encode(\"utf-8\")+b\"e9f2e968d99e8496\").hexdigest() == \"e1b15a3b9d4f926f5eb059e4f55d9a59aa765d92\", \"value of answer3_6 is not correct\"\n", - "assert sha1(str(answer3_6).encode(\"utf-8\")+b\"e9f2e968d99e8496\").hexdigest() == \"766efea05b3dc9fb01663d406c1a27fd107a2c5b\", \"correct string value of answer3_6 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_6)).encode(\"utf-8\")+b\"81d992813dac03f2\").hexdigest() == \"c23359ee0b75c465988ee4b93a3c477c4d31b362\", \"type of answer3_6 is not str. answer3_6 should be an str\"\n", + "assert sha1(str(len(answer3_6)).encode(\"utf-8\")+b\"81d992813dac03f2\").hexdigest() == \"48091e934236a4213861cbdd646382630ff770b6\", \"length of answer3_6 is not correct\"\n", + "assert sha1(str(answer3_6.lower()).encode(\"utf-8\")+b\"81d992813dac03f2\").hexdigest() == \"cdc0039f3646cd9805f1ec2052851b0535865724\", \"value of answer3_6 is not correct\"\n", + "assert sha1(str(answer3_6).encode(\"utf-8\")+b\"81d992813dac03f2\").hexdigest() == \"1dd232c97c261c1c05a36d0640685d4e8d6d0869\", \"correct string value of answer3_6 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1823,7 +1823,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5159c16a4be65dae8821e0296d879a5a", + "checksum": "f74f789e8c764c15eb16b95c9dea2a7c", "grade": true, "grade_id": "cell-9f902420da757d0a", "locked": true, @@ -1835,10 +1835,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_7)).encode(\"utf-8\")+b\"2b64819421812686\").hexdigest() == \"d48ff2143037f7a2d4b0d1bb35ed73f38910bb33\", \"type of answer3_7 is not str. answer3_7 should be an str\"\n", - "assert sha1(str(len(answer3_7)).encode(\"utf-8\")+b\"2b64819421812686\").hexdigest() == \"76b77bc04610e77f81649b66ea0783c49f1a1e6e\", \"length of answer3_7 is not correct\"\n", - "assert sha1(str(answer3_7.lower()).encode(\"utf-8\")+b\"2b64819421812686\").hexdigest() == \"88e099e9ff63e833d9ad8edac7cd7a3f76de293f\", \"value of answer3_7 is not correct\"\n", - "assert sha1(str(answer3_7).encode(\"utf-8\")+b\"2b64819421812686\").hexdigest() == \"3a9289f987ace1c4aa97b1dc27794077785e644d\", \"correct string value of answer3_7 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_7)).encode(\"utf-8\")+b\"d4f6e6c0e617bdbb\").hexdigest() == \"d77ea8d481027a3a9be489bc4168b57b9eba3aa0\", \"type of answer3_7 is not str. answer3_7 should be an str\"\n", + "assert sha1(str(len(answer3_7)).encode(\"utf-8\")+b\"d4f6e6c0e617bdbb\").hexdigest() == \"af4938717b75e1669b1161e07d395a3b27cbe0a2\", \"length of answer3_7 is not correct\"\n", + "assert sha1(str(answer3_7.lower()).encode(\"utf-8\")+b\"d4f6e6c0e617bdbb\").hexdigest() == \"1c81345a7245bd44e77393aaab1387affd6f99fe\", \"value of answer3_7 is not correct\"\n", + "assert sha1(str(answer3_7).encode(\"utf-8\")+b\"d4f6e6c0e617bdbb\").hexdigest() == \"1af820514778ec156e0044e80bba6c578eb01ae2\", \"correct string value of answer3_7 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1950,7 +1950,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "57f487bf5c0f6990df7eb81e27e1b1d3", + "checksum": "e7a1497d03e17bcc895f50230478ceac", "grade": true, "grade_id": "cell-5884a2fd9625b2e8", "locked": true, @@ -1963,10 +1963,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_8_1)).encode(\"utf-8\")+b\"b0c2f307e3f9259f\").hexdigest() == \"188f93b32fda167e9006e910913665b904edea32\", \"type of answer3_8_1 is not str. answer3_8_1 should be an str\"\n", - "assert sha1(str(len(answer3_8_1)).encode(\"utf-8\")+b\"b0c2f307e3f9259f\").hexdigest() == \"8700633e9e845909caed86f54952d223d8136083\", \"length of answer3_8_1 is not correct\"\n", - "assert sha1(str(answer3_8_1.lower()).encode(\"utf-8\")+b\"b0c2f307e3f9259f\").hexdigest() == \"fb1867242139e57c5088aa48be752417a4883a81\", \"value of answer3_8_1 is not correct\"\n", - "assert sha1(str(answer3_8_1).encode(\"utf-8\")+b\"b0c2f307e3f9259f\").hexdigest() == \"6830ecbffe4a78d147c963b4699ee668afb5ea20\", \"correct string value of answer3_8_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_8_1)).encode(\"utf-8\")+b\"66fc3665b3692f1c\").hexdigest() == \"ed48d5c4373de01f4cec88b4c1e3dfadfce2ac5a\", \"type of answer3_8_1 is not str. answer3_8_1 should be an str\"\n", + "assert sha1(str(len(answer3_8_1)).encode(\"utf-8\")+b\"66fc3665b3692f1c\").hexdigest() == \"7015114879a0a54e067934426c86a09bb37be3c5\", \"length of answer3_8_1 is not correct\"\n", + "assert sha1(str(answer3_8_1.lower()).encode(\"utf-8\")+b\"66fc3665b3692f1c\").hexdigest() == \"206d800397494ca51ed78e47e540f346387458f7\", \"value of answer3_8_1 is not correct\"\n", + "assert sha1(str(answer3_8_1).encode(\"utf-8\")+b\"66fc3665b3692f1c\").hexdigest() == \"de907d177b66e88539bd7515c6036f2a62703719\", \"correct string value of answer3_8_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_version_control/py_worksheet_version_control.ipynb b/py_worksheet_version_control/py_worksheet_version_control.ipynb index e09c0c5..c08d3a6 100644 --- a/py_worksheet_version_control/py_worksheet_version_control.ipynb +++ b/py_worksheet_version_control/py_worksheet_version_control.ipynb @@ -7,7 +7,7 @@ "editable": false, "nbgrader": { "cell_type": "markdown", - "checksum": "aa94891de98f714680f05a18fb82dd83", + "checksum": "246868437e8ad32a5b11a41e0c555574", "grade": false, "grade_id": "cell-9fc931a1b92d396c", "locked": true, @@ -34,7 +34,7 @@ "* Communicate with collaborators using issues\n", "* Use best practices when collaborating on a project with others\n", "\n", - "This worksheet covers parts of [Chapter 12](https://python.datasciencebook.ca/version-control.html) of the online textbook. You should read this chapter before attempting the worksheet.\n" + "This worksheet covers parts of [Chapter 12](https://python.datasciencebook.ca/version-control.html) of the online textbook. You should read this chapter before attempting the worksheet." ] }, { @@ -118,7 +118,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "a7b34ecb8fe2400364a9570089a12045", + "checksum": "dccf75242f8aa3048009dc598de0b84d", "grade": true, "grade_id": "cell-62f0d28a4d321e00", "locked": true, @@ -130,10 +130,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"398da584ee5e21d1\").hexdigest() == \"11e4c24287bfefe5ab059aa602c56f6f54696cde\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", - "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"398da584ee5e21d1\").hexdigest() == \"b717dd6dc7bdd023a7e9be9997b17edf4143dab2\", \"length of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"398da584ee5e21d1\").hexdigest() == \"46c08ed6114f266b591818f2aaf8baadf0082b20\", \"value of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"398da584ee5e21d1\").hexdigest() == \"4fc1ce98adafe7398515a8cff2cc005065df101f\", \"correct string value of answer1_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"e6065b93df163922\").hexdigest() == \"e272db7f973c560f51ec5a67526812b46690dcc8\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", + "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"e6065b93df163922\").hexdigest() == \"afab2550a4717bc1ace5a0d1861f318cb9e92935\", \"length of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"e6065b93df163922\").hexdigest() == \"7b7775327500fb22d03e2d4cf700b25caeac8cc6\", \"value of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"e6065b93df163922\").hexdigest() == \"33992e507e5bbbb27b750ce66cdac30c66dc4ea2\", \"correct string value of answer1_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -191,7 +191,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "416c6319be42e96d97229f6409fbe1ff", + "checksum": "b69e4e5379a9cfb39ec059f9e04b8d34", "grade": true, "grade_id": "cell-decda128ce0061b5", "locked": true, @@ -203,8 +203,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"9a10b35867588d4d\").hexdigest() == \"3c40317dc4b74fce459c5e2f9cd2e11fabcc8897\", \"type of answer1_2 is not bool. answer1_2 should be a bool\"\n", - "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"9a10b35867588d4d\").hexdigest() == \"08e8b1c5910018b83f73389ca4568d1e4c08817c\", \"boolean value of answer1_2 is not correct\"\n", + "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"10c91b0df0aed46d\").hexdigest() == \"6cb508ba87af3b0bc2acc8f3b4054711c2d30d70\", \"type of answer1_2 is not bool. answer1_2 should be a bool\"\n", + "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"10c91b0df0aed46d\").hexdigest() == \"0ea0089fe1a84ad17dfcde6d0372aea1456746dd\", \"boolean value of answer1_2 is not correct\"\n", "\n", "print('Success!')" ] @@ -303,7 +303,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f709894f6c3f987a85b258a1d5a40d29", + "checksum": "0d457c000993f76a1fbd8d8d9d77dcad", "grade": true, "grade_id": "cell-bcb67971fe82e848", "locked": true, @@ -315,10 +315,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"da866d7bf00392a9\").hexdigest() == \"a483c51d7218ba551461533e79603f96a81c46a0\", \"type of answer2_1 is not str. answer2_1 should be an str\"\n", - "assert sha1(str(len(answer2_1)).encode(\"utf-8\")+b\"da866d7bf00392a9\").hexdigest() == \"b77e1fa1c0eaa0a247494dd86ba0a8f568c847f2\", \"length of answer2_1 is not correct\"\n", - "assert sha1(str(answer2_1.lower()).encode(\"utf-8\")+b\"da866d7bf00392a9\").hexdigest() == \"aa3d02e3c43e93a3b153acc3a4c9921024cd7b1b\", \"value of answer2_1 is not correct\"\n", - "assert sha1(str(answer2_1).encode(\"utf-8\")+b\"da866d7bf00392a9\").hexdigest() == \"b162bfd82ae1de6e369e802c503f3a8f09acd844\", \"correct string value of answer2_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"a2d59828106c2056\").hexdigest() == \"f17b8efedde85463fd83cfd11e66156b8e7ecbfe\", \"type of answer2_1 is not str. answer2_1 should be an str\"\n", + "assert sha1(str(len(answer2_1)).encode(\"utf-8\")+b\"a2d59828106c2056\").hexdigest() == \"ce443c826a8de2452f351422f583fd67ab4c407b\", \"length of answer2_1 is not correct\"\n", + "assert sha1(str(answer2_1.lower()).encode(\"utf-8\")+b\"a2d59828106c2056\").hexdigest() == \"f96a8b748e3984c69b2df0d831bba5e25ce1db2f\", \"value of answer2_1 is not correct\"\n", + "assert sha1(str(answer2_1).encode(\"utf-8\")+b\"a2d59828106c2056\").hexdigest() == \"5bb4b87729d72b32b6005f29ec2439cb5b7f1556\", \"correct string value of answer2_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -330,7 +330,7 @@ "editable": false, "nbgrader": { "cell_type": "markdown", - "checksum": "b98e3a64d14f0ec16ac45fb15f187a73", + "checksum": "dcb9ac16f3a4baeea59d0a0a61c03d4d", "grade": false, "grade_id": "cell-bee24c9a528da438", "locked": true, @@ -343,7 +343,7 @@ "## 3. Creating and editing files on GitHub\n", "\n", "1. Edit the `README.md` file in your `toy_ds_project` repository on GitHub.com using the pen tool. Write \"project creation date:\" and list today's date. \n", - "2. Commit this change directly to the main branch and write the commit message \"added creation date\". **This task corresponds to [this step](https://datasciencebook.ca/Getting-started-with-version-control.html#editing-files-on-github-with-the-pen-tool) in the textbook.**\n", + "2. Commit this change directly to the main branch and write the commit message \"added creation date\". **This task corresponds to [this step](https://python.datasciencebook.ca/version-control.html#editing-files-on-github-with-the-pen-tool) in the textbook.**\n", "3. Next, use the pen tool again to edit the `README.md` file. Write \"author\" and list your name as the author. Commit this change and use the commit message \"added project author\".\n", "4. Explore the commit history of your project by clicking on the link that looks like this: \n", "\n", @@ -405,7 +405,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "96422158a7940c97baab1aa6393ff361", + "checksum": "0b585c104340cb00369eef38932b8a77", "grade": true, "grade_id": "cell-0a781125473dc3d8", "locked": true, @@ -417,8 +417,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_1)).encode(\"utf-8\")+b\"94135b8fceb8c408\").hexdigest() == \"cb1854da44430b4f135a07ca39258676aa78576b\", \"type of answer3_1 is not bool. answer3_1 should be a bool\"\n", - "assert sha1(str(answer3_1).encode(\"utf-8\")+b\"94135b8fceb8c408\").hexdigest() == \"9b5a99a4dcc1d11a87388f9e4ccb16821cc5c69e\", \"boolean value of answer3_1 is not correct\"\n", + "assert sha1(str(type(answer3_1)).encode(\"utf-8\")+b\"ba99e0ac6500f14c\").hexdigest() == \"89b13c836775b04b68c1680d043eceb96582b64f\", \"type of answer3_1 is not bool. answer3_1 should be a bool\"\n", + "assert sha1(str(answer3_1).encode(\"utf-8\")+b\"ba99e0ac6500f14c\").hexdigest() == \"710c3e06d237a5c1899c5c98b9496b9f8b4cb3ec\", \"boolean value of answer3_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -430,7 +430,7 @@ "editable": false, "nbgrader": { "cell_type": "markdown", - "checksum": "9f0a0ac747db41b5fc3b2abce9c25a61", + "checksum": "550e1e5bd3dcc3028cce02173fe582f2", "grade": false, "grade_id": "cell-97539987da5e6f2a", "locked": true, @@ -444,7 +444,6 @@ "\n", "For our data science project, we need to put a copy of our repository somewhere we can run and test the code we write (otherwise, we won't know that our code works!!!). We can use the course JupyterHub for this!\n", "\n", - "#### Clone GitHub repository to the course JupyterHub:\n", "Clone a copy of this GitHub repository to the course JupyterHub using the Jupyter Git extension. **This task corresponds to [this step](https://python.datasciencebook.ca/version-control.html#cloning-a-repository-using-jupyter) in the textbook.**\n" ] }, @@ -503,7 +502,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "abd49f62a2ddc5092f9504b1d761f491", + "checksum": "ca7d6fb882afefdc8c80b2fa72640d4c", "grade": true, "grade_id": "cell-f4e891dadfecbbf6", "locked": true, @@ -516,8 +515,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer4_1)).encode(\"utf-8\")+b\"abdc0393a74cbfed\").hexdigest() == \"9f9fbb93b6cb33bc85448728b1f361726e666aa5\", \"type of answer4_1 is not bool. answer4_1 should be a bool\"\n", - "assert sha1(str(answer4_1).encode(\"utf-8\")+b\"abdc0393a74cbfed\").hexdigest() == \"29add53a2e8b999484a90c60aaeb7532d7c501c9\", \"boolean value of answer4_1 is not correct\"\n", + "assert sha1(str(type(answer4_1)).encode(\"utf-8\")+b\"7786969e2866751e\").hexdigest() == \"1362e2445866d20e39263cbac9fdc989ed5a4845\", \"type of answer4_1 is not bool. answer4_1 should be a bool\"\n", + "assert sha1(str(answer4_1).encode(\"utf-8\")+b\"7786969e2866751e\").hexdigest() == \"18c54a3763c25886370ee74fc23367753c3956a0\", \"boolean value of answer4_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -701,7 +700,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2da52edd802a4200e88bd8432837ed59", + "checksum": "3321929783d553488b945f70763c117d", "grade": true, "grade_id": "cell-4df7797ab4b028cf", "locked": true, @@ -714,10 +713,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer6_1)).encode(\"utf-8\")+b\"fd6b9e20cb45ad46\").hexdigest() == \"e1d4ceebb49be8ab86859e0dc89ec2174459ab47\", \"type of answer6_1 is not str. answer6_1 should be an str\"\n", - "assert sha1(str(len(answer6_1)).encode(\"utf-8\")+b\"fd6b9e20cb45ad46\").hexdigest() == \"e44cdcea301a5301b1699729dbbbb25da10ade42\", \"length of answer6_1 is not correct\"\n", - "assert sha1(str(answer6_1.lower()).encode(\"utf-8\")+b\"fd6b9e20cb45ad46\").hexdigest() == \"f1b9544e121af724a484c17323be827340ca4b71\", \"value of answer6_1 is not correct\"\n", - "assert sha1(str(answer6_1).encode(\"utf-8\")+b\"fd6b9e20cb45ad46\").hexdigest() == \"f94b7f752871246b502709f58766f5f6a60f7313\", \"correct string value of answer6_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer6_1)).encode(\"utf-8\")+b\"82d81074c0157707\").hexdigest() == \"4c2c9a3af9b3aa9c1b31351cd854e4a23c2ae6c6\", \"type of answer6_1 is not str. answer6_1 should be an str\"\n", + "assert sha1(str(len(answer6_1)).encode(\"utf-8\")+b\"82d81074c0157707\").hexdigest() == \"1b55f48e31b3707c6399def901a31febdc677537\", \"length of answer6_1 is not correct\"\n", + "assert sha1(str(answer6_1.lower()).encode(\"utf-8\")+b\"82d81074c0157707\").hexdigest() == \"5fc5b9d566c2b9b364d9accca5a63d1718ef5a4a\", \"value of answer6_1 is not correct\"\n", + "assert sha1(str(answer6_1).encode(\"utf-8\")+b\"82d81074c0157707\").hexdigest() == \"dd3c28cdf794f9cdf34d432903eab16f788d5817\", \"correct string value of answer6_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -729,7 +728,7 @@ "editable": false, "nbgrader": { "cell_type": "markdown", - "checksum": "83305b97c52f474246e7dbdb3341f75c", + "checksum": "d3ae2a4b9c45dc63209e0ba303f618e7", "grade": false, "grade_id": "cell-4e608fec626c6457", "locked": true, @@ -741,7 +740,7 @@ "source": [ "## 7. Making the commit \n", "\n", - "The next step is to **commit** our changes to our local Git repository. You can use the Jupyter Git extension to do this now. **This task corresponds to [this step](https://datasciencebook.ca/Getting-started-with-version-control.html#making-the-commit) in the textbook.**" + "The next step is to **commit** our changes to our local Git repository. You can use the Jupyter Git extension to do this now. **This task corresponds to [this step](https://python.datasciencebook.ca/version-control.html#making-the-commit) in the textbook.**" ] }, { @@ -799,7 +798,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bee48a4d642f530fae2d308ef695c97b", + "checksum": "3f70ca538eee34b5ec75ede7ed5ba6ee", "grade": true, "grade_id": "cell-a4297f9a9b8fe5a9", "locked": true, @@ -812,8 +811,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer7_1)).encode(\"utf-8\")+b\"0edda0f4b18aac5b\").hexdigest() == \"63a7d020f048a72ab59dcde97fdf4667ea9a0470\", \"type of answer7_1 is not bool. answer7_1 should be a bool\"\n", - "assert sha1(str(answer7_1).encode(\"utf-8\")+b\"0edda0f4b18aac5b\").hexdigest() == \"2a892d14da42ebfa1a44b819095019334c1f8dd6\", \"boolean value of answer7_1 is not correct\"\n", + "assert sha1(str(type(answer7_1)).encode(\"utf-8\")+b\"06ac43a27281dd4e\").hexdigest() == \"1a2e7c0d2d3f97a69ff02f95ed4987853970082a\", \"type of answer7_1 is not bool. answer7_1 should be a bool\"\n", + "assert sha1(str(answer7_1).encode(\"utf-8\")+b\"06ac43a27281dd4e\").hexdigest() == \"d0e752e8cbd62466f66748587877162af627778d\", \"boolean value of answer7_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -905,7 +904,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0ba6e1866331ba711ba9b2fdd42d7c6d", + "checksum": "a1dae853f70c7f13f47c59423f5be5eb", "grade": true, "grade_id": "cell-ac98c61c35f6f0b6", "locked": true, @@ -918,10 +917,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer8_1)).encode(\"utf-8\")+b\"1ed95697df6bd6fd\").hexdigest() == \"324f98812e5bd88792e46d45a1928677bd6b6d67\", \"type of answer8_1 is not str. answer8_1 should be an str\"\n", - "assert sha1(str(len(answer8_1)).encode(\"utf-8\")+b\"1ed95697df6bd6fd\").hexdigest() == \"6a9d5b89022e5d75293cef63dd3b59d85aa3124a\", \"length of answer8_1 is not correct\"\n", - "assert sha1(str(answer8_1.lower()).encode(\"utf-8\")+b\"1ed95697df6bd6fd\").hexdigest() == \"477e6eccb34bc2dd87ea2de2b1e26cec32494b64\", \"value of answer8_1 is not correct\"\n", - "assert sha1(str(answer8_1).encode(\"utf-8\")+b\"1ed95697df6bd6fd\").hexdigest() == \"26c4801a2701d317142596fbb653b77bf7fcbbdd\", \"correct string value of answer8_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer8_1)).encode(\"utf-8\")+b\"c34bf20431a9f37a\").hexdigest() == \"cadeddac8b846295ba8efef86d614e3bdab484ea\", \"type of answer8_1 is not str. answer8_1 should be an str\"\n", + "assert sha1(str(len(answer8_1)).encode(\"utf-8\")+b\"c34bf20431a9f37a\").hexdigest() == \"56b220c14d001ccbdd3a081b001916bbde2bae21\", \"length of answer8_1 is not correct\"\n", + "assert sha1(str(answer8_1.lower()).encode(\"utf-8\")+b\"c34bf20431a9f37a\").hexdigest() == \"97ce4537033b9a8b10e7d076175c03378f96e45c\", \"value of answer8_1 is not correct\"\n", + "assert sha1(str(answer8_1).encode(\"utf-8\")+b\"c34bf20431a9f37a\").hexdigest() == \"00f226ae3b5b37a6aeca79b47db55c72b6a3a733\", \"correct string value of answer8_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1003,7 +1002,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "587541c5509804d21d8bcaa49d2f3653", + "checksum": "5d8ce6203c21378ecf911965e097a313", "grade": true, "grade_id": "cell-9dc8d28efb9ccda7", "locked": true, @@ -1016,8 +1015,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer9_1)).encode(\"utf-8\")+b\"7d9bc89c71fafc21\").hexdigest() == \"2f111c707976b8afa6f40a4669cfe079aead440e\", \"type of answer9_1 is not bool. answer9_1 should be a bool\"\n", - "assert sha1(str(answer9_1).encode(\"utf-8\")+b\"7d9bc89c71fafc21\").hexdigest() == \"d0d6d1223c081f806119f49af0cdbea463e1ef0d\", \"boolean value of answer9_1 is not correct\"\n", + "assert sha1(str(type(answer9_1)).encode(\"utf-8\")+b\"9a882712e6d5127f\").hexdigest() == \"e5190871e42d741e6da7a0931d90d66f94ecc778\", \"type of answer9_1 is not bool. answer9_1 should be a bool\"\n", + "assert sha1(str(answer9_1).encode(\"utf-8\")+b\"9a882712e6d5127f\").hexdigest() == \"e6c2f1d49aa0afed1b35609f4677b3bd743aebec\", \"boolean value of answer9_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -1131,7 +1130,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7f384a763a97a3814c6834914d1a4fe7", + "checksum": "27c7a370fb8a2e417fd4cb9b5398d8b2", "grade": true, "grade_id": "cell-6656677ba896c92f", "locked": true, @@ -1144,10 +1143,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer10_1)).encode(\"utf-8\")+b\"5af9632f50d95e06\").hexdigest() == \"23aec8bf244ba441b42a2ffa449d9eb4e5aa9dba\", \"type of answer10_1 is not str. answer10_1 should be an str\"\n", - "assert sha1(str(len(answer10_1)).encode(\"utf-8\")+b\"5af9632f50d95e06\").hexdigest() == \"33538b8a4701890577f526542ccd7f3fef4e8910\", \"length of answer10_1 is not correct\"\n", - "assert sha1(str(answer10_1.lower()).encode(\"utf-8\")+b\"5af9632f50d95e06\").hexdigest() == \"0cf92f8d3ad6283f7d8c7845f3d54b7bef4efac3\", \"value of answer10_1 is not correct\"\n", - "assert sha1(str(answer10_1).encode(\"utf-8\")+b\"5af9632f50d95e06\").hexdigest() == \"059247f5c812f8b412d2b832b34f184287410cc3\", \"correct string value of answer10_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer10_1)).encode(\"utf-8\")+b\"1f8e6bc5630f5957\").hexdigest() == \"d86b622874c0fc8afcc1bcea262a17e49d32befe\", \"type of answer10_1 is not str. answer10_1 should be an str\"\n", + "assert sha1(str(len(answer10_1)).encode(\"utf-8\")+b\"1f8e6bc5630f5957\").hexdigest() == \"5b161ce840819ec2fc718b784e1eceedb5ca9dd6\", \"length of answer10_1 is not correct\"\n", + "assert sha1(str(answer10_1.lower()).encode(\"utf-8\")+b\"1f8e6bc5630f5957\").hexdigest() == \"12d725f71534bc8e7840215893254e23b3c4c0d8\", \"value of answer10_1 is not correct\"\n", + "assert sha1(str(answer10_1).encode(\"utf-8\")+b\"1f8e6bc5630f5957\").hexdigest() == \"a38311cb4a43abb67a6742a94f6c3b79a69987d3\", \"correct string value of answer10_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1216,7 +1215,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/py_worksheet_viz/py_worksheet_viz.ipynb b/py_worksheet_viz/py_worksheet_viz.ipynb index b9d5cd3..51bc8e2 100644 --- a/py_worksheet_viz/py_worksheet_viz.ipynb +++ b/py_worksheet_viz/py_worksheet_viz.ipynb @@ -134,7 +134,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b13ae363e78f0671d48f90340691d7ce", + "checksum": "5de27930df39cec92416f19ac74cda47", "grade": true, "grade_id": "cell-65573b490f8813ec", "locked": true, @@ -146,20 +146,20 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_1_A)).encode(\"utf-8\")+b\"f0058bfbde573e51\").hexdigest() == \"9b2aaafb3594ea8ce9307441b995bde3c4dd2c2f\", \"type of answer0_1_A is not bool. answer0_1_A should be a bool\"\n", - "assert sha1(str(answer0_1_A).encode(\"utf-8\")+b\"f0058bfbde573e51\").hexdigest() == \"a2e16365866c6cd403d0c714fb8977e39fda0da3\", \"boolean value of answer0_1_A is not correct\"\n", + "assert sha1(str(type(answer0_1_A)).encode(\"utf-8\")+b\"ff72bc3f4ed2f9f3\").hexdigest() == \"7bfed23aebbe2a8f9c98afd604a219fea41ecce0\", \"type of answer0_1_A is not bool. answer0_1_A should be a bool\"\n", + "assert sha1(str(answer0_1_A).encode(\"utf-8\")+b\"ff72bc3f4ed2f9f3\").hexdigest() == \"6d2e87769fc0d3d9934b2c4dcda4c6bd3ed12e17\", \"boolean value of answer0_1_A is not correct\"\n", "\n", - "assert sha1(str(type(answer0_1_B)).encode(\"utf-8\")+b\"f86704526fbda670\").hexdigest() == \"ae93b9a8b6111c7262b50d756425ad00341c5dd8\", \"type of answer0_1_B is not bool. answer0_1_B should be a bool\"\n", - "assert sha1(str(answer0_1_B).encode(\"utf-8\")+b\"f86704526fbda670\").hexdigest() == \"f07f7a14fd0ae66175d7c26ef98773b7a2c712d0\", \"boolean value of answer0_1_B is not correct\"\n", + "assert sha1(str(type(answer0_1_B)).encode(\"utf-8\")+b\"745d41c864f468ed\").hexdigest() == \"aba84543d2e46561f3f5394281acdfa6e3f66d75\", \"type of answer0_1_B is not bool. answer0_1_B should be a bool\"\n", + "assert sha1(str(answer0_1_B).encode(\"utf-8\")+b\"745d41c864f468ed\").hexdigest() == \"15a01bd199c656a1fe547daa49f84925b366d529\", \"boolean value of answer0_1_B is not correct\"\n", "\n", - "assert sha1(str(type(answer0_1_C)).encode(\"utf-8\")+b\"c239ae8f55ff6de5\").hexdigest() == \"59c5bc092ef25fa86b7041cad27a8554d995b56e\", \"type of answer0_1_C is not bool. answer0_1_C should be a bool\"\n", - "assert sha1(str(answer0_1_C).encode(\"utf-8\")+b\"c239ae8f55ff6de5\").hexdigest() == \"70d0dff876cc716f9abc5deb9cc121b668998889\", \"boolean value of answer0_1_C is not correct\"\n", + "assert sha1(str(type(answer0_1_C)).encode(\"utf-8\")+b\"931d361d3d2a26a2\").hexdigest() == \"11acbc92879afa27455c5f32c71623ce01359df8\", \"type of answer0_1_C is not bool. answer0_1_C should be a bool\"\n", + "assert sha1(str(answer0_1_C).encode(\"utf-8\")+b\"931d361d3d2a26a2\").hexdigest() == \"88b46517c511971e0edde864e860a06a6270ea60\", \"boolean value of answer0_1_C is not correct\"\n", "\n", - "assert sha1(str(type(answer0_1_D)).encode(\"utf-8\")+b\"528644164efe770b\").hexdigest() == \"a81aeef6760160deb5537ad11e57729ad8483f96\", \"type of answer0_1_D is not bool. answer0_1_D should be a bool\"\n", - "assert sha1(str(answer0_1_D).encode(\"utf-8\")+b\"528644164efe770b\").hexdigest() == \"bb263cd2311c4cab67678acbc677612ab58b5114\", \"boolean value of answer0_1_D is not correct\"\n", + "assert sha1(str(type(answer0_1_D)).encode(\"utf-8\")+b\"f71543bcc364d9e3\").hexdigest() == \"4453e4df7a644f9c7cf9d274a8c58a29625ab265\", \"type of answer0_1_D is not bool. answer0_1_D should be a bool\"\n", + "assert sha1(str(answer0_1_D).encode(\"utf-8\")+b\"f71543bcc364d9e3\").hexdigest() == \"d50d05b2e0809ba7cfa35b75465cca15b76633d8\", \"boolean value of answer0_1_D is not correct\"\n", "\n", - "assert sha1(str(type(answer0_1_E)).encode(\"utf-8\")+b\"4bc3244e3ad9e272\").hexdigest() == \"0c763ed4a7c4c2e9fb7de0d99f9fd8fb810d04d3\", \"type of answer0_1_E is not bool. answer0_1_E should be a bool\"\n", - "assert sha1(str(answer0_1_E).encode(\"utf-8\")+b\"4bc3244e3ad9e272\").hexdigest() == \"8de58010a347d0f4aeba73452de0f19744806ae5\", \"boolean value of answer0_1_E is not correct\"\n", + "assert sha1(str(type(answer0_1_E)).encode(\"utf-8\")+b\"56965164c36b9862\").hexdigest() == \"ac9eed1fcfef31d1233982a2a67bb2e3ef7607a4\", \"type of answer0_1_E is not bool. answer0_1_E should be a bool\"\n", + "assert sha1(str(answer0_1_E).encode(\"utf-8\")+b\"56965164c36b9862\").hexdigest() == \"8669852a47790ed92758bfb24aa0bf7072ef21fc\", \"boolean value of answer0_1_E is not correct\"\n", "\n", "print('Success!')" ] @@ -223,7 +223,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "49aa04b1bbe5b53c8cffd0986f8ebd49", + "checksum": "8174143696a855d062849b34f9ca7b68", "grade": true, "grade_id": "cell-165bb2f307f14e34", "locked": true, @@ -235,10 +235,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"8bf655a9f06e30bd\").hexdigest() == \"2e46b82e56c310c903fc5d535be5b05b453d68b6\", \"type of answer0_2 is not str. answer0_2 should be an str\"\n", - "assert sha1(str(len(answer0_2)).encode(\"utf-8\")+b\"8bf655a9f06e30bd\").hexdigest() == \"621abbb4f1b2361b5df7745af742d6ac54e46a9c\", \"length of answer0_2 is not correct\"\n", - "assert sha1(str(answer0_2.lower()).encode(\"utf-8\")+b\"8bf655a9f06e30bd\").hexdigest() == \"ee210605db911de555586be4925e8c9b3fecbe83\", \"value of answer0_2 is not correct\"\n", - "assert sha1(str(answer0_2).encode(\"utf-8\")+b\"8bf655a9f06e30bd\").hexdigest() == \"f896359cd9c1bffa484d28418ed2477a85f40df0\", \"correct string value of answer0_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"e4d8d861053a84c2\").hexdigest() == \"27b31e025441467f95fced3a85fe270a3ec750f3\", \"type of answer0_2 is not str. answer0_2 should be an str\"\n", + "assert sha1(str(len(answer0_2)).encode(\"utf-8\")+b\"e4d8d861053a84c2\").hexdigest() == \"ba02203abb374f3d9b4b23b55b90e7450bb0af71\", \"length of answer0_2 is not correct\"\n", + "assert sha1(str(answer0_2.lower()).encode(\"utf-8\")+b\"e4d8d861053a84c2\").hexdigest() == \"2b5e4625af42de53c6f489134641688c121cfdf4\", \"value of answer0_2 is not correct\"\n", + "assert sha1(str(answer0_2).encode(\"utf-8\")+b\"e4d8d861053a84c2\").hexdigest() == \"d89429b1815921e611973f2c40f2721ecaa9158f\", \"correct string value of answer0_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -304,7 +304,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f842fbd59ad449b53324cfa5b835b80e", + "checksum": "42fe80838a6c40011eeaa2c4451a3eaa", "grade": true, "grade_id": "cell-521dc123937db46d", "locked": true, @@ -316,10 +316,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_3)).encode(\"utf-8\")+b\"97c113402ed7f6f6\").hexdigest() == \"3f9dbf83cbfd85abdf43c7e3a043da2ce099fe72\", \"type of answer0_3 is not str. answer0_3 should be an str\"\n", - "assert sha1(str(len(answer0_3)).encode(\"utf-8\")+b\"97c113402ed7f6f6\").hexdigest() == \"970ccc2c068a7825805cb05a80f658aaf9604153\", \"length of answer0_3 is not correct\"\n", - "assert sha1(str(answer0_3.lower()).encode(\"utf-8\")+b\"97c113402ed7f6f6\").hexdigest() == \"58041d1136b8342c2357087a40179dea9b370643\", \"value of answer0_3 is not correct\"\n", - "assert sha1(str(answer0_3).encode(\"utf-8\")+b\"97c113402ed7f6f6\").hexdigest() == \"4c088ae555050d23bfa3371225e767906dae3ab0\", \"correct string value of answer0_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_3)).encode(\"utf-8\")+b\"2e3b4335dbabb0a5\").hexdigest() == \"9b5b76d3a38f8078593371ec019d91c5843df708\", \"type of answer0_3 is not str. answer0_3 should be an str\"\n", + "assert sha1(str(len(answer0_3)).encode(\"utf-8\")+b\"2e3b4335dbabb0a5\").hexdigest() == \"cdba57ee65e45d48d6ee9d4bf08c090f4137030d\", \"length of answer0_3 is not correct\"\n", + "assert sha1(str(answer0_3.lower()).encode(\"utf-8\")+b\"2e3b4335dbabb0a5\").hexdigest() == \"3d165a3ea93f15789d8dfad0821d0c12e665327c\", \"value of answer0_3 is not correct\"\n", + "assert sha1(str(answer0_3).encode(\"utf-8\")+b\"2e3b4335dbabb0a5\").hexdigest() == \"3b4317b7cadbee42d6835a935bf0fbd735fa6e98\", \"correct string value of answer0_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -385,7 +385,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c1df45a9af2bff5e81f536910a41e5bc", + "checksum": "b876415427ddff1a4a420ce76d3dfed5", "grade": true, "grade_id": "cell-5c15ea7ab4b4655e", "locked": true, @@ -397,10 +397,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_4)).encode(\"utf-8\")+b\"62aefe42badc8f04\").hexdigest() == \"c761a0154be357736583145271b3fa962c509ff6\", \"type of answer0_4 is not str. answer0_4 should be an str\"\n", - "assert sha1(str(len(answer0_4)).encode(\"utf-8\")+b\"62aefe42badc8f04\").hexdigest() == \"7538f8c2a665df63eb39ab724099a0d4f4be83de\", \"length of answer0_4 is not correct\"\n", - "assert sha1(str(answer0_4.lower()).encode(\"utf-8\")+b\"62aefe42badc8f04\").hexdigest() == \"959b45bd0608205be1951c469c8c5f4eff940ad8\", \"value of answer0_4 is not correct\"\n", - "assert sha1(str(answer0_4).encode(\"utf-8\")+b\"62aefe42badc8f04\").hexdigest() == \"16b062584df9fef2cbc4b6a60fac006754bf10cb\", \"correct string value of answer0_4 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_4)).encode(\"utf-8\")+b\"312e1f518aaa5e60\").hexdigest() == \"85e82fbc90be181d8830a2acf7c963b42ec0e110\", \"type of answer0_4 is not str. answer0_4 should be an str\"\n", + "assert sha1(str(len(answer0_4)).encode(\"utf-8\")+b\"312e1f518aaa5e60\").hexdigest() == \"65bad813fbbf13dd9a3ceaf3f8622dbbb383896a\", \"length of answer0_4 is not correct\"\n", + "assert sha1(str(answer0_4.lower()).encode(\"utf-8\")+b\"312e1f518aaa5e60\").hexdigest() == \"2334961d656654120a55e57c0ce2bcccdd4fe88f\", \"value of answer0_4 is not correct\"\n", + "assert sha1(str(answer0_4).encode(\"utf-8\")+b\"312e1f518aaa5e60\").hexdigest() == \"4e76b383022574e95eb7110f12c3fe38c9809ef4\", \"correct string value of answer0_4 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -470,7 +470,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2ace39d4e6622508c9373e812b84cbe5", + "checksum": "6bf7fe53ab97e946bcd2025a6aa8375d", "grade": true, "grade_id": "cell-7b95a04e22cfd223", "locked": true, @@ -483,20 +483,20 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_5_1)).encode(\"utf-8\")+b\"7f78c85fa0d1a5a1\").hexdigest() == \"f1648621f1466759e014b9b6801e33fb26856e00\", \"type of answer0_5_1 is not str. answer0_5_1 should be an str\"\n", - "assert sha1(str(len(answer0_5_1)).encode(\"utf-8\")+b\"7f78c85fa0d1a5a1\").hexdigest() == \"ad2795ffa9fbbdeec5952d416e65cd90836be6da\", \"length of answer0_5_1 is not correct\"\n", - "assert sha1(str(answer0_5_1.lower()).encode(\"utf-8\")+b\"7f78c85fa0d1a5a1\").hexdigest() == \"6b6e08d7bb80560cfba4b5bdf6030d6cc25927f7\", \"value of answer0_5_1 is not correct\"\n", - "assert sha1(str(answer0_5_1).encode(\"utf-8\")+b\"7f78c85fa0d1a5a1\").hexdigest() == \"00574ebc821a7a5e4db87771aad8f40e49095473\", \"correct string value of answer0_5_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_5_1)).encode(\"utf-8\")+b\"700615109d0e40fd\").hexdigest() == \"196d9900bcd28e38a8c0d35a952334858885e973\", \"type of answer0_5_1 is not str. answer0_5_1 should be an str\"\n", + "assert sha1(str(len(answer0_5_1)).encode(\"utf-8\")+b\"700615109d0e40fd\").hexdigest() == \"33baf034e6ed41a404c02019f5634949e33ab356\", \"length of answer0_5_1 is not correct\"\n", + "assert sha1(str(answer0_5_1.lower()).encode(\"utf-8\")+b\"700615109d0e40fd\").hexdigest() == \"d62aaba0be4800fe324347ee32b4b01a222f085d\", \"value of answer0_5_1 is not correct\"\n", + "assert sha1(str(answer0_5_1).encode(\"utf-8\")+b\"700615109d0e40fd\").hexdigest() == \"93165705f6754f64010ce77007e3c97a38ae1375\", \"correct string value of answer0_5_1 but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(answer0_5_2)).encode(\"utf-8\")+b\"5b653e25cad94785\").hexdigest() == \"5f4a1215258304610d784b9ecc3f5f23da831d37\", \"type of answer0_5_2 is not str. answer0_5_2 should be an str\"\n", - "assert sha1(str(len(answer0_5_2)).encode(\"utf-8\")+b\"5b653e25cad94785\").hexdigest() == \"42019388f7246bade58b62771cc9233fc5892aeb\", \"length of answer0_5_2 is not correct\"\n", - "assert sha1(str(answer0_5_2.lower()).encode(\"utf-8\")+b\"5b653e25cad94785\").hexdigest() == \"0c8a9a535373ebeb8bd717be1b95b244fd7e49b6\", \"value of answer0_5_2 is not correct\"\n", - "assert sha1(str(answer0_5_2).encode(\"utf-8\")+b\"5b653e25cad94785\").hexdigest() == \"8ce540bcec4af2cc3f5034fb3e58ec529047dee0\", \"correct string value of answer0_5_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_5_2)).encode(\"utf-8\")+b\"badcd70058f1ae06\").hexdigest() == \"62eee5f3fc00889bf22305e80a0cb7a053fa0b02\", \"type of answer0_5_2 is not str. answer0_5_2 should be an str\"\n", + "assert sha1(str(len(answer0_5_2)).encode(\"utf-8\")+b\"badcd70058f1ae06\").hexdigest() == \"43980b00b3223187f3ea3297f4f408d25f93ca58\", \"length of answer0_5_2 is not correct\"\n", + "assert sha1(str(answer0_5_2.lower()).encode(\"utf-8\")+b\"badcd70058f1ae06\").hexdigest() == \"d057631ff31ad40390c809144c42450e62e499bb\", \"value of answer0_5_2 is not correct\"\n", + "assert sha1(str(answer0_5_2).encode(\"utf-8\")+b\"badcd70058f1ae06\").hexdigest() == \"a0b3fc6b8f878bc52398c19306852a41b2af9291\", \"correct string value of answer0_5_2 but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(answer0_5_3)).encode(\"utf-8\")+b\"c558c62dc69540de\").hexdigest() == \"0f56deef606a17abc0cffeec776743a58d7b5d98\", \"type of answer0_5_3 is not str. answer0_5_3 should be an str\"\n", - "assert sha1(str(len(answer0_5_3)).encode(\"utf-8\")+b\"c558c62dc69540de\").hexdigest() == \"89cc6f6180d41505f8db17a9af30e99b3f654929\", \"length of answer0_5_3 is not correct\"\n", - "assert sha1(str(answer0_5_3.lower()).encode(\"utf-8\")+b\"c558c62dc69540de\").hexdigest() == \"e4c5079c5e108d477e1045bcefc543c1dca5ea34\", \"value of answer0_5_3 is not correct\"\n", - "assert sha1(str(answer0_5_3).encode(\"utf-8\")+b\"c558c62dc69540de\").hexdigest() == \"4861e6829823a1f8ecc2180f99395f6bccf48a51\", \"correct string value of answer0_5_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_5_3)).encode(\"utf-8\")+b\"5440aee755dae803\").hexdigest() == \"804f3586285d869b037dbc3b0b4ec599a18f6663\", \"type of answer0_5_3 is not str. answer0_5_3 should be an str\"\n", + "assert sha1(str(len(answer0_5_3)).encode(\"utf-8\")+b\"5440aee755dae803\").hexdigest() == \"f689fb517730a87ac39edaf1e2b3ed966aac6323\", \"length of answer0_5_3 is not correct\"\n", + "assert sha1(str(answer0_5_3.lower()).encode(\"utf-8\")+b\"5440aee755dae803\").hexdigest() == \"2161299364a7a4b76a430581e02ff7a802a06b6a\", \"value of answer0_5_3 is not correct\"\n", + "assert sha1(str(answer0_5_3).encode(\"utf-8\")+b\"5440aee755dae803\").hexdigest() == \"8ae8a09b8ebb3bd3d62faa2813aa3188e047d802\", \"correct string value of answer0_5_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -599,7 +599,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "987b16cab21ec74079d21853dd795976", + "checksum": "88b1c5f56cc50d5e2c26ae7c5cb5f798", "grade": true, "grade_id": "cell-abc8ab4c34c2959d", "locked": true, @@ -611,10 +611,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_0)).encode(\"utf-8\")+b\"09a7cb73ccbe1076\").hexdigest() == \"86ccf62468b7300e2fb8cf7aa95b69dccd2ea03c\", \"type of answer1_0 is not str. answer1_0 should be an str\"\n", - "assert sha1(str(len(answer1_0)).encode(\"utf-8\")+b\"09a7cb73ccbe1076\").hexdigest() == \"8cf0a4f655117e83f9b03d4d0b6c0522f108d765\", \"length of answer1_0 is not correct\"\n", - "assert sha1(str(answer1_0.lower()).encode(\"utf-8\")+b\"09a7cb73ccbe1076\").hexdigest() == \"021df46a041114ddbc0a848eb2f190ab1f659e91\", \"value of answer1_0 is not correct\"\n", - "assert sha1(str(answer1_0).encode(\"utf-8\")+b\"09a7cb73ccbe1076\").hexdigest() == \"c27c843e1f5cb0d4078c3faabc78d8ed4a6aef37\", \"correct string value of answer1_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_0)).encode(\"utf-8\")+b\"014061b7655150bd\").hexdigest() == \"61104dd0c10196aeef4faf362e4059cec6346244\", \"type of answer1_0 is not str. answer1_0 should be an str\"\n", + "assert sha1(str(len(answer1_0)).encode(\"utf-8\")+b\"014061b7655150bd\").hexdigest() == \"fa8714b2886fb01e9defdd1d9c02a62681c63ea7\", \"length of answer1_0 is not correct\"\n", + "assert sha1(str(answer1_0.lower()).encode(\"utf-8\")+b\"014061b7655150bd\").hexdigest() == \"c73f67a0453dcaeb5331b8327749806b244dc16a\", \"value of answer1_0 is not correct\"\n", + "assert sha1(str(answer1_0).encode(\"utf-8\")+b\"014061b7655150bd\").hexdigest() == \"ea5fb2d91bb4a83b5b84a518029644efd0cfe17f\", \"correct string value of answer1_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -677,7 +677,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "9eaa96eec23a97a7b652751682f0ebff", + "checksum": "1dcd6da180abeba9c05d8ee57d60e9d3", "grade": true, "grade_id": "cell-4f295963a61ad122", "locked": true, @@ -689,21 +689,21 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(world_vaccination is None)).encode(\"utf-8\")+b\"24f98e79338e8e96\").hexdigest() == \"eb598aaf7250280a857ca19a4ddd25be70853bde\", \"type of world_vaccination is None is not bool. world_vaccination is None should be a bool\"\n", - "assert sha1(str(world_vaccination is None).encode(\"utf-8\")+b\"24f98e79338e8e96\").hexdigest() == \"1461162186c2b4712a4c5011c349d0ab2bf5b3e9\", \"boolean value of world_vaccination is None is not correct\"\n", + "assert sha1(str(type(world_vaccination is None)).encode(\"utf-8\")+b\"d03c60c5f85269aa\").hexdigest() == \"8cf2f57f2b656aa87b621b01e5afc7137461bf11\", \"type of world_vaccination is None is not bool. world_vaccination is None should be a bool\"\n", + "assert sha1(str(world_vaccination is None).encode(\"utf-8\")+b\"d03c60c5f85269aa\").hexdigest() == \"aad2d42ed3d870401f2f9e1e485f9bbd51b30022\", \"boolean value of world_vaccination is None is not correct\"\n", "\n", - "assert sha1(str(type(world_vaccination)).encode(\"utf-8\")+b\"b11abcf0fa2c151d\").hexdigest() == \"9c2aede54ed4b4677a5de38a42d201100f8ccfa7\", \"type of type(world_vaccination) is not correct\"\n", + "assert sha1(str(type(world_vaccination)).encode(\"utf-8\")+b\"da807ae07268b97b\").hexdigest() == \"d94e54828ac31625b119a7fce6b9e29c0ff8c239\", \"type of type(world_vaccination) is not correct\"\n", "\n", - "assert sha1(str(type(world_vaccination.isna().sum().values)).encode(\"utf-8\")+b\"723e2dff47a11ddc\").hexdigest() == \"ed2bf054009bcd7db6d64c8c2b707b9d2e70499e\", \"type of world_vaccination.isna().sum().values is not correct\"\n", - "assert sha1(str(world_vaccination.isna().sum().values).encode(\"utf-8\")+b\"723e2dff47a11ddc\").hexdigest() == \"9173d7347dd97e26c7e179d4cbff4e5bda949fed\", \"value of world_vaccination.isna().sum().values is not correct\"\n", + "assert sha1(str(type(world_vaccination.isna().sum().values)).encode(\"utf-8\")+b\"b5e5e8dd2c028e7a\").hexdigest() == \"2fa376c362d950c0af5ad0efd62fae41dd0edbe4\", \"type of world_vaccination.isna().sum().values is not correct\"\n", + "assert sha1(str(world_vaccination.isna().sum().values).encode(\"utf-8\")+b\"b5e5e8dd2c028e7a\").hexdigest() == \"68e7ea1c4e60da775b0708fbb7703303b08e3a02\", \"value of world_vaccination.isna().sum().values is not correct\"\n", "\n", - "assert sha1(str(type(world_vaccination.shape)).encode(\"utf-8\")+b\"dd2109f6e050ee91\").hexdigest() == \"e34809e30273e85613e111af32338ebde10b1b52\", \"type of world_vaccination.shape is not tuple. world_vaccination.shape should be a tuple\"\n", - "assert sha1(str(len(world_vaccination.shape)).encode(\"utf-8\")+b\"dd2109f6e050ee91\").hexdigest() == \"0e6316e027026127c18b212485d53e9cdd1827cc\", \"length of world_vaccination.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, world_vaccination.shape))).encode(\"utf-8\")+b\"dd2109f6e050ee91\").hexdigest() == \"840c58dfb9cbeeb08c0b7990a72a0a92ec29040a\", \"values of world_vaccination.shape are not correct\"\n", - "assert sha1(str(world_vaccination.shape).encode(\"utf-8\")+b\"dd2109f6e050ee91\").hexdigest() == \"7e12693af6d1947fe1436e70b028885c3cdb3a7e\", \"order of elements of world_vaccination.shape is not correct\"\n", + "assert sha1(str(type(world_vaccination.shape)).encode(\"utf-8\")+b\"d8c0773c4152cb36\").hexdigest() == \"6eb662841c0f0e76bc8ffe94d8fb20490c7c1856\", \"type of world_vaccination.shape is not tuple. world_vaccination.shape should be a tuple\"\n", + "assert sha1(str(len(world_vaccination.shape)).encode(\"utf-8\")+b\"d8c0773c4152cb36\").hexdigest() == \"6cb2c4d2b66de928d1a633e3a8b759d684d2fd0c\", \"length of world_vaccination.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, world_vaccination.shape))).encode(\"utf-8\")+b\"d8c0773c4152cb36\").hexdigest() == \"b3f4e74d2c786c445c4375c7b6e1cc550a47c92d\", \"values of world_vaccination.shape are not correct\"\n", + "assert sha1(str(world_vaccination.shape).encode(\"utf-8\")+b\"d8c0773c4152cb36\").hexdigest() == \"308b69c86f36773dba5ba0abf7ffd96e2c6afbc5\", \"order of elements of world_vaccination.shape is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(world_vaccination.yr), 2))).encode(\"utf-8\")+b\"a3eb8f10dc157e60\").hexdigest() == \"3d8e46824bea6227393020f65b6b283391ac1625\", \"type of round(sum(world_vaccination.yr), 2) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(round(sum(world_vaccination.yr), 2)).encode(\"utf-8\")+b\"a3eb8f10dc157e60\").hexdigest() == \"afdc587f9932dce0ef865505591eb2957c9a0b05\", \"value of round(sum(world_vaccination.yr), 2) is not correct\"\n", + "assert sha1(str(type(round(sum(world_vaccination.yr), 2))).encode(\"utf-8\")+b\"f19f183f7a20837a\").hexdigest() == \"7a47c7b5da60aaf0954272fb65b068a172a18aec\", \"type of round(sum(world_vaccination.yr), 2) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(round(sum(world_vaccination.yr), 2)).encode(\"utf-8\")+b\"f19f183f7a20837a\").hexdigest() == \"feb92c3e1d896c3a0c766d3152ef78dc99d50341\", \"value of round(sum(world_vaccination.yr), 2) is not correct\"\n", "\n", "print('Success!')" ] @@ -762,7 +762,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "af8f0bf52377b93cc9dc422aeb2eadb5", + "checksum": "5ab9a109c2f642f25e36fa4140fedb40", "grade": true, "grade_id": "cell-56bc18a4d58208c4", "locked": true, @@ -774,29 +774,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(world_vacc_plot is None)).encode(\"utf-8\")+b\"1158f842adae071c\").hexdigest() == \"f8c0c1e43e7c7930aac30f828d0c7cb362f35098\", \"type of world_vacc_plot is None is not bool. world_vacc_plot is None should be a bool\"\n", - "assert sha1(str(world_vacc_plot is None).encode(\"utf-8\")+b\"1158f842adae071c\").hexdigest() == \"2550d0d4eff22ae4bb279a34de9ce069a33c0c81\", \"boolean value of world_vacc_plot is None is not correct\"\n", + "assert sha1(str(type(world_vacc_plot is None)).encode(\"utf-8\")+b\"b9c1c96cfcbf3405\").hexdigest() == \"399cc1857390207e2257160f2917e5c10181b107\", \"type of world_vacc_plot is None is not bool. world_vacc_plot is None should be a bool\"\n", + "assert sha1(str(world_vacc_plot is None).encode(\"utf-8\")+b\"b9c1c96cfcbf3405\").hexdigest() == \"cd786101d7a6f96245ecef50272a64079a8dbeec\", \"boolean value of world_vacc_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(world_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"c93515f36d1d4a7d\").hexdigest() == \"34e103461c8670125e58fb90d16fb9a7aea1c7b5\", \"type of world_vacc_plot.encoding.x['shorthand'] is not str. world_vacc_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(world_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"c93515f36d1d4a7d\").hexdigest() == \"2251d103b2d13fd3a3193fff67eedfc1ad01dae1\", \"length of world_vacc_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(world_vacc_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"c93515f36d1d4a7d\").hexdigest() == \"3d1517cb54a526733777235bfbd07be550e7f5c6\", \"value of world_vacc_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(world_vacc_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"c93515f36d1d4a7d\").hexdigest() == \"3d1517cb54a526733777235bfbd07be550e7f5c6\", \"correct string value of world_vacc_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(world_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"93a9c1457b8316e4\").hexdigest() == \"1186e098449afdf5768a766a1215e8de374e02ea\", \"type of world_vacc_plot.encoding.x['shorthand'] is not str. world_vacc_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(world_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"93a9c1457b8316e4\").hexdigest() == \"6030a0eff0b8f825cb29402ccd7180a6e17ebf44\", \"length of world_vacc_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(world_vacc_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"93a9c1457b8316e4\").hexdigest() == \"4570fa88134eb07b7c07c35b21e99e222f82ba51\", \"value of world_vacc_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(world_vacc_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"93a9c1457b8316e4\").hexdigest() == \"4570fa88134eb07b7c07c35b21e99e222f82ba51\", \"correct string value of world_vacc_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(world_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"b43188459f548204\").hexdigest() == \"5f85dfef9a40dadf16ec5d47748eb5c34b105a41\", \"type of world_vacc_plot.encoding.y['shorthand'] is not str. world_vacc_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(world_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"b43188459f548204\").hexdigest() == \"6c8f302aa44b26360486f143f59c82454b807a73\", \"length of world_vacc_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(world_vacc_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"b43188459f548204\").hexdigest() == \"fa4529535557acd1d4f2f06dd0be2f918f364384\", \"value of world_vacc_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(world_vacc_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"b43188459f548204\").hexdigest() == \"fa4529535557acd1d4f2f06dd0be2f918f364384\", \"correct string value of world_vacc_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(world_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"df3297ce8984ed00\").hexdigest() == \"2a865f0128b84a2d0ba3b5f4cf7cf33f1a047635\", \"type of world_vacc_plot.encoding.y['shorthand'] is not str. world_vacc_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(world_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"df3297ce8984ed00\").hexdigest() == \"4c47760dcd90821fc6f1a371b2fb5610e8a039ba\", \"length of world_vacc_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(world_vacc_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"df3297ce8984ed00\").hexdigest() == \"3d0d182b761f1b5c60b44251c9e01966ddb867a8\", \"value of world_vacc_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(world_vacc_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"df3297ce8984ed00\").hexdigest() == \"3d0d182b761f1b5c60b44251c9e01966ddb867a8\", \"correct string value of world_vacc_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(world_vacc_plot.mark)).encode(\"utf-8\")+b\"5aaa2c4357b6cbd1\").hexdigest() == \"38085943308d20efea9b1eeb5efcd147c58136db\", \"type of world_vacc_plot.mark is not str. world_vacc_plot.mark should be an str\"\n", - "assert sha1(str(len(world_vacc_plot.mark)).encode(\"utf-8\")+b\"5aaa2c4357b6cbd1\").hexdigest() == \"4399974215b72c236e36c1432ae49e1f74cfddae\", \"length of world_vacc_plot.mark is not correct\"\n", - "assert sha1(str(world_vacc_plot.mark.lower()).encode(\"utf-8\")+b\"5aaa2c4357b6cbd1\").hexdigest() == \"fc60b759d67fcd77c8ec868f42731112eab94cee\", \"value of world_vacc_plot.mark is not correct\"\n", - "assert sha1(str(world_vacc_plot.mark).encode(\"utf-8\")+b\"5aaa2c4357b6cbd1\").hexdigest() == \"fc60b759d67fcd77c8ec868f42731112eab94cee\", \"correct string value of world_vacc_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(world_vacc_plot.mark)).encode(\"utf-8\")+b\"d0b250a315f19445\").hexdigest() == \"c033e3debf551d717a3152195dc5cf222b93f57f\", \"type of world_vacc_plot.mark is not str. world_vacc_plot.mark should be an str\"\n", + "assert sha1(str(len(world_vacc_plot.mark)).encode(\"utf-8\")+b\"d0b250a315f19445\").hexdigest() == \"2e2d120cf4174b529c88d776e22e66e3a090a7e3\", \"length of world_vacc_plot.mark is not correct\"\n", + "assert sha1(str(world_vacc_plot.mark.lower()).encode(\"utf-8\")+b\"d0b250a315f19445\").hexdigest() == \"5263dc934179dede619ac1c78df6820b9950a263\", \"value of world_vacc_plot.mark is not correct\"\n", + "assert sha1(str(world_vacc_plot.mark).encode(\"utf-8\")+b\"d0b250a315f19445\").hexdigest() == \"5263dc934179dede619ac1c78df6820b9950a263\", \"correct string value of world_vacc_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(world_vacc_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"84cc7140e7171672\").hexdigest() == \"ba50eca66ee92927ebde8924376e6ba73d852d15\", \"type of isinstance(world_vacc_plot.encoding.x['title'], str) is not bool. isinstance(world_vacc_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(world_vacc_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"84cc7140e7171672\").hexdigest() == \"b45b02d296089b2c0705183a546350ac5897cbec\", \"boolean value of isinstance(world_vacc_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(world_vacc_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"3cfd244e674ebc4f\").hexdigest() == \"075a9c1b61d13e367a58062b4c6e4f04c5899c7d\", \"type of isinstance(world_vacc_plot.encoding.x['title'], str) is not bool. isinstance(world_vacc_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(world_vacc_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"3cfd244e674ebc4f\").hexdigest() == \"54d8aefc56f6693c7800d7e945eeb8cf6a4ae247\", \"boolean value of isinstance(world_vacc_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(world_vacc_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"b1e28fc37ca04f7a\").hexdigest() == \"bcf0be93a4bf45f03b23226f3e9c746c3005356c\", \"type of isinstance(world_vacc_plot.encoding.y['title'], str) is not bool. isinstance(world_vacc_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(world_vacc_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"b1e28fc37ca04f7a\").hexdigest() == \"30e005543322628c3ef4a5e947809238e9215374\", \"boolean value of isinstance(world_vacc_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(world_vacc_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"a2442dae297561b9\").hexdigest() == \"0bf60ff7039c63ca7df06a518544be0f5f3118a5\", \"type of isinstance(world_vacc_plot.encoding.y['title'], str) is not bool. isinstance(world_vacc_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(world_vacc_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"a2442dae297561b9\").hexdigest() == \"08d80c7ecfdb38b5a0ba8b8f78e20eb16be61271\", \"boolean value of isinstance(world_vacc_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -862,7 +862,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "e74f13bc181522230ed4117b0e86c6c1", + "checksum": "9ec57122a9405fc87c62263b55fbd4b2", "grade": true, "grade_id": "cell-de1ed1a45f987cbd", "locked": true, @@ -874,10 +874,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"9b911334cdf4ddca\").hexdigest() == \"dedf77e0cf09f30089e5b4c4860c45bcbb6386ba\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", - "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"9b911334cdf4ddca\").hexdigest() == \"cbee90787acdb664423b8b05b6e790511721ef09\", \"length of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"9b911334cdf4ddca\").hexdigest() == \"16e1a569867e94f38863bce9926110fbeb7e95d9\", \"value of answer1_3 is not correct\"\n", - "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"9b911334cdf4ddca\").hexdigest() == \"76b8edc016febb470469d4ba350a62734c93cfc4\", \"correct string value of answer1_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_3)).encode(\"utf-8\")+b\"4de4c990b68df110\").hexdigest() == \"c87f2e9fe70a7695c68d5df2aec30b482f020ccc\", \"type of answer1_3 is not str. answer1_3 should be an str\"\n", + "assert sha1(str(len(answer1_3)).encode(\"utf-8\")+b\"4de4c990b68df110\").hexdigest() == \"b4625a715456b5e740cbba6f0a08fa264ee624bb\", \"length of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3.lower()).encode(\"utf-8\")+b\"4de4c990b68df110\").hexdigest() == \"b16fc36b11469231fd1fe9c2a1866f3d75b15703\", \"value of answer1_3 is not correct\"\n", + "assert sha1(str(answer1_3).encode(\"utf-8\")+b\"4de4c990b68df110\").hexdigest() == \"7252fc942bd285bbbe39a30cb5fd9830a46ce9b4\", \"correct string value of answer1_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -939,7 +939,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f6ed63899929f4ff7345392f7acf7613", + "checksum": "e7b77ef7e8e90f6eb25229d969f96f55", "grade": true, "grade_id": "cell-d644f60d1f60a559", "locked": true, @@ -951,42 +951,42 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(compare_vacc_plot is None)).encode(\"utf-8\")+b\"910c7602ddb8e300\").hexdigest() == \"8e031452c0b268b738495546dce6ddcba2da2731\", \"type of compare_vacc_plot is None is not bool. compare_vacc_plot is None should be a bool\"\n", - "assert sha1(str(compare_vacc_plot is None).encode(\"utf-8\")+b\"910c7602ddb8e300\").hexdigest() == \"4f0aaa9b5326d56904100ce30fa3034f966468cc\", \"boolean value of compare_vacc_plot is None is not correct\"\n", + "assert sha1(str(type(compare_vacc_plot is None)).encode(\"utf-8\")+b\"5a426ac0c473e832\").hexdigest() == \"393f686ec6e1dcbcf9beaf46684333ef6e028e38\", \"type of compare_vacc_plot is None is not bool. compare_vacc_plot is None should be a bool\"\n", + "assert sha1(str(compare_vacc_plot is None).encode(\"utf-8\")+b\"5a426ac0c473e832\").hexdigest() == \"3d1cbfa26f876c0bcb631a5e585711cc0025cf0e\", \"boolean value of compare_vacc_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(compare_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"85b00da6f9a92ca4\").hexdigest() == \"9d3b0bda7b2ac6271e47fa8ad294ddeb2ea9a57b\", \"type of compare_vacc_plot.encoding.x['shorthand'] is not str. compare_vacc_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(compare_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"85b00da6f9a92ca4\").hexdigest() == \"ba113b9783e902c9cffaf52cbed5772818c5ef8b\", \"length of compare_vacc_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"85b00da6f9a92ca4\").hexdigest() == \"d68eee099808ed0e964332f67722e8148e11d40a\", \"value of compare_vacc_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"85b00da6f9a92ca4\").hexdigest() == \"d68eee099808ed0e964332f67722e8148e11d40a\", \"correct string value of compare_vacc_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(compare_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"1acdf3003a5ed451\").hexdigest() == \"97ac55f7db85366b23188e957a125537d66b4e5f\", \"type of compare_vacc_plot.encoding.x['shorthand'] is not str. compare_vacc_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(compare_vacc_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"1acdf3003a5ed451\").hexdigest() == \"39092076778210df2904fa0e3bbce636434449a0\", \"length of compare_vacc_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"1acdf3003a5ed451\").hexdigest() == \"d19b4f79cba876aa7aa844b7f416fc56b2c81761\", \"value of compare_vacc_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"1acdf3003a5ed451\").hexdigest() == \"d19b4f79cba876aa7aa844b7f416fc56b2c81761\", \"correct string value of compare_vacc_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(compare_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"fedc00ec31ca41ec\").hexdigest() == \"e5d86c4503e91314124f7146369622ae311c08ca\", \"type of compare_vacc_plot.encoding.y['shorthand'] is not str. compare_vacc_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(compare_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"fedc00ec31ca41ec\").hexdigest() == \"c2b5d6933abaf92365099fc5c06ba66e6b126b48\", \"length of compare_vacc_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"fedc00ec31ca41ec\").hexdigest() == \"78f0e2f97320031743eaf652d2660a09ce92d603\", \"value of compare_vacc_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"fedc00ec31ca41ec\").hexdigest() == \"78f0e2f97320031743eaf652d2660a09ce92d603\", \"correct string value of compare_vacc_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(compare_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"c329a7bb3cc7dd6a\").hexdigest() == \"9b0621f03e3fdd78607f882aa379daa749ad8116\", \"type of compare_vacc_plot.encoding.y['shorthand'] is not str. compare_vacc_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(compare_vacc_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"c329a7bb3cc7dd6a\").hexdigest() == \"ef99153e84a478fc2020fc27002bba30c67fcd59\", \"length of compare_vacc_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"c329a7bb3cc7dd6a\").hexdigest() == \"1987a977b0ecd4ec776b5678a15511f7b664e05a\", \"value of compare_vacc_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"c329a7bb3cc7dd6a\").hexdigest() == \"1987a977b0ecd4ec776b5678a15511f7b664e05a\", \"correct string value of compare_vacc_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(compare_vacc_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"68e3864c16d5f7e1\").hexdigest() == \"8c637640763fc4e9f3221467d4ff38b4a9c17a7b\", \"type of compare_vacc_plot.encoding.color['shorthand'] is not str. compare_vacc_plot.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(compare_vacc_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"68e3864c16d5f7e1\").hexdigest() == \"0046c96bac6d013c7307caec4c6532d0f6c78981\", \"length of compare_vacc_plot.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"68e3864c16d5f7e1\").hexdigest() == \"e5a338fb45f69fe0b535a976b88c3af095da5dd8\", \"value of compare_vacc_plot.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.color['shorthand']).encode(\"utf-8\")+b\"68e3864c16d5f7e1\").hexdigest() == \"e5a338fb45f69fe0b535a976b88c3af095da5dd8\", \"correct string value of compare_vacc_plot.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(compare_vacc_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"c657d5f76dc3e20c\").hexdigest() == \"61d24d802023dcde54ebc3121ba847a2b385d308\", \"type of compare_vacc_plot.encoding.color['shorthand'] is not str. compare_vacc_plot.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(compare_vacc_plot.encoding.color['shorthand'])).encode(\"utf-8\")+b\"c657d5f76dc3e20c\").hexdigest() == \"a71fa81e854d059912aac40d9540ab29e1ebb153\", \"length of compare_vacc_plot.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"c657d5f76dc3e20c\").hexdigest() == \"0041e86a28cb3d0395e3f005352334647d121027\", \"value of compare_vacc_plot.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.color['shorthand']).encode(\"utf-8\")+b\"c657d5f76dc3e20c\").hexdigest() == \"0041e86a28cb3d0395e3f005352334647d121027\", \"correct string value of compare_vacc_plot.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(compare_vacc_plot.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"662a9bb6347dc96b\").hexdigest() == \"43f8e316074054c404c59b8f6f533753b12cd869\", \"type of compare_vacc_plot.encoding.shape['shorthand'] is not str. compare_vacc_plot.encoding.shape['shorthand'] should be an str\"\n", - "assert sha1(str(len(compare_vacc_plot.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"662a9bb6347dc96b\").hexdigest() == \"88f0827cf8f7f5e43798d415086f5635de2180cc\", \"length of compare_vacc_plot.encoding.shape['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.shape['shorthand'].lower()).encode(\"utf-8\")+b\"662a9bb6347dc96b\").hexdigest() == \"368dd3534c69ae7212ccc61d0714ce8a3cd027d3\", \"value of compare_vacc_plot.encoding.shape['shorthand'] is not correct\"\n", - "assert sha1(str(compare_vacc_plot.encoding.shape['shorthand']).encode(\"utf-8\")+b\"662a9bb6347dc96b\").hexdigest() == \"368dd3534c69ae7212ccc61d0714ce8a3cd027d3\", \"correct string value of compare_vacc_plot.encoding.shape['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(compare_vacc_plot.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"91dc155a4831322f\").hexdigest() == \"7e91822c05652a2cfcea624f495be11330ae9be8\", \"type of compare_vacc_plot.encoding.shape['shorthand'] is not str. compare_vacc_plot.encoding.shape['shorthand'] should be an str\"\n", + "assert sha1(str(len(compare_vacc_plot.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"91dc155a4831322f\").hexdigest() == \"6dab1f0be33bd84cd12ee41900a9280581b925d8\", \"length of compare_vacc_plot.encoding.shape['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.shape['shorthand'].lower()).encode(\"utf-8\")+b\"91dc155a4831322f\").hexdigest() == \"c54c8a5a8a535463bb6f4b89ea491967ea6e12c5\", \"value of compare_vacc_plot.encoding.shape['shorthand'] is not correct\"\n", + "assert sha1(str(compare_vacc_plot.encoding.shape['shorthand']).encode(\"utf-8\")+b\"91dc155a4831322f\").hexdigest() == \"c54c8a5a8a535463bb6f4b89ea491967ea6e12c5\", \"correct string value of compare_vacc_plot.encoding.shape['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(compare_vacc_plot.mark)).encode(\"utf-8\")+b\"aa061eee11d17a7b\").hexdigest() == \"c484dc158674cbf6e5902c5843cb2bb2c0219883\", \"type of compare_vacc_plot.mark is not str. compare_vacc_plot.mark should be an str\"\n", - "assert sha1(str(len(compare_vacc_plot.mark)).encode(\"utf-8\")+b\"aa061eee11d17a7b\").hexdigest() == \"be3bf70247250ef16761e3b049d9ad6321f7dfdf\", \"length of compare_vacc_plot.mark is not correct\"\n", - "assert sha1(str(compare_vacc_plot.mark.lower()).encode(\"utf-8\")+b\"aa061eee11d17a7b\").hexdigest() == \"876d3016d1b5a41bd66a349bee51baf36f0bc41a\", \"value of compare_vacc_plot.mark is not correct\"\n", - "assert sha1(str(compare_vacc_plot.mark).encode(\"utf-8\")+b\"aa061eee11d17a7b\").hexdigest() == \"876d3016d1b5a41bd66a349bee51baf36f0bc41a\", \"correct string value of compare_vacc_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(compare_vacc_plot.mark)).encode(\"utf-8\")+b\"2a116259f2db14f6\").hexdigest() == \"b0c2fa96e3254ba5dcc418bd310f4b69ab485d4a\", \"type of compare_vacc_plot.mark is not str. compare_vacc_plot.mark should be an str\"\n", + "assert sha1(str(len(compare_vacc_plot.mark)).encode(\"utf-8\")+b\"2a116259f2db14f6\").hexdigest() == \"21a17af1bf39c4e40dde80b7d721edf5a5703ea6\", \"length of compare_vacc_plot.mark is not correct\"\n", + "assert sha1(str(compare_vacc_plot.mark.lower()).encode(\"utf-8\")+b\"2a116259f2db14f6\").hexdigest() == \"6710abc3ea9e2bce60af3d4c562521575108f4a7\", \"value of compare_vacc_plot.mark is not correct\"\n", + "assert sha1(str(compare_vacc_plot.mark).encode(\"utf-8\")+b\"2a116259f2db14f6\").hexdigest() == \"6710abc3ea9e2bce60af3d4c562521575108f4a7\", \"correct string value of compare_vacc_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(compare_vacc_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"1442721e04503f2e\").hexdigest() == \"87261af3ff502bee4433e9f9890c4c921b29a9ea\", \"type of isinstance(compare_vacc_plot.encoding.x['title'], str) is not bool. isinstance(compare_vacc_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(compare_vacc_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"1442721e04503f2e\").hexdigest() == \"27b094bbfbb686317fb5693986e7a0b6e88f6be8\", \"boolean value of isinstance(compare_vacc_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(compare_vacc_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"c2ba9581dd680295\").hexdigest() == \"b273249a75b0cd25a1b7053c1e661f166cc85514\", \"type of isinstance(compare_vacc_plot.encoding.x['title'], str) is not bool. isinstance(compare_vacc_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(compare_vacc_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"c2ba9581dd680295\").hexdigest() == \"49b02c033e5b0f010c3ae9ba7097ac227b06b67c\", \"boolean value of isinstance(compare_vacc_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(compare_vacc_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"7cc88bd9d2926785\").hexdigest() == \"6b6c36189c3d4589bba32304eb01899945626d00\", \"type of isinstance(compare_vacc_plot.encoding.y['title'], str) is not bool. isinstance(compare_vacc_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(compare_vacc_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"7cc88bd9d2926785\").hexdigest() == \"e20ff7669ce872fda7ebcc3ab2a9f79d6a89d7fb\", \"boolean value of isinstance(compare_vacc_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(compare_vacc_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"0e3253eb73b13d97\").hexdigest() == \"1380177328cbb9ce51c42c4dd6cd19126e36b749\", \"type of isinstance(compare_vacc_plot.encoding.y['title'], str) is not bool. isinstance(compare_vacc_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(compare_vacc_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"0e3253eb73b13d97\").hexdigest() == \"dba4dd943a5fa8f1b2da00ad066edc2fc985f9f6\", \"boolean value of isinstance(compare_vacc_plot.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(compare_vacc_plot.config.axis.titleFontSize)).encode(\"utf-8\")+b\"2f0ea16ea5b2e3d6\").hexdigest() == \"112a96070804d82cf411b0d7ba846b647c637eb8\", \"type of compare_vacc_plot.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(compare_vacc_plot.config.axis.titleFontSize).encode(\"utf-8\")+b\"2f0ea16ea5b2e3d6\").hexdigest() == \"6def8f1b47216bd4c04eb8c797dc182dd68df751\", \"value of compare_vacc_plot.config.axis.titleFontSize is not correct\"\n", + "assert sha1(str(type(compare_vacc_plot.config.axis.titleFontSize)).encode(\"utf-8\")+b\"e9383748f0e712c0\").hexdigest() == \"befee590ec0b6edf26aabb1f910d35b71b632570\", \"type of compare_vacc_plot.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(compare_vacc_plot.config.axis.titleFontSize).encode(\"utf-8\")+b\"e9383748f0e712c0\").hexdigest() == \"1239ae6226b5f667a4da9fa1f26b4b33da205e17\", \"value of compare_vacc_plot.config.axis.titleFontSize is not correct\"\n", "\n", "print('Success!')" ] @@ -1065,7 +1065,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bee0106998f8343ac757f8e6cb5ccb09", + "checksum": "0e09a59479d0c774c4cbac1531fb6b1c", "grade": true, "grade_id": "cell-96b08ba246959d81", "locked": true, @@ -1077,21 +1077,21 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(polio is None)).encode(\"utf-8\")+b\"f8ea2414b8bb83c8\").hexdigest() == \"9732c2fcb72e6b4d768cd20bef2db6222df4d9f7\", \"type of polio is None is not bool. polio is None should be a bool\"\n", - "assert sha1(str(polio is None).encode(\"utf-8\")+b\"f8ea2414b8bb83c8\").hexdigest() == \"8afb871311d1d1381ee645e3b16b33f9c8fba88b\", \"boolean value of polio is None is not correct\"\n", + "assert sha1(str(type(polio is None)).encode(\"utf-8\")+b\"10f26c575edcfb33\").hexdigest() == \"bfbf342374f3060c6e14cce56463109ec62a6bfb\", \"type of polio is None is not bool. polio is None should be a bool\"\n", + "assert sha1(str(polio is None).encode(\"utf-8\")+b\"10f26c575edcfb33\").hexdigest() == \"4e528512c9405a4655206b1c787646a62ecf6c4e\", \"boolean value of polio is None is not correct\"\n", "\n", - "assert sha1(str(type(polio.vaccine.unique()[0])).encode(\"utf-8\")+b\"f790fed0607cf23a\").hexdigest() == \"e13cb6c332d03bd325deccc4919479cbfc470c08\", \"type of polio.vaccine.unique()[0] is not str. polio.vaccine.unique()[0] should be an str\"\n", - "assert sha1(str(len(polio.vaccine.unique()[0])).encode(\"utf-8\")+b\"f790fed0607cf23a\").hexdigest() == \"6b3cd10ab16d4fcb8cbc88d37046683f09ea56ad\", \"length of polio.vaccine.unique()[0] is not correct\"\n", - "assert sha1(str(polio.vaccine.unique()[0].lower()).encode(\"utf-8\")+b\"f790fed0607cf23a\").hexdigest() == \"f0348f532275918331c9d14231386f5cf215cd03\", \"value of polio.vaccine.unique()[0] is not correct\"\n", - "assert sha1(str(polio.vaccine.unique()[0]).encode(\"utf-8\")+b\"f790fed0607cf23a\").hexdigest() == \"f0348f532275918331c9d14231386f5cf215cd03\", \"correct string value of polio.vaccine.unique()[0] but incorrect case of letters\"\n", + "assert sha1(str(type(polio.vaccine.unique()[0])).encode(\"utf-8\")+b\"7691f941b9750d92\").hexdigest() == \"27d441c703b521bc146641519d368074a06fb002\", \"type of polio.vaccine.unique()[0] is not str. polio.vaccine.unique()[0] should be an str\"\n", + "assert sha1(str(len(polio.vaccine.unique()[0])).encode(\"utf-8\")+b\"7691f941b9750d92\").hexdigest() == \"3d9b4504375cef44497b842e46846e694653d98e\", \"length of polio.vaccine.unique()[0] is not correct\"\n", + "assert sha1(str(polio.vaccine.unique()[0].lower()).encode(\"utf-8\")+b\"7691f941b9750d92\").hexdigest() == \"b8ef3d9386c923fb8bd7c5f1a7db0751da70f3b7\", \"value of polio.vaccine.unique()[0] is not correct\"\n", + "assert sha1(str(polio.vaccine.unique()[0]).encode(\"utf-8\")+b\"7691f941b9750d92\").hexdigest() == \"b8ef3d9386c923fb8bd7c5f1a7db0751da70f3b7\", \"correct string value of polio.vaccine.unique()[0] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio.shape)).encode(\"utf-8\")+b\"c8e67fc0ba6cc1f9\").hexdigest() == \"ec4b295e1d03c68c03628996be83b34221727483\", \"type of polio.shape is not tuple. polio.shape should be a tuple\"\n", - "assert sha1(str(len(polio.shape)).encode(\"utf-8\")+b\"c8e67fc0ba6cc1f9\").hexdigest() == \"0af6a1caad4176a8f380b6bcd4d7a701a642096e\", \"length of polio.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, polio.shape))).encode(\"utf-8\")+b\"c8e67fc0ba6cc1f9\").hexdigest() == \"2f1feef803d9a44b2df40e06ef5024b85747427a\", \"values of polio.shape are not correct\"\n", - "assert sha1(str(polio.shape).encode(\"utf-8\")+b\"c8e67fc0ba6cc1f9\").hexdigest() == \"e4350ba1947ac704955314df9641444c51375bf9\", \"order of elements of polio.shape is not correct\"\n", + "assert sha1(str(type(polio.shape)).encode(\"utf-8\")+b\"ddeeea8cedcb0a11\").hexdigest() == \"33142337fc309b6e305ec0fab6ae01ebaae23a4c\", \"type of polio.shape is not tuple. polio.shape should be a tuple\"\n", + "assert sha1(str(len(polio.shape)).encode(\"utf-8\")+b\"ddeeea8cedcb0a11\").hexdigest() == \"b05d6a73b4c9da603dd9505f186b263961f6a1fb\", \"length of polio.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, polio.shape))).encode(\"utf-8\")+b\"ddeeea8cedcb0a11\").hexdigest() == \"749fa99c71d8b017fc30d0e9cd11faa67c910d34\", \"values of polio.shape are not correct\"\n", + "assert sha1(str(polio.shape).encode(\"utf-8\")+b\"ddeeea8cedcb0a11\").hexdigest() == \"b11d1f6b0c8c6f0bdc967fb187ff9a8d71be4707\", \"order of elements of polio.shape is not correct\"\n", "\n", - "assert sha1(str(type(round(sum(polio.pct_vaccinated), 2))).encode(\"utf-8\")+b\"d818836f8207ed23\").hexdigest() == \"39001289d1b3a7c05275063c229fbafd09345fc4\", \"type of round(sum(polio.pct_vaccinated), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(round(sum(polio.pct_vaccinated), 2), 2)).encode(\"utf-8\")+b\"d818836f8207ed23\").hexdigest() == \"4044ccb256476cbdc98a2f9fc4070b1dd6576bff\", \"value of round(sum(polio.pct_vaccinated), 2) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(round(sum(polio.pct_vaccinated), 2))).encode(\"utf-8\")+b\"96484675cb389f1b\").hexdigest() == \"0f3a3b06e9df5db7c9c2cb522a2f713bff4bff39\", \"type of round(sum(polio.pct_vaccinated), 2) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(round(sum(polio.pct_vaccinated), 2), 2)).encode(\"utf-8\")+b\"96484675cb389f1b\").hexdigest() == \"6a30f71f3917e8eb6e77d8b5f8dd97d549059d8b\", \"value of round(sum(polio.pct_vaccinated), 2) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1150,7 +1150,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "118dcc3e2f0ce989f3dc06e5ceb065cd", + "checksum": "c232b1d93c93b7f42343d92e0d21f16c", "grade": true, "grade_id": "cell-80a368c34a543e78", "locked": true, @@ -1162,48 +1162,48 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(polio_regions is None)).encode(\"utf-8\")+b\"1ae7433b67b0eac5\").hexdigest() == \"2272374cb3b980a449b50793c8c833ad32b5b76a\", \"type of polio_regions is None is not bool. polio_regions is None should be a bool\"\n", - "assert sha1(str(polio_regions is None).encode(\"utf-8\")+b\"1ae7433b67b0eac5\").hexdigest() == \"4c6a42678c6a9dd44d7a8ca3aab1b5876169af5f\", \"boolean value of polio_regions is None is not correct\"\n", + "assert sha1(str(type(polio_regions is None)).encode(\"utf-8\")+b\"a84d6c15378fb16f\").hexdigest() == \"deec9d3d952467aed17928644580269fcebb70a5\", \"type of polio_regions is None is not bool. polio_regions is None should be a bool\"\n", + "assert sha1(str(polio_regions is None).encode(\"utf-8\")+b\"a84d6c15378fb16f\").hexdigest() == \"5ef5c6f050f659f81573ea745c036ef59dc5fb3c\", \"boolean value of polio_regions is None is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3fc39afe176e8347\").hexdigest() == \"8c20c39181da21e182a17c50b6956a2274a2d0aa\", \"type of polio_regions.encoding.x['shorthand'] is not str. polio_regions.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions.encoding.x['shorthand'])).encode(\"utf-8\")+b\"3fc39afe176e8347\").hexdigest() == \"433d2ac23234dd07315cdd8ccce95d0a55f50cd3\", \"length of polio_regions.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"3fc39afe176e8347\").hexdigest() == \"4115ca87e1c23f67838f8961d9c4f73320f4d31b\", \"value of polio_regions.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.x['shorthand']).encode(\"utf-8\")+b\"3fc39afe176e8347\").hexdigest() == \"4115ca87e1c23f67838f8961d9c4f73320f4d31b\", \"correct string value of polio_regions.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions.encoding.x['shorthand'])).encode(\"utf-8\")+b\"c330557058c74669\").hexdigest() == \"1702e9e0959b6008e397b523a9dd215361684667\", \"type of polio_regions.encoding.x['shorthand'] is not str. polio_regions.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions.encoding.x['shorthand'])).encode(\"utf-8\")+b\"c330557058c74669\").hexdigest() == \"eff1da3da7230d58518c39bb2cd31f53a969b8a3\", \"length of polio_regions.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"c330557058c74669\").hexdigest() == \"a6e99208b90602fa2483bc78ee07a6ef132b68fa\", \"value of polio_regions.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.x['shorthand']).encode(\"utf-8\")+b\"c330557058c74669\").hexdigest() == \"a6e99208b90602fa2483bc78ee07a6ef132b68fa\", \"correct string value of polio_regions.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2194a3a0f3a9368d\").hexdigest() == \"8fc4ed784642b7341c3aaee869fb8f87ef0e636e\", \"type of polio_regions.encoding.y['shorthand'] is not str. polio_regions.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2194a3a0f3a9368d\").hexdigest() == \"2ff65260cca996cff43882534940ae64a528d293\", \"length of polio_regions.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"2194a3a0f3a9368d\").hexdigest() == \"87c03006a3cd91b2e2763a3d387fc855802a6832\", \"value of polio_regions.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.y['shorthand']).encode(\"utf-8\")+b\"2194a3a0f3a9368d\").hexdigest() == \"87c03006a3cd91b2e2763a3d387fc855802a6832\", \"correct string value of polio_regions.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions.encoding.y['shorthand'])).encode(\"utf-8\")+b\"dc330371d4dff12f\").hexdigest() == \"d2bfb9d68a711d8740644078d08521a44f1c4765\", \"type of polio_regions.encoding.y['shorthand'] is not str. polio_regions.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions.encoding.y['shorthand'])).encode(\"utf-8\")+b\"dc330371d4dff12f\").hexdigest() == \"97bb5cf62f4f594aac1de6045ef3a7a25a929fc3\", \"length of polio_regions.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"dc330371d4dff12f\").hexdigest() == \"7b78ee9505acab24fb129e9bc0059914cae94219\", \"value of polio_regions.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.y['shorthand']).encode(\"utf-8\")+b\"dc330371d4dff12f\").hexdigest() == \"7b78ee9505acab24fb129e9bc0059914cae94219\", \"correct string value of polio_regions.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions.encoding.color['shorthand'])).encode(\"utf-8\")+b\"8fd78a55c654a34f\").hexdigest() == \"80a00346d338b5f89cee7e5a7b899119ae88fcf9\", \"type of polio_regions.encoding.color['shorthand'] is not str. polio_regions.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions.encoding.color['shorthand'])).encode(\"utf-8\")+b\"8fd78a55c654a34f\").hexdigest() == \"8cb85120c1cbc273d9d91b6381dad94e2252f0d2\", \"length of polio_regions.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"8fd78a55c654a34f\").hexdigest() == \"cd232e1d77c18d36fd3cd69e4aedf4705311ef61\", \"value of polio_regions.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.color['shorthand']).encode(\"utf-8\")+b\"8fd78a55c654a34f\").hexdigest() == \"cd232e1d77c18d36fd3cd69e4aedf4705311ef61\", \"correct string value of polio_regions.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions.encoding.color['shorthand'])).encode(\"utf-8\")+b\"e3cbb900ae1d59ee\").hexdigest() == \"6c4fd43656118b09372149f849e3397183192b73\", \"type of polio_regions.encoding.color['shorthand'] is not str. polio_regions.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions.encoding.color['shorthand'])).encode(\"utf-8\")+b\"e3cbb900ae1d59ee\").hexdigest() == \"ac6ea8c2499d9333d69f16e4cccef7eb7bedcd35\", \"length of polio_regions.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"e3cbb900ae1d59ee\").hexdigest() == \"d7958c759f7528a9dcba02b2509bba745c30a1de\", \"value of polio_regions.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.color['shorthand']).encode(\"utf-8\")+b\"e3cbb900ae1d59ee\").hexdigest() == \"d7958c759f7528a9dcba02b2509bba745c30a1de\", \"correct string value of polio_regions.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"f617f90bf6c0e547\").hexdigest() == \"6f3c805f60576db70d179048fe635a356994a707\", \"type of polio_regions.encoding.shape['shorthand'] is not str. polio_regions.encoding.shape['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"f617f90bf6c0e547\").hexdigest() == \"9849897986985fdb8ec656e5494d8ed2371f5123\", \"length of polio_regions.encoding.shape['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.shape['shorthand'].lower()).encode(\"utf-8\")+b\"f617f90bf6c0e547\").hexdigest() == \"4bad681c42db4c30919f63b9ada3d600924cb60d\", \"value of polio_regions.encoding.shape['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions.encoding.shape['shorthand']).encode(\"utf-8\")+b\"f617f90bf6c0e547\").hexdigest() == \"4bad681c42db4c30919f63b9ada3d600924cb60d\", \"correct string value of polio_regions.encoding.shape['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"b4b5d55498cc1af4\").hexdigest() == \"a0deaa8315df2dc657415089d942ec8c76eae27b\", \"type of polio_regions.encoding.shape['shorthand'] is not str. polio_regions.encoding.shape['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions.encoding.shape['shorthand'])).encode(\"utf-8\")+b\"b4b5d55498cc1af4\").hexdigest() == \"6353a6e7eb4c301acd81b72373439ffd0876b18a\", \"length of polio_regions.encoding.shape['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.shape['shorthand'].lower()).encode(\"utf-8\")+b\"b4b5d55498cc1af4\").hexdigest() == \"0273e50b3768fb4ae9c61f4c7d4cfd0f3f5b128f\", \"value of polio_regions.encoding.shape['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions.encoding.shape['shorthand']).encode(\"utf-8\")+b\"b4b5d55498cc1af4\").hexdigest() == \"0273e50b3768fb4ae9c61f4c7d4cfd0f3f5b128f\", \"correct string value of polio_regions.encoding.shape['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions.mark)).encode(\"utf-8\")+b\"90fb2ae04bfec241\").hexdigest() == \"e7ded150ad94e18026b4bc3ac76f4c966ff8d696\", \"type of polio_regions.mark is not str. polio_regions.mark should be an str\"\n", - "assert sha1(str(len(polio_regions.mark)).encode(\"utf-8\")+b\"90fb2ae04bfec241\").hexdigest() == \"5a258108f3b3ee9d0bb6bc7c452faee55c8410b2\", \"length of polio_regions.mark is not correct\"\n", - "assert sha1(str(polio_regions.mark.lower()).encode(\"utf-8\")+b\"90fb2ae04bfec241\").hexdigest() == \"ba5887d184232ed941caa34c63d21d6cef5c11c5\", \"value of polio_regions.mark is not correct\"\n", - "assert sha1(str(polio_regions.mark).encode(\"utf-8\")+b\"90fb2ae04bfec241\").hexdigest() == \"ba5887d184232ed941caa34c63d21d6cef5c11c5\", \"correct string value of polio_regions.mark but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions.mark)).encode(\"utf-8\")+b\"bc069c51f8ce96c6\").hexdigest() == \"ab9101654a36729abcff747ac8a699a9b997a168\", \"type of polio_regions.mark is not str. polio_regions.mark should be an str\"\n", + "assert sha1(str(len(polio_regions.mark)).encode(\"utf-8\")+b\"bc069c51f8ce96c6\").hexdigest() == \"074954f7c819254e6541819665b92b7bc8baa53c\", \"length of polio_regions.mark is not correct\"\n", + "assert sha1(str(polio_regions.mark.lower()).encode(\"utf-8\")+b\"bc069c51f8ce96c6\").hexdigest() == \"e8e0fbb666c4612915e604986cb53cf76140c842\", \"value of polio_regions.mark is not correct\"\n", + "assert sha1(str(polio_regions.mark).encode(\"utf-8\")+b\"bc069c51f8ce96c6\").hexdigest() == \"e8e0fbb666c4612915e604986cb53cf76140c842\", \"correct string value of polio_regions.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(polio_regions.encoding.x['title'], str))).encode(\"utf-8\")+b\"f39e384e2706701a\").hexdigest() == \"0e034ece2f56df830a384b32cc312c61a7d58015\", \"type of isinstance(polio_regions.encoding.x['title'], str) is not bool. isinstance(polio_regions.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(polio_regions.encoding.x['title'], str)).encode(\"utf-8\")+b\"f39e384e2706701a\").hexdigest() == \"d46b11da4d6c3866560fab585720140eb0965442\", \"boolean value of isinstance(polio_regions.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(polio_regions.encoding.x['title'], str))).encode(\"utf-8\")+b\"4698cd20f6795e52\").hexdigest() == \"e754dcb776d3137f5267c82c533ef4558f0a0273\", \"type of isinstance(polio_regions.encoding.x['title'], str) is not bool. isinstance(polio_regions.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(polio_regions.encoding.x['title'], str)).encode(\"utf-8\")+b\"4698cd20f6795e52\").hexdigest() == \"f191a6cb004bd23f9b03c5a89c7dae0650db2aaa\", \"boolean value of isinstance(polio_regions.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(polio_regions.encoding.y['title'], str))).encode(\"utf-8\")+b\"335b112a41d9daa3\").hexdigest() == \"d808439e03de607aa5f2491da8a4c84ca7971c84\", \"type of isinstance(polio_regions.encoding.y['title'], str) is not bool. isinstance(polio_regions.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(polio_regions.encoding.y['title'], str)).encode(\"utf-8\")+b\"335b112a41d9daa3\").hexdigest() == \"2a7e9467ebd30f4ab313dbe41f104af629ccb614\", \"boolean value of isinstance(polio_regions.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(polio_regions.encoding.y['title'], str))).encode(\"utf-8\")+b\"39d01574d2769d7e\").hexdigest() == \"ffe030b5bb9e316429ffb272c9776c7c271cf3a1\", \"type of isinstance(polio_regions.encoding.y['title'], str) is not bool. isinstance(polio_regions.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(polio_regions.encoding.y['title'], str)).encode(\"utf-8\")+b\"39d01574d2769d7e\").hexdigest() == \"31baf017a300e4c656d9e95658045085dcd62832\", \"boolean value of isinstance(polio_regions.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions.config.axis.titleFontSize)).encode(\"utf-8\")+b\"4ec3382d9bd2761a\").hexdigest() == \"108501b68b37cca8073c94ed691cf3cd77c85338\", \"type of polio_regions.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(polio_regions.config.axis.titleFontSize).encode(\"utf-8\")+b\"4ec3382d9bd2761a\").hexdigest() == \"27671a0b206e2acd14bdd98cb07ed24d8faad5ba\", \"value of polio_regions.config.axis.titleFontSize is not correct\"\n", + "assert sha1(str(type(polio_regions.config.axis.titleFontSize)).encode(\"utf-8\")+b\"fee693e77638d976\").hexdigest() == \"59465b79dc54e6972c793a0f369e0ba44b7e91ce\", \"type of polio_regions.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(polio_regions.config.axis.titleFontSize).encode(\"utf-8\")+b\"fee693e77638d976\").hexdigest() == \"39bb3d8cf37e1ad86da7b40420ba817720a2d167\", \"value of polio_regions.config.axis.titleFontSize is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions.config.axis.titleFontSize)).encode(\"utf-8\")+b\"88fac21cc5787cc9\").hexdigest() == \"0c265b989d83fc2ef6a4e85d6861e871e624ab0e\", \"type of polio_regions.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(polio_regions.config.axis.titleFontSize).encode(\"utf-8\")+b\"88fac21cc5787cc9\").hexdigest() == \"4fb600431fbdebe8ef9b843f82ae43a28775c9bd\", \"value of polio_regions.config.axis.titleFontSize is not correct\"\n", + "assert sha1(str(type(polio_regions.config.axis.titleFontSize)).encode(\"utf-8\")+b\"7cbb4d234120b1de\").hexdigest() == \"65d2aeecd6dbf2c598c26f4a441fff421173a0df\", \"type of polio_regions.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(polio_regions.config.axis.titleFontSize).encode(\"utf-8\")+b\"7cbb4d234120b1de\").hexdigest() == \"c08e85e1b8c35094b5c38c98b9e23adfa2c8c4f8\", \"value of polio_regions.config.axis.titleFontSize is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions.width)).encode(\"utf-8\")+b\"dd5cc2b4d0bfedf8\").hexdigest() == \"079772ce610a9101a642a97c305b9274e381ce06\", \"type of polio_regions.width is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(polio_regions.width).encode(\"utf-8\")+b\"dd5cc2b4d0bfedf8\").hexdigest() == \"dac2f2bc73f972ee250a961ce766659ed8e60bf1\", \"value of polio_regions.width is not correct\"\n", + "assert sha1(str(type(polio_regions.width)).encode(\"utf-8\")+b\"fd2d2b499c92a453\").hexdigest() == \"ad831d905c6cd37e672f21332229434fa256a803\", \"type of polio_regions.width is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(polio_regions.width).encode(\"utf-8\")+b\"fd2d2b499c92a453\").hexdigest() == \"ad48c091abfcf2327c03613f52a425916bfae87b\", \"value of polio_regions.width is not correct\"\n", "\n", "print('Success!')" ] @@ -1260,7 +1260,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "da9a574a24db7fb1309c3dbe2416f745", + "checksum": "0c13ebed8ad4750b8dc05fc8a3964c73", "grade": true, "grade_id": "cell-9bc60c906bcd60b3", "locked": true, @@ -1272,43 +1272,43 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(polio_regions_line is None)).encode(\"utf-8\")+b\"30ab695398fec225\").hexdigest() == \"361fb85d12dbe0157567d33c9b386d2ad1089b57\", \"type of polio_regions_line is None is not bool. polio_regions_line is None should be a bool\"\n", - "assert sha1(str(polio_regions_line is None).encode(\"utf-8\")+b\"30ab695398fec225\").hexdigest() == \"9aa6b18b571e45f6f75e1be47473d622ae8439cc\", \"boolean value of polio_regions_line is None is not correct\"\n", + "assert sha1(str(type(polio_regions_line is None)).encode(\"utf-8\")+b\"bab6e4991d45950f\").hexdigest() == \"a74fcf47672993599326c2ae9a7da75888f3104a\", \"type of polio_regions_line is None is not bool. polio_regions_line is None should be a bool\"\n", + "assert sha1(str(polio_regions_line is None).encode(\"utf-8\")+b\"bab6e4991d45950f\").hexdigest() == \"2d18a25fc15667459df54a823951313f133dea1f\", \"boolean value of polio_regions_line is None is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions_line.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ef9c1fa030593316\").hexdigest() == \"6a4f7e0b91216aabadaa5d82c1d95581ef52306b\", \"type of polio_regions_line.encoding.x['shorthand'] is not str. polio_regions_line.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions_line.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ef9c1fa030593316\").hexdigest() == \"f0ad82480eb42e23ee12091a50248473dedf25f6\", \"length of polio_regions_line.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions_line.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"ef9c1fa030593316\").hexdigest() == \"546aa2c3e0ff31ccbd94dd9d0053a42e4f828598\", \"value of polio_regions_line.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions_line.encoding.x['shorthand']).encode(\"utf-8\")+b\"ef9c1fa030593316\").hexdigest() == \"546aa2c3e0ff31ccbd94dd9d0053a42e4f828598\", \"correct string value of polio_regions_line.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions_line.encoding.x['shorthand'])).encode(\"utf-8\")+b\"8344f9834e0f2d5e\").hexdigest() == \"d7a5c0eaa49b8bacbffbeac5397b565372b1281f\", \"type of polio_regions_line.encoding.x['shorthand'] is not str. polio_regions_line.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions_line.encoding.x['shorthand'])).encode(\"utf-8\")+b\"8344f9834e0f2d5e\").hexdigest() == \"a5366cbd4aa3f410dd3d24ecdd4fdef53bf0afbe\", \"length of polio_regions_line.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions_line.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"8344f9834e0f2d5e\").hexdigest() == \"e46543013d1c740b6226bfb0e5c41b683f1078c3\", \"value of polio_regions_line.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions_line.encoding.x['shorthand']).encode(\"utf-8\")+b\"8344f9834e0f2d5e\").hexdigest() == \"e46543013d1c740b6226bfb0e5c41b683f1078c3\", \"correct string value of polio_regions_line.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions_line.encoding.y['shorthand'])).encode(\"utf-8\")+b\"7b4fe9ea0383cae7\").hexdigest() == \"0d1180ccd6ce9b1ea63e506f73fe6fe306e6f0b3\", \"type of polio_regions_line.encoding.y['shorthand'] is not str. polio_regions_line.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions_line.encoding.y['shorthand'])).encode(\"utf-8\")+b\"7b4fe9ea0383cae7\").hexdigest() == \"2155bac42d396259f1861a9f702a6133e48d1eb9\", \"length of polio_regions_line.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions_line.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"7b4fe9ea0383cae7\").hexdigest() == \"9073db409137098b623fb1fe0ead9e89aeb95478\", \"value of polio_regions_line.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions_line.encoding.y['shorthand']).encode(\"utf-8\")+b\"7b4fe9ea0383cae7\").hexdigest() == \"9073db409137098b623fb1fe0ead9e89aeb95478\", \"correct string value of polio_regions_line.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions_line.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2bdabeac24a84bba\").hexdigest() == \"5571355750eaada0d33f0a4af49affcb93de4e83\", \"type of polio_regions_line.encoding.y['shorthand'] is not str. polio_regions_line.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions_line.encoding.y['shorthand'])).encode(\"utf-8\")+b\"2bdabeac24a84bba\").hexdigest() == \"8ec57eefd00b7d6155c1b11410f16ecee9a89a6c\", \"length of polio_regions_line.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions_line.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"2bdabeac24a84bba\").hexdigest() == \"00fb269019df9a02568dce8933690320e8eddb50\", \"value of polio_regions_line.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions_line.encoding.y['shorthand']).encode(\"utf-8\")+b\"2bdabeac24a84bba\").hexdigest() == \"00fb269019df9a02568dce8933690320e8eddb50\", \"correct string value of polio_regions_line.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions_line.encoding.color['shorthand'])).encode(\"utf-8\")+b\"bcde4e4c91a62762\").hexdigest() == \"2e88884101d76786658253aacccbab8c59e6d9da\", \"type of polio_regions_line.encoding.color['shorthand'] is not str. polio_regions_line.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(polio_regions_line.encoding.color['shorthand'])).encode(\"utf-8\")+b\"bcde4e4c91a62762\").hexdigest() == \"25e619aa76a6d332f7937ad015a6d96f7f541e9a\", \"length of polio_regions_line.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions_line.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"bcde4e4c91a62762\").hexdigest() == \"a150333b1559e61548ab1df5f387bd014ce54bfc\", \"value of polio_regions_line.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(polio_regions_line.encoding.color['shorthand']).encode(\"utf-8\")+b\"bcde4e4c91a62762\").hexdigest() == \"a150333b1559e61548ab1df5f387bd014ce54bfc\", \"correct string value of polio_regions_line.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions_line.encoding.color['shorthand'])).encode(\"utf-8\")+b\"1fdca0facff6aec8\").hexdigest() == \"0f034d4c4c88af417e48348986fbf4b2855ec9d0\", \"type of polio_regions_line.encoding.color['shorthand'] is not str. polio_regions_line.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(polio_regions_line.encoding.color['shorthand'])).encode(\"utf-8\")+b\"1fdca0facff6aec8\").hexdigest() == \"3f20994276df35a45587cdf34dbf03b524cce847\", \"length of polio_regions_line.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions_line.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"1fdca0facff6aec8\").hexdigest() == \"29d263480e3aa55a1106e1b62a85341a80264575\", \"value of polio_regions_line.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(polio_regions_line.encoding.color['shorthand']).encode(\"utf-8\")+b\"1fdca0facff6aec8\").hexdigest() == \"29d263480e3aa55a1106e1b62a85341a80264575\", \"correct string value of polio_regions_line.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(polio_regions_line.mark)).encode(\"utf-8\")+b\"22f7c1a11a35298c\").hexdigest() == \"eb256d16e8ff245f033bdf25094da908eb9208fa\", \"type of polio_regions_line.mark is not str. polio_regions_line.mark should be an str\"\n", - "assert sha1(str(len(polio_regions_line.mark)).encode(\"utf-8\")+b\"22f7c1a11a35298c\").hexdigest() == \"2047843d76dab4a2d780fe4ecbc196c12bce63ca\", \"length of polio_regions_line.mark is not correct\"\n", - "assert sha1(str(polio_regions_line.mark.lower()).encode(\"utf-8\")+b\"22f7c1a11a35298c\").hexdigest() == \"d642ad5b3f53a341379f05b7c81b8d1ef2508432\", \"value of polio_regions_line.mark is not correct\"\n", - "assert sha1(str(polio_regions_line.mark).encode(\"utf-8\")+b\"22f7c1a11a35298c\").hexdigest() == \"d642ad5b3f53a341379f05b7c81b8d1ef2508432\", \"correct string value of polio_regions_line.mark but incorrect case of letters\"\n", + "assert sha1(str(type(polio_regions_line.mark)).encode(\"utf-8\")+b\"532b40fe2342132f\").hexdigest() == \"c51ec748359389aff407bc8e0eb86bf8626090a3\", \"type of polio_regions_line.mark is not str. polio_regions_line.mark should be an str\"\n", + "assert sha1(str(len(polio_regions_line.mark)).encode(\"utf-8\")+b\"532b40fe2342132f\").hexdigest() == \"feebf3c50ef6f51c57bd4d659d78ccf66fb635d7\", \"length of polio_regions_line.mark is not correct\"\n", + "assert sha1(str(polio_regions_line.mark.lower()).encode(\"utf-8\")+b\"532b40fe2342132f\").hexdigest() == \"ca70cacdbb166badc772d561b731ba0ac63beaab\", \"value of polio_regions_line.mark is not correct\"\n", + "assert sha1(str(polio_regions_line.mark).encode(\"utf-8\")+b\"532b40fe2342132f\").hexdigest() == \"ca70cacdbb166badc772d561b731ba0ac63beaab\", \"correct string value of polio_regions_line.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(polio_regions_line.encoding.x['title'], str))).encode(\"utf-8\")+b\"b58ac073571b7171\").hexdigest() == \"9ffa89936f0f5f8f9b117e5005dc0afe6644a203\", \"type of isinstance(polio_regions_line.encoding.x['title'], str) is not bool. isinstance(polio_regions_line.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(polio_regions_line.encoding.x['title'], str)).encode(\"utf-8\")+b\"b58ac073571b7171\").hexdigest() == \"18e73b878a6c6164558eceb0a87d93cb9369030d\", \"boolean value of isinstance(polio_regions_line.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(polio_regions_line.encoding.x['title'], str))).encode(\"utf-8\")+b\"d55a06a94554150d\").hexdigest() == \"b4b883a6c4e56a11a7366b4d1f0e64049cf5ab12\", \"type of isinstance(polio_regions_line.encoding.x['title'], str) is not bool. isinstance(polio_regions_line.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(polio_regions_line.encoding.x['title'], str)).encode(\"utf-8\")+b\"d55a06a94554150d\").hexdigest() == \"ecdc5ecf08a9ff5f2b6d5a53ad43ffeb2864045d\", \"boolean value of isinstance(polio_regions_line.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(polio_regions_line.encoding.y['title'], str))).encode(\"utf-8\")+b\"76ef06f722d7b7bd\").hexdigest() == \"33c278efe418061ac1a263eb468d655fab067be0\", \"type of isinstance(polio_regions_line.encoding.y['title'], str) is not bool. isinstance(polio_regions_line.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(polio_regions_line.encoding.y['title'], str)).encode(\"utf-8\")+b\"76ef06f722d7b7bd\").hexdigest() == \"e634e32b27dc06e40cf00fd6f0074c92be650216\", \"boolean value of isinstance(polio_regions_line.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(polio_regions_line.encoding.y['title'], str))).encode(\"utf-8\")+b\"913b0b8d8f69b3d4\").hexdigest() == \"34cb0d2a6b7315fe31068ed370eddead26cbfcd1\", \"type of isinstance(polio_regions_line.encoding.y['title'], str) is not bool. isinstance(polio_regions_line.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(polio_regions_line.encoding.y['title'], str)).encode(\"utf-8\")+b\"913b0b8d8f69b3d4\").hexdigest() == \"889283b0a5b7acb3de38b89a1673270e409258df\", \"boolean value of isinstance(polio_regions_line.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions_line.config.axis.titleFontSize)).encode(\"utf-8\")+b\"9492dc5fcdc2a29e\").hexdigest() == \"ba98fa093575637cc66f4cb7d9fcea7d21d61670\", \"type of polio_regions_line.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(polio_regions_line.config.axis.titleFontSize).encode(\"utf-8\")+b\"9492dc5fcdc2a29e\").hexdigest() == \"2262e6a443b90ee4efbc50c1df1a133a39a6d348\", \"value of polio_regions_line.config.axis.titleFontSize is not correct\"\n", + "assert sha1(str(type(polio_regions_line.config.axis.titleFontSize)).encode(\"utf-8\")+b\"5ac0fb7759e66063\").hexdigest() == \"31900d1c48538b29ae9155d961ca45739b473b77\", \"type of polio_regions_line.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(polio_regions_line.config.axis.titleFontSize).encode(\"utf-8\")+b\"5ac0fb7759e66063\").hexdigest() == \"2d56939c565cd54e631ff95c701f1a776d0ad74c\", \"value of polio_regions_line.config.axis.titleFontSize is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions_line.config.axis.titleFontSize)).encode(\"utf-8\")+b\"61b2629c591c7f80\").hexdigest() == \"4f59cf19e6a5c6c57905fa60d9b373852310a655\", \"type of polio_regions_line.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(polio_regions_line.config.axis.titleFontSize).encode(\"utf-8\")+b\"61b2629c591c7f80\").hexdigest() == \"6bbb06a40da8ea5c78ab178e497218e81d051ac3\", \"value of polio_regions_line.config.axis.titleFontSize is not correct\"\n", + "assert sha1(str(type(polio_regions_line.config.axis.titleFontSize)).encode(\"utf-8\")+b\"ed7d6f1e47a26dd7\").hexdigest() == \"a041d446e7cb0fa19e622e23d1c9908f03664a74\", \"type of polio_regions_line.config.axis.titleFontSize is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(polio_regions_line.config.axis.titleFontSize).encode(\"utf-8\")+b\"ed7d6f1e47a26dd7\").hexdigest() == \"9cc160949d46842a2326c2b0399c509b5a5e945b\", \"value of polio_regions_line.config.axis.titleFontSize is not correct\"\n", "\n", - "assert sha1(str(type(polio_regions_line.width)).encode(\"utf-8\")+b\"c89f2664b992d1f1\").hexdigest() == \"86d5b93857baf1577275b06afe5ab50fff6b9a8a\", \"type of polio_regions_line.width is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(polio_regions_line.width).encode(\"utf-8\")+b\"c89f2664b992d1f1\").hexdigest() == \"edba4e5afe51fbafafeb70bfcc6bf3a71fcde17c\", \"value of polio_regions_line.width is not correct\"\n", + "assert sha1(str(type(polio_regions_line.width)).encode(\"utf-8\")+b\"c5218f9017bea8d5\").hexdigest() == \"d96f31ba7c3ddf22916ea6f2476d8c1c0a6f3ada\", \"type of polio_regions_line.width is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(polio_regions_line.width).encode(\"utf-8\")+b\"c5218f9017bea8d5\").hexdigest() == \"3ff6fbaf20ccedbac70123807c5a62b34aaeeb8d\", \"value of polio_regions_line.width is not correct\"\n", "\n", "print('Success!')" ] @@ -1394,7 +1394,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "dfaa5fd4b5c47825544fab73e4113882", + "checksum": "996ddf6d2e92922399542c2687fd9600", "grade": true, "grade_id": "cell-da960eda0165bd94", "locked": true, @@ -1406,11 +1406,11 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(side_by_side_world is None)).encode(\"utf-8\")+b\"0ea087b0fbe8c989\").hexdigest() == \"d85aebc11215b568c9340837d914636d18b9fc76\", \"type of side_by_side_world is None is not bool. side_by_side_world is None should be a bool\"\n", - "assert sha1(str(side_by_side_world is None).encode(\"utf-8\")+b\"0ea087b0fbe8c989\").hexdigest() == \"38d9b1ff72db09fc66cafff9b36f97a989b91e9c\", \"boolean value of side_by_side_world is None is not correct\"\n", + "assert sha1(str(type(side_by_side_world is None)).encode(\"utf-8\")+b\"126bbec37e8974e3\").hexdigest() == \"d6c8333e7b8163c6cea34f30d02b4768903f58d1\", \"type of side_by_side_world is None is not bool. side_by_side_world is None should be a bool\"\n", + "assert sha1(str(side_by_side_world is None).encode(\"utf-8\")+b\"126bbec37e8974e3\").hexdigest() == \"dfe060c545ce0a34e936fef4de7683fbf6aabd5f\", \"boolean value of side_by_side_world is None is not correct\"\n", "\n", - "assert sha1(str(type(side_by_side_world.facet)).encode(\"utf-8\")+b\"0ce8f4ec5a485520\").hexdigest() == \"a26a00bb7ab2f1942043ff06f2dd7080200c4923\", \"type of side_by_side_world.facet is not correct\"\n", - "assert sha1(str(side_by_side_world.facet).encode(\"utf-8\")+b\"0ce8f4ec5a485520\").hexdigest() == \"8591ad255fb9385a43af486684c5c78fd5b3451f\", \"value of side_by_side_world.facet is not correct\"\n", + "assert sha1(str(type(side_by_side_world.facet)).encode(\"utf-8\")+b\"e7ecc4225bdc0e62\").hexdigest() == \"cf6e2baf22d8fec821dbec96715ea9fc007d7a8a\", \"type of side_by_side_world.facet is not correct\"\n", + "assert sha1(str(side_by_side_world.facet).encode(\"utf-8\")+b\"e7ecc4225bdc0e62\").hexdigest() == \"5811db80b00b6b71bf1c92d55780fd7554703092\", \"value of side_by_side_world.facet is not correct\"\n", "\n", "print('Success!')" ] @@ -1467,7 +1467,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b598d2c5326d6857ececac104f31f87f", + "checksum": "c7c2fda965aec561c5362c3d90eeb682", "grade": true, "grade_id": "cell-2a2384fca721cc8a", "locked": true, @@ -1479,14 +1479,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(vertical_world is None)).encode(\"utf-8\")+b\"d75d3faa03df9580\").hexdigest() == \"4c0eaa84c88fb574c28542477ac335a075b2ae81\", \"type of vertical_world is None is not bool. vertical_world is None should be a bool\"\n", - "assert sha1(str(vertical_world is None).encode(\"utf-8\")+b\"d75d3faa03df9580\").hexdigest() == \"a2d2b852f6814eb208c970194237df6333164cf2\", \"boolean value of vertical_world is None is not correct\"\n", + "assert sha1(str(type(vertical_world is None)).encode(\"utf-8\")+b\"6f47c8bcd625b33b\").hexdigest() == \"c84a00bdedaf401cc90354d7f77b5feaa1505a5b\", \"type of vertical_world is None is not bool. vertical_world is None should be a bool\"\n", + "assert sha1(str(vertical_world is None).encode(\"utf-8\")+b\"6f47c8bcd625b33b\").hexdigest() == \"7d5cc1da1d3b9456ea1b612d1e7c561e4e6655e8\", \"boolean value of vertical_world is None is not correct\"\n", "\n", - "assert sha1(str(type(vertical_world.columns)).encode(\"utf-8\")+b\"0888023f0816b568\").hexdigest() == \"e3d451c9f9b49fa1f18b9de04e57fd60257ac7f2\", \"type of vertical_world.columns is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(vertical_world.columns).encode(\"utf-8\")+b\"0888023f0816b568\").hexdigest() == \"5b87b7a4ba6979fe133c809e34484ddae97970c0\", \"value of vertical_world.columns is not correct\"\n", + "assert sha1(str(type(vertical_world.columns)).encode(\"utf-8\")+b\"24bd48c81ac85376\").hexdigest() == \"b028add59744887b7c06554d2509e80fc804df92\", \"type of vertical_world.columns is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(vertical_world.columns).encode(\"utf-8\")+b\"24bd48c81ac85376\").hexdigest() == \"78c7406f775f17732d3a6d3b18cab74d45bcce3a\", \"value of vertical_world.columns is not correct\"\n", "\n", - "assert sha1(str(type(vertical_world.facet)).encode(\"utf-8\")+b\"6e2337652b8f6815\").hexdigest() == \"ca621be2b6ce2f03a98b4af6a6ac5eaf709f5767\", \"type of vertical_world.facet is not correct\"\n", - "assert sha1(str(vertical_world.facet).encode(\"utf-8\")+b\"6e2337652b8f6815\").hexdigest() == \"a2ad6f6fd0104175737b897c5bf4d8f71623fe71\", \"value of vertical_world.facet is not correct\"\n", + "assert sha1(str(type(vertical_world.facet)).encode(\"utf-8\")+b\"43f693dc8ab7bfec\").hexdigest() == \"79b24bdc041458ae22f32c27cb8f7eca58c893b3\", \"type of vertical_world.facet is not correct\"\n", + "assert sha1(str(vertical_world.facet).encode(\"utf-8\")+b\"43f693dc8ab7bfec\").hexdigest() == \"c1228a58d970ff79bdff56ba486998c3be0a7a15\", \"value of vertical_world.facet is not correct\"\n", "\n", "print('Success!')" ] @@ -1573,7 +1573,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f385bb753a89de9d0b48e31d1920e2d5", + "checksum": "3f5b61167f710df397315ee56ab455fe", "grade": true, "grade_id": "cell-a69f9766adab9544", "locked": true, @@ -1585,10 +1585,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_9_2)).encode(\"utf-8\")+b\"e3f4f48f530d7683\").hexdigest() == \"22ece9ceb76837b6634e66d3e06b953df91daa19\", \"type of answer1_9_2 is not str. answer1_9_2 should be an str\"\n", - "assert sha1(str(len(answer1_9_2)).encode(\"utf-8\")+b\"e3f4f48f530d7683\").hexdigest() == \"33b28c1aa8a51505d1acd82036db4a14568e1c4f\", \"length of answer1_9_2 is not correct\"\n", - "assert sha1(str(answer1_9_2.lower()).encode(\"utf-8\")+b\"e3f4f48f530d7683\").hexdigest() == \"59bd05dd6844d44431839040d561497b1bdc1469\", \"value of answer1_9_2 is not correct\"\n", - "assert sha1(str(answer1_9_2).encode(\"utf-8\")+b\"e3f4f48f530d7683\").hexdigest() == \"9a69c9d20ad2082b62de1cb9744ad6749aa33e3b\", \"correct string value of answer1_9_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_9_2)).encode(\"utf-8\")+b\"dac94eea30c8293b\").hexdigest() == \"3eea7cf54d2a510aa52885bfb0bfc9c0402e15c3\", \"type of answer1_9_2 is not str. answer1_9_2 should be an str\"\n", + "assert sha1(str(len(answer1_9_2)).encode(\"utf-8\")+b\"dac94eea30c8293b\").hexdigest() == \"ff8049f652a6bed8d5bae2746addf64268690adc\", \"length of answer1_9_2 is not correct\"\n", + "assert sha1(str(answer1_9_2.lower()).encode(\"utf-8\")+b\"dac94eea30c8293b\").hexdigest() == \"5fdeb1fa9a657e40969642b733715c34da488c7d\", \"value of answer1_9_2 is not correct\"\n", + "assert sha1(str(answer1_9_2).encode(\"utf-8\")+b\"dac94eea30c8293b\").hexdigest() == \"fe9ed6673360eaf12d2b60412bd7f0b353d61f2e\", \"correct string value of answer1_9_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1696,7 +1696,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ad47e7f305ad35360b8c477a34f977b0", + "checksum": "d21d32cf3ef07437cd0c467f3f4db858", "grade": true, "grade_id": "cell-22af5054ff59eadd", "locked": true, @@ -1708,10 +1708,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"9c0d4afb7eb34918\").hexdigest() == \"d0ad3b576347a60f641f54eaa2db41a81e11d8bf\", \"type of answer2_1 is not str. answer2_1 should be an str\"\n", - "assert sha1(str(len(answer2_1)).encode(\"utf-8\")+b\"9c0d4afb7eb34918\").hexdigest() == \"aefaed6976da46f624bfbfd600f62fd1843aa7ee\", \"length of answer2_1 is not correct\"\n", - "assert sha1(str(answer2_1.lower()).encode(\"utf-8\")+b\"9c0d4afb7eb34918\").hexdigest() == \"fd81dffd6d56f774b62490463f9624fcc2201b9b\", \"value of answer2_1 is not correct\"\n", - "assert sha1(str(answer2_1).encode(\"utf-8\")+b\"9c0d4afb7eb34918\").hexdigest() == \"3e2b7cba9dbddd1982b315cf8721ee345bbdbe36\", \"correct string value of answer2_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"004b69d28ba54825\").hexdigest() == \"ace12ab83043b9265cf4bdc4c44cd51b69125752\", \"type of answer2_1 is not str. answer2_1 should be an str\"\n", + "assert sha1(str(len(answer2_1)).encode(\"utf-8\")+b\"004b69d28ba54825\").hexdigest() == \"eded0b6e1f28218fd4e444d4414334a9571deb23\", \"length of answer2_1 is not correct\"\n", + "assert sha1(str(answer2_1.lower()).encode(\"utf-8\")+b\"004b69d28ba54825\").hexdigest() == \"5e92e7a19e7ebb8dd6fd9547f7abaf85c8948879\", \"value of answer2_1 is not correct\"\n", + "assert sha1(str(answer2_1).encode(\"utf-8\")+b\"004b69d28ba54825\").hexdigest() == \"90d5d6ae7c2f8ac000ef971691776ae2ccb317e5\", \"correct string value of answer2_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1768,7 +1768,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "442d19e7df9f4436de13c2c11c55fc1e", + "checksum": "6da49b630f1cdbb2ad0dc5566552c005", "grade": true, "grade_id": "cell-f61886d392c4a00a", "locked": true, @@ -1780,23 +1780,23 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(fast_food is None)).encode(\"utf-8\")+b\"3afe10035975cecc\").hexdigest() == \"1b7fa759c456c8512b2f7ccba97190a3cede23a1\", \"type of fast_food is None is not bool. fast_food is None should be a bool\"\n", - "assert sha1(str(fast_food is None).encode(\"utf-8\")+b\"3afe10035975cecc\").hexdigest() == \"a17193369ef9cd6339ac42670c80382cdbacb78f\", \"boolean value of fast_food is None is not correct\"\n", + "assert sha1(str(type(fast_food is None)).encode(\"utf-8\")+b\"adbcb70b5284c509\").hexdigest() == \"3f90b7883e8664887266348811b5156087e3791f\", \"type of fast_food is None is not bool. fast_food is None should be a bool\"\n", + "assert sha1(str(fast_food is None).encode(\"utf-8\")+b\"adbcb70b5284c509\").hexdigest() == \"fb049d91a115efcaa8b073d956cb64e962acb817\", \"boolean value of fast_food is None is not correct\"\n", "\n", - "assert sha1(str(type(fast_food.shape)).encode(\"utf-8\")+b\"264e9d284d711776\").hexdigest() == \"d639b98ba482547c0703a02c5814b05aed91a9b4\", \"type of fast_food.shape is not tuple. fast_food.shape should be a tuple\"\n", - "assert sha1(str(len(fast_food.shape)).encode(\"utf-8\")+b\"264e9d284d711776\").hexdigest() == \"2096dc5e3540cfefe8d75d9ccecd7c1d4af40bb9\", \"length of fast_food.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, fast_food.shape))).encode(\"utf-8\")+b\"264e9d284d711776\").hexdigest() == \"5d0d6cf0fe2e464152648f1cc06b005e8d3aba4b\", \"values of fast_food.shape are not correct\"\n", - "assert sha1(str(fast_food.shape).encode(\"utf-8\")+b\"264e9d284d711776\").hexdigest() == \"7e3dcdb606996b3ef741f68e045c7c918751a862\", \"order of elements of fast_food.shape is not correct\"\n", + "assert sha1(str(type(fast_food.shape)).encode(\"utf-8\")+b\"563354b9c23e189c\").hexdigest() == \"b9e5a9397309401f265af655832a64d7bf2e2e43\", \"type of fast_food.shape is not tuple. fast_food.shape should be a tuple\"\n", + "assert sha1(str(len(fast_food.shape)).encode(\"utf-8\")+b\"563354b9c23e189c\").hexdigest() == \"966157bf4354e489afd8b1b372ddec2a575d4e79\", \"length of fast_food.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, fast_food.shape))).encode(\"utf-8\")+b\"563354b9c23e189c\").hexdigest() == \"3188b32af7d486728d4b5fa8aacc081a222d0525\", \"values of fast_food.shape are not correct\"\n", + "assert sha1(str(fast_food.shape).encode(\"utf-8\")+b\"563354b9c23e189c\").hexdigest() == \"dabba664c856785d0a074408fcd6cfa3a63c244a\", \"order of elements of fast_food.shape is not correct\"\n", "\n", - "assert sha1(str(type(fast_food.iloc[2, 0])).encode(\"utf-8\")+b\"13353557544d6d01\").hexdigest() == \"e0781d632e63b1d15583c997b2a45aa2c02523ec\", \"type of fast_food.iloc[2, 0] is not str. fast_food.iloc[2, 0] should be an str\"\n", - "assert sha1(str(len(fast_food.iloc[2, 0])).encode(\"utf-8\")+b\"13353557544d6d01\").hexdigest() == \"f503f6679a4d38c9aad883768d21905edcbae428\", \"length of fast_food.iloc[2, 0] is not correct\"\n", - "assert sha1(str(fast_food.iloc[2, 0].lower()).encode(\"utf-8\")+b\"13353557544d6d01\").hexdigest() == \"aceb7e4b4b22d11c1e4eb9c026ec1b5a9539c819\", \"value of fast_food.iloc[2, 0] is not correct\"\n", - "assert sha1(str(fast_food.iloc[2, 0]).encode(\"utf-8\")+b\"13353557544d6d01\").hexdigest() == \"02488e7118ca39b94d174c57d88736ad663f5a3e\", \"correct string value of fast_food.iloc[2, 0] but incorrect case of letters\"\n", + "assert sha1(str(type(fast_food.iloc[2, 0])).encode(\"utf-8\")+b\"cdbfa864122a0bac\").hexdigest() == \"4b9b474bd7134877a135d786aca9f676c1dbea42\", \"type of fast_food.iloc[2, 0] is not str. fast_food.iloc[2, 0] should be an str\"\n", + "assert sha1(str(len(fast_food.iloc[2, 0])).encode(\"utf-8\")+b\"cdbfa864122a0bac\").hexdigest() == \"be99598e632930e13d8e95b80cc000980bc647f6\", \"length of fast_food.iloc[2, 0] is not correct\"\n", + "assert sha1(str(fast_food.iloc[2, 0].lower()).encode(\"utf-8\")+b\"cdbfa864122a0bac\").hexdigest() == \"0594a51b82860cc4cf3cbb2b2a10ac447469bc76\", \"value of fast_food.iloc[2, 0] is not correct\"\n", + "assert sha1(str(fast_food.iloc[2, 0]).encode(\"utf-8\")+b\"cdbfa864122a0bac\").hexdigest() == \"287952a8b594aee3ba54b021663c06afdad058a6\", \"correct string value of fast_food.iloc[2, 0] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(fast_food.iloc[3, 1])).encode(\"utf-8\")+b\"0406600e7e5aeca9\").hexdigest() == \"a316a52fce962d421fb7e001cb61530f042e573f\", \"type of fast_food.iloc[3, 1] is not str. fast_food.iloc[3, 1] should be an str\"\n", - "assert sha1(str(len(fast_food.iloc[3, 1])).encode(\"utf-8\")+b\"0406600e7e5aeca9\").hexdigest() == \"bc885140c051c020f1948fddac04d43b7a4eb9fc\", \"length of fast_food.iloc[3, 1] is not correct\"\n", - "assert sha1(str(fast_food.iloc[3, 1].lower()).encode(\"utf-8\")+b\"0406600e7e5aeca9\").hexdigest() == \"b59490696297514c83cb829a3f72020a39b96659\", \"value of fast_food.iloc[3, 1] is not correct\"\n", - "assert sha1(str(fast_food.iloc[3, 1]).encode(\"utf-8\")+b\"0406600e7e5aeca9\").hexdigest() == \"773de4834e0eb967d75bf16f86b406559fd1a90b\", \"correct string value of fast_food.iloc[3, 1] but incorrect case of letters\"\n", + "assert sha1(str(type(fast_food.iloc[3, 1])).encode(\"utf-8\")+b\"f205b4602b4d11a3\").hexdigest() == \"bb28566e49dde332129790031ce85b31ec26b4c7\", \"type of fast_food.iloc[3, 1] is not str. fast_food.iloc[3, 1] should be an str\"\n", + "assert sha1(str(len(fast_food.iloc[3, 1])).encode(\"utf-8\")+b\"f205b4602b4d11a3\").hexdigest() == \"1eba51f4143728a57fcc25c15ff8109aaa28e0f0\", \"length of fast_food.iloc[3, 1] is not correct\"\n", + "assert sha1(str(fast_food.iloc[3, 1].lower()).encode(\"utf-8\")+b\"f205b4602b4d11a3\").hexdigest() == \"e0952710abaf0a8902e3e5ee56560311bce337b6\", \"value of fast_food.iloc[3, 1] is not correct\"\n", + "assert sha1(str(fast_food.iloc[3, 1]).encode(\"utf-8\")+b\"f205b4602b4d11a3\").hexdigest() == \"3a8c63c50f7e271045cb88e927c589563187b842\", \"correct string value of fast_food.iloc[3, 1] but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1862,7 +1862,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "fd34b94c91488ba8fe8ae90d8971d2fd", + "checksum": "3cd418c796280e4b30d37791820f200c", "grade": true, "grade_id": "cell-d5c80de7a7a08e65", "locked": true, @@ -1875,10 +1875,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_2_1)).encode(\"utf-8\")+b\"05b3f52ceaf7071d\").hexdigest() == \"847686cdfab77744ee9b28aace13e3a7edfc0318\", \"type of answer2_2_1 is not str. answer2_2_1 should be an str\"\n", - "assert sha1(str(len(answer2_2_1)).encode(\"utf-8\")+b\"05b3f52ceaf7071d\").hexdigest() == \"653a710b12fbfbc7e6c08811a315ac0b8a83a9fa\", \"length of answer2_2_1 is not correct\"\n", - "assert sha1(str(answer2_2_1.lower()).encode(\"utf-8\")+b\"05b3f52ceaf7071d\").hexdigest() == \"e78fdf5f55727ddb67862900ae72d822f328eb4b\", \"value of answer2_2_1 is not correct\"\n", - "assert sha1(str(answer2_2_1).encode(\"utf-8\")+b\"05b3f52ceaf7071d\").hexdigest() == \"90227345ad62c31ec9c9b669aad66f9f834eef27\", \"correct string value of answer2_2_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_2_1)).encode(\"utf-8\")+b\"7c830d0f7ee3cf91\").hexdigest() == \"8d60d50a0e8f6b7327214d8b1f2ad91f7ae28b03\", \"type of answer2_2_1 is not str. answer2_2_1 should be an str\"\n", + "assert sha1(str(len(answer2_2_1)).encode(\"utf-8\")+b\"7c830d0f7ee3cf91\").hexdigest() == \"44e178f850c213b1c52613f6319b8b528ebc5a59\", \"length of answer2_2_1 is not correct\"\n", + "assert sha1(str(answer2_2_1.lower()).encode(\"utf-8\")+b\"7c830d0f7ee3cf91\").hexdigest() == \"fa0d0ffd56a42a1402427224bac8c030da6676d4\", \"value of answer2_2_1 is not correct\"\n", + "assert sha1(str(answer2_2_1).encode(\"utf-8\")+b\"7c830d0f7ee3cf91\").hexdigest() == \"8c497d89c7f79c12984153f1cc60325750389a92\", \"correct string value of answer2_2_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1946,7 +1946,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b1267f50e3734751fd1ed7cadb6de51c", + "checksum": "21d0b80fd1fb36dd422cc32234d48300", "grade": true, "grade_id": "cell-f2aa06843158a15e", "locked": true, @@ -1958,16 +1958,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(top_restaurants is None)).encode(\"utf-8\")+b\"77348d4e605abc92\").hexdigest() == \"29f7ce3d06ac184877575f2a51fb627c868689d3\", \"type of top_restaurants is None is not bool. top_restaurants is None should be a bool\"\n", - "assert sha1(str(top_restaurants is None).encode(\"utf-8\")+b\"77348d4e605abc92\").hexdigest() == \"211836d526b05ac59c8b749370d5d20582f236f2\", \"boolean value of top_restaurants is None is not correct\"\n", + "assert sha1(str(type(top_restaurants is None)).encode(\"utf-8\")+b\"b29d4eef07faed39\").hexdigest() == \"a77ce0f73d92461191f1bd0d705f1afd5ff91087\", \"type of top_restaurants is None is not bool. top_restaurants is None should be a bool\"\n", + "assert sha1(str(top_restaurants is None).encode(\"utf-8\")+b\"b29d4eef07faed39\").hexdigest() == \"fc0865f1df5574246c97225cde5a3d461e7527b0\", \"boolean value of top_restaurants is None is not correct\"\n", "\n", - "assert sha1(str(type(top_restaurants.shape)).encode(\"utf-8\")+b\"a0304e3ec015d493\").hexdigest() == \"057bfa85be7ed5d1c76bda51a292ab8caf0cada8\", \"type of top_restaurants.shape is not tuple. top_restaurants.shape should be a tuple\"\n", - "assert sha1(str(len(top_restaurants.shape)).encode(\"utf-8\")+b\"a0304e3ec015d493\").hexdigest() == \"910e99e4faf3beda811eae1dd21ff16d5a7e58f2\", \"length of top_restaurants.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, top_restaurants.shape))).encode(\"utf-8\")+b\"a0304e3ec015d493\").hexdigest() == \"df7737fae72c1c4e9edfe3e482ea8a7de91c456b\", \"values of top_restaurants.shape are not correct\"\n", - "assert sha1(str(top_restaurants.shape).encode(\"utf-8\")+b\"a0304e3ec015d493\").hexdigest() == \"ec9698cc4f5f5f9439e0d478b85b426669b08573\", \"order of elements of top_restaurants.shape is not correct\"\n", + "assert sha1(str(type(top_restaurants.shape)).encode(\"utf-8\")+b\"d191c42522b0da13\").hexdigest() == \"b2dac76f11579146f92841e4112a955545d88ea7\", \"type of top_restaurants.shape is not tuple. top_restaurants.shape should be a tuple\"\n", + "assert sha1(str(len(top_restaurants.shape)).encode(\"utf-8\")+b\"d191c42522b0da13\").hexdigest() == \"a38415e5a624908dafd66a9fbfd05367dd9c75de\", \"length of top_restaurants.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, top_restaurants.shape))).encode(\"utf-8\")+b\"d191c42522b0da13\").hexdigest() == \"28939fd3ce4c664b1554cd63949ffe0561efcb67\", \"values of top_restaurants.shape are not correct\"\n", + "assert sha1(str(top_restaurants.shape).encode(\"utf-8\")+b\"d191c42522b0da13\").hexdigest() == \"b9bd8aa336da627e780ed87dc38d03672a84db60\", \"order of elements of top_restaurants.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(top_restaurants['count']))).encode(\"utf-8\")+b\"253911fa81b9d5ad\").hexdigest() == \"3843be3e5f32ef421c982798a57a003f4751d8f2\", \"type of sum(top_restaurants['count']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(top_restaurants['count'])).encode(\"utf-8\")+b\"253911fa81b9d5ad\").hexdigest() == \"1b4165d0da2622f78b3a1ae9b1e8b848744954d6\", \"value of sum(top_restaurants['count']) is not correct\"\n", + "assert sha1(str(type(sum(top_restaurants['count']))).encode(\"utf-8\")+b\"6410e2c747a47bce\").hexdigest() == \"2167c94a564376760a862a830d6f9ed3aa6e13a3\", \"type of sum(top_restaurants['count']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(top_restaurants['count'])).encode(\"utf-8\")+b\"6410e2c747a47bce\").hexdigest() == \"7b33b738cb2a8f42c44fa9aca81a3e0bb5379e9b\", \"value of sum(top_restaurants['count']) is not correct\"\n", "\n", "print('Success!')" ] @@ -2035,7 +2035,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2ae4575f2b031ecd40a46b7b255bfc42", + "checksum": "411812c9a6628719b895921fe754e7ab", "grade": true, "grade_id": "cell-75b9ba0facc9e21e", "locked": true, @@ -2047,29 +2047,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(count_bar_chart is None)).encode(\"utf-8\")+b\"488c981034ab5c15\").hexdigest() == \"6f345c65c0344e5ea18e0ae8b0e4ccfe529f2a1a\", \"type of count_bar_chart is None is not bool. count_bar_chart is None should be a bool\"\n", - "assert sha1(str(count_bar_chart is None).encode(\"utf-8\")+b\"488c981034ab5c15\").hexdigest() == \"a46c36eb9a08bc43ebb2b50d03b91b2bab2361e6\", \"boolean value of count_bar_chart is None is not correct\"\n", + "assert sha1(str(type(count_bar_chart is None)).encode(\"utf-8\")+b\"4d7aa66878eb40be\").hexdigest() == \"8abd63ace295ebbaa6becb680df20453e20c4e6e\", \"type of count_bar_chart is None is not bool. count_bar_chart is None should be a bool\"\n", + "assert sha1(str(count_bar_chart is None).encode(\"utf-8\")+b\"4d7aa66878eb40be\").hexdigest() == \"33bdef14145aea87294de67fde9236b2f523e4c4\", \"boolean value of count_bar_chart is None is not correct\"\n", "\n", - "assert sha1(str(type(count_bar_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"2db2a423fcb9ad47\").hexdigest() == \"797328f1a467f872fec038750941ea8f7f7a4928\", \"type of count_bar_chart.encoding.x['shorthand'] is not str. count_bar_chart.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(count_bar_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"2db2a423fcb9ad47\").hexdigest() == \"ed40e9f93bd83f5888e4bde970c5395b40719a07\", \"length of count_bar_chart.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"2db2a423fcb9ad47\").hexdigest() == \"9c4a33e9fc7cf23023097995e3ca438cea2bac93\", \"value of count_bar_chart.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart.encoding.x['shorthand']).encode(\"utf-8\")+b\"2db2a423fcb9ad47\").hexdigest() == \"9c4a33e9fc7cf23023097995e3ca438cea2bac93\", \"correct string value of count_bar_chart.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"9e20b0c12eca2b05\").hexdigest() == \"951aba324898663f9a880ba0c71c5ce051eb8e14\", \"type of count_bar_chart.encoding.x['shorthand'] is not str. count_bar_chart.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(count_bar_chart.encoding.x['shorthand'])).encode(\"utf-8\")+b\"9e20b0c12eca2b05\").hexdigest() == \"f81288946313b9cb6596c3b67cced3cbf15a3d85\", \"length of count_bar_chart.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"9e20b0c12eca2b05\").hexdigest() == \"18dbaad5fa4ed6197f406f0ed403ba9bc915215f\", \"value of count_bar_chart.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart.encoding.x['shorthand']).encode(\"utf-8\")+b\"9e20b0c12eca2b05\").hexdigest() == \"18dbaad5fa4ed6197f406f0ed403ba9bc915215f\", \"correct string value of count_bar_chart.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(count_bar_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"f636d4db5ce80b80\").hexdigest() == \"87044b3df651da2b0cf0d21d7ea9d9fc74c1d038\", \"type of count_bar_chart.encoding.y['shorthand'] is not str. count_bar_chart.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(count_bar_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"f636d4db5ce80b80\").hexdigest() == \"15f3365c00bb0bcd3f6ff312a86b0c91cbdc7e44\", \"length of count_bar_chart.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"f636d4db5ce80b80\").hexdigest() == \"f27dbb12c03979fd14fa4cfc8d08b256d0b26bd4\", \"value of count_bar_chart.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart.encoding.y['shorthand']).encode(\"utf-8\")+b\"f636d4db5ce80b80\").hexdigest() == \"f27dbb12c03979fd14fa4cfc8d08b256d0b26bd4\", \"correct string value of count_bar_chart.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"f16c5ccfa4ce184b\").hexdigest() == \"be98c4d1234a0c59048df8c4e097b926e9d2f0a7\", \"type of count_bar_chart.encoding.y['shorthand'] is not str. count_bar_chart.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(count_bar_chart.encoding.y['shorthand'])).encode(\"utf-8\")+b\"f16c5ccfa4ce184b\").hexdigest() == \"fe60a6da3790fcffd1889b78ae9dae100ef5cc01\", \"length of count_bar_chart.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"f16c5ccfa4ce184b\").hexdigest() == \"7022a18375f6f061debb52837a14f478e3494bf6\", \"value of count_bar_chart.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart.encoding.y['shorthand']).encode(\"utf-8\")+b\"f16c5ccfa4ce184b\").hexdigest() == \"7022a18375f6f061debb52837a14f478e3494bf6\", \"correct string value of count_bar_chart.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(count_bar_chart.mark)).encode(\"utf-8\")+b\"86eb326d261340a9\").hexdigest() == \"0badf13162d11ff3951a5615b0ebb6655f183c8b\", \"type of count_bar_chart.mark is not str. count_bar_chart.mark should be an str\"\n", - "assert sha1(str(len(count_bar_chart.mark)).encode(\"utf-8\")+b\"86eb326d261340a9\").hexdigest() == \"cda83735bcad5f21ba573d39406a750891d04c34\", \"length of count_bar_chart.mark is not correct\"\n", - "assert sha1(str(count_bar_chart.mark.lower()).encode(\"utf-8\")+b\"86eb326d261340a9\").hexdigest() == \"e600b1bada36f7f080f81c38320f1f2ca3a0f16f\", \"value of count_bar_chart.mark is not correct\"\n", - "assert sha1(str(count_bar_chart.mark).encode(\"utf-8\")+b\"86eb326d261340a9\").hexdigest() == \"e600b1bada36f7f080f81c38320f1f2ca3a0f16f\", \"correct string value of count_bar_chart.mark but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart.mark)).encode(\"utf-8\")+b\"a59e7828259d43ad\").hexdigest() == \"ec80681ecb2ad98675039ad46c90f20b07dd12b8\", \"type of count_bar_chart.mark is not str. count_bar_chart.mark should be an str\"\n", + "assert sha1(str(len(count_bar_chart.mark)).encode(\"utf-8\")+b\"a59e7828259d43ad\").hexdigest() == \"b8cd96f21f495f9028b26243155d71b6962d7bff\", \"length of count_bar_chart.mark is not correct\"\n", + "assert sha1(str(count_bar_chart.mark.lower()).encode(\"utf-8\")+b\"a59e7828259d43ad\").hexdigest() == \"7ac2f551d7fd72934661d3461530287832a66d73\", \"value of count_bar_chart.mark is not correct\"\n", + "assert sha1(str(count_bar_chart.mark).encode(\"utf-8\")+b\"a59e7828259d43ad\").hexdigest() == \"7ac2f551d7fd72934661d3461530287832a66d73\", \"correct string value of count_bar_chart.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(count_bar_chart.encoding.x['title'], str))).encode(\"utf-8\")+b\"eeec82955a94a2d4\").hexdigest() == \"f32cefd9507fc25b9a530ef48fc9ddd83d465f13\", \"type of isinstance(count_bar_chart.encoding.x['title'], str) is not bool. isinstance(count_bar_chart.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(count_bar_chart.encoding.x['title'], str)).encode(\"utf-8\")+b\"eeec82955a94a2d4\").hexdigest() == \"6c854033809f57db0ba2119a226633dc8ea22bd8\", \"boolean value of isinstance(count_bar_chart.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(count_bar_chart.encoding.x['title'], str))).encode(\"utf-8\")+b\"a5f0075d95839d06\").hexdigest() == \"cd63b5303906b52db4520008e983ee2082aff57c\", \"type of isinstance(count_bar_chart.encoding.x['title'], str) is not bool. isinstance(count_bar_chart.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(count_bar_chart.encoding.x['title'], str)).encode(\"utf-8\")+b\"a5f0075d95839d06\").hexdigest() == \"05a24a1e54c6b182cbb16d5e5b9f35547b725dd5\", \"boolean value of isinstance(count_bar_chart.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(count_bar_chart.encoding.y['title'], str))).encode(\"utf-8\")+b\"da8407eca5303c7a\").hexdigest() == \"8d30b908f5fffdd3b96cad0916f08967e24fec4c\", \"type of isinstance(count_bar_chart.encoding.y['title'], str) is not bool. isinstance(count_bar_chart.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(count_bar_chart.encoding.y['title'], str)).encode(\"utf-8\")+b\"da8407eca5303c7a\").hexdigest() == \"d5531ab07868569ca3c6c308c711590f10a0ab98\", \"boolean value of isinstance(count_bar_chart.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(count_bar_chart.encoding.y['title'], str))).encode(\"utf-8\")+b\"77f782e7b81ed563\").hexdigest() == \"2f8890f4c668f7dfaf41bfed20c8118002beb4b6\", \"type of isinstance(count_bar_chart.encoding.y['title'], str) is not bool. isinstance(count_bar_chart.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(count_bar_chart.encoding.y['title'], str)).encode(\"utf-8\")+b\"77f782e7b81ed563\").hexdigest() == \"530707ba59b86d6949c56549c6b3379ec4d3e54e\", \"boolean value of isinstance(count_bar_chart.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2147,7 +2147,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "59ab4fce01ac99b4f7a2dc588cae9b19", + "checksum": "3dc391d08685bb38314292a7fd8a417c", "grade": true, "grade_id": "cell-6fc37492ce4c8caf", "locked": true, @@ -2159,54 +2159,54 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(count_bar_chart_A is None)).encode(\"utf-8\")+b\"2ee6eabae7900635\").hexdigest() == \"54e081a6975a25e7167ae90201091629b3d3c572\", \"type of count_bar_chart_A is None is not bool. count_bar_chart_A is None should be a bool\"\n", - "assert sha1(str(count_bar_chart_A is None).encode(\"utf-8\")+b\"2ee6eabae7900635\").hexdigest() == \"eb6f134c902e75d6c0ea6e9ff22a8ece0231f00c\", \"boolean value of count_bar_chart_A is None is not correct\"\n", + "assert sha1(str(type(count_bar_chart_A is None)).encode(\"utf-8\")+b\"f1812185fb44258f\").hexdigest() == \"1c204726bbbeb8102bb9fbd17295e64995e549d0\", \"type of count_bar_chart_A is None is not bool. count_bar_chart_A is None should be a bool\"\n", + "assert sha1(str(count_bar_chart_A is None).encode(\"utf-8\")+b\"f1812185fb44258f\").hexdigest() == \"103119832a15de3b87500133ca55ceccb739c9bc\", \"boolean value of count_bar_chart_A is None is not correct\"\n", "\n", - "assert sha1(str(type(count_bar_chart_A.encoding.x['shorthand'])).encode(\"utf-8\")+b\"32182bf598bdbbe9\").hexdigest() == \"f0a98da04b43ce004c23f2ef232621d2f0c861df\", \"type of count_bar_chart_A.encoding.x['shorthand'] is not str. count_bar_chart_A.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(count_bar_chart_A.encoding.x['shorthand'])).encode(\"utf-8\")+b\"32182bf598bdbbe9\").hexdigest() == \"d31b2739c9b2e7a2da5fa4a69a48a1b4db5fe515\", \"length of count_bar_chart_A.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_A.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"32182bf598bdbbe9\").hexdigest() == \"b7a4c9f98b03d1e3ad8a7c720c0bee2f1bf1360e\", \"value of count_bar_chart_A.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_A.encoding.x['shorthand']).encode(\"utf-8\")+b\"32182bf598bdbbe9\").hexdigest() == \"b7a4c9f98b03d1e3ad8a7c720c0bee2f1bf1360e\", \"correct string value of count_bar_chart_A.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart_A.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a1b23a11535bc8b2\").hexdigest() == \"beae8d3a5194b188f6ddd2db94feee146101ce1c\", \"type of count_bar_chart_A.encoding.x['shorthand'] is not str. count_bar_chart_A.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(count_bar_chart_A.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a1b23a11535bc8b2\").hexdigest() == \"8a9d7ea39aff137c2fe2a3e4088c40e72dde3836\", \"length of count_bar_chart_A.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_A.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"a1b23a11535bc8b2\").hexdigest() == \"4ae2cf9625ee48abf2a98f2e46e3cf204422b894\", \"value of count_bar_chart_A.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_A.encoding.x['shorthand']).encode(\"utf-8\")+b\"a1b23a11535bc8b2\").hexdigest() == \"4ae2cf9625ee48abf2a98f2e46e3cf204422b894\", \"correct string value of count_bar_chart_A.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(count_bar_chart_A.encoding.y['shorthand'])).encode(\"utf-8\")+b\"1398762ce4f44742\").hexdigest() == \"57ec760b851b72b299807d46fb4363774a1ac4ac\", \"type of count_bar_chart_A.encoding.y['shorthand'] is not str. count_bar_chart_A.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(count_bar_chart_A.encoding.y['shorthand'])).encode(\"utf-8\")+b\"1398762ce4f44742\").hexdigest() == \"8e23b326072fa8a173ea3eed7dc634eb8d06acca\", \"length of count_bar_chart_A.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_A.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"1398762ce4f44742\").hexdigest() == \"a822796d8abbdd36ab16e16c961e334a3fa24e1b\", \"value of count_bar_chart_A.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_A.encoding.y['shorthand']).encode(\"utf-8\")+b\"1398762ce4f44742\").hexdigest() == \"a822796d8abbdd36ab16e16c961e334a3fa24e1b\", \"correct string value of count_bar_chart_A.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart_A.encoding.y['shorthand'])).encode(\"utf-8\")+b\"608aef7b79dc1288\").hexdigest() == \"58a04c12a7f31ae6afc7c2247c4b578b8f13121b\", \"type of count_bar_chart_A.encoding.y['shorthand'] is not str. count_bar_chart_A.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(count_bar_chart_A.encoding.y['shorthand'])).encode(\"utf-8\")+b\"608aef7b79dc1288\").hexdigest() == \"984f5925ce631f4f30188aeaea3f23df47e5fb9c\", \"length of count_bar_chart_A.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_A.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"608aef7b79dc1288\").hexdigest() == \"ae394ba5b2632e149d29af3bc62a1f1622833d83\", \"value of count_bar_chart_A.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_A.encoding.y['shorthand']).encode(\"utf-8\")+b\"608aef7b79dc1288\").hexdigest() == \"ae394ba5b2632e149d29af3bc62a1f1622833d83\", \"correct string value of count_bar_chart_A.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(count_bar_chart_A.mark)).encode(\"utf-8\")+b\"11835921b4fd6435\").hexdigest() == \"3d64eb0b488a36bed0bc0d4f4e4e390c96c9d611\", \"type of count_bar_chart_A.mark is not str. count_bar_chart_A.mark should be an str\"\n", - "assert sha1(str(len(count_bar_chart_A.mark)).encode(\"utf-8\")+b\"11835921b4fd6435\").hexdigest() == \"de701a1cb9680d2281a73744a6259f68fab1c146\", \"length of count_bar_chart_A.mark is not correct\"\n", - "assert sha1(str(count_bar_chart_A.mark.lower()).encode(\"utf-8\")+b\"11835921b4fd6435\").hexdigest() == \"f3a76fcbb910f411cbeeb4c3eaa5c6347f5f690f\", \"value of count_bar_chart_A.mark is not correct\"\n", - "assert sha1(str(count_bar_chart_A.mark).encode(\"utf-8\")+b\"11835921b4fd6435\").hexdigest() == \"f3a76fcbb910f411cbeeb4c3eaa5c6347f5f690f\", \"correct string value of count_bar_chart_A.mark but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart_A.mark)).encode(\"utf-8\")+b\"81a28941c44403a1\").hexdigest() == \"f680b23e02a90bdef00a9852682fa1a94f8c2948\", \"type of count_bar_chart_A.mark is not str. count_bar_chart_A.mark should be an str\"\n", + "assert sha1(str(len(count_bar_chart_A.mark)).encode(\"utf-8\")+b\"81a28941c44403a1\").hexdigest() == \"9d445b0bb9150033a4446edc9ce739accaae65cd\", \"length of count_bar_chart_A.mark is not correct\"\n", + "assert sha1(str(count_bar_chart_A.mark.lower()).encode(\"utf-8\")+b\"81a28941c44403a1\").hexdigest() == \"110e98cfef08fc58a60c9c1cd2f71182b0ba306e\", \"value of count_bar_chart_A.mark is not correct\"\n", + "assert sha1(str(count_bar_chart_A.mark).encode(\"utf-8\")+b\"81a28941c44403a1\").hexdigest() == \"110e98cfef08fc58a60c9c1cd2f71182b0ba306e\", \"correct string value of count_bar_chart_A.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(count_bar_chart_A.encoding.x['title'], str))).encode(\"utf-8\")+b\"eef4aab0973f3f99\").hexdigest() == \"e00bf1d2c013f0f2612d05859be96e0d6271dfdd\", \"type of isinstance(count_bar_chart_A.encoding.x['title'], str) is not bool. isinstance(count_bar_chart_A.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(count_bar_chart_A.encoding.x['title'], str)).encode(\"utf-8\")+b\"eef4aab0973f3f99\").hexdigest() == \"f861e497a6df6243529a51ce3be6a872d652f6c5\", \"boolean value of isinstance(count_bar_chart_A.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(count_bar_chart_A.encoding.x['title'], str))).encode(\"utf-8\")+b\"fb90de7427d4113b\").hexdigest() == \"38140c1c5ec0d7f12a2bee65407c1f0c26fbaa51\", \"type of isinstance(count_bar_chart_A.encoding.x['title'], str) is not bool. isinstance(count_bar_chart_A.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(count_bar_chart_A.encoding.x['title'], str)).encode(\"utf-8\")+b\"fb90de7427d4113b\").hexdigest() == \"f31302dbf8588e7a917c93177b3b2b9d8ba39b81\", \"boolean value of isinstance(count_bar_chart_A.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(count_bar_chart_A.encoding.y['title'], str))).encode(\"utf-8\")+b\"46cddc3adc90e60c\").hexdigest() == \"122dd78e8c843cb8e397d7606b6c4c5a187217e2\", \"type of isinstance(count_bar_chart_A.encoding.y['title'], str) is not bool. isinstance(count_bar_chart_A.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(count_bar_chart_A.encoding.y['title'], str)).encode(\"utf-8\")+b\"46cddc3adc90e60c\").hexdigest() == \"6e667484ceee467e33a6a3136f650ff9f80ff237\", \"boolean value of isinstance(count_bar_chart_A.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(count_bar_chart_A.encoding.y['title'], str))).encode(\"utf-8\")+b\"7add4cf5cabf3cd2\").hexdigest() == \"2f8ae119fbc3011921f63ee9ed06cbf844a82bcf\", \"type of isinstance(count_bar_chart_A.encoding.y['title'], str) is not bool. isinstance(count_bar_chart_A.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(count_bar_chart_A.encoding.y['title'], str)).encode(\"utf-8\")+b\"7add4cf5cabf3cd2\").hexdigest() == \"a74c900930307b3902cd5b78d466901be47cc315\", \"boolean value of isinstance(count_bar_chart_A.encoding.y['title'], str) is not correct\"\n", "\n", "\n", - "assert sha1(str(type(count_bar_chart_B is None)).encode(\"utf-8\")+b\"277deda869b7e614\").hexdigest() == \"dd05d35ecd8f3ad3d8f10e8918c69129965f1fd3\", \"type of count_bar_chart_B is None is not bool. count_bar_chart_B is None should be a bool\"\n", - "assert sha1(str(count_bar_chart_B is None).encode(\"utf-8\")+b\"277deda869b7e614\").hexdigest() == \"5bf3d79fffb947f762d22cbfb34719abb3ec0642\", \"boolean value of count_bar_chart_B is None is not correct\"\n", + "assert sha1(str(type(count_bar_chart_B is None)).encode(\"utf-8\")+b\"4d1f2d96c6c697de\").hexdigest() == \"88dd0a8bafdc61a968a9eeeebae1419079657988\", \"type of count_bar_chart_B is None is not bool. count_bar_chart_B is None should be a bool\"\n", + "assert sha1(str(count_bar_chart_B is None).encode(\"utf-8\")+b\"4d1f2d96c6c697de\").hexdigest() == \"0f81eba3eb09fad1ac52682e3e5cf70e0d3f241f\", \"boolean value of count_bar_chart_B is None is not correct\"\n", "\n", - "assert sha1(str(type(count_bar_chart_B.encoding.x['shorthand'])).encode(\"utf-8\")+b\"95017c3cce399127\").hexdigest() == \"4f8734f84d1f1db98898327c1bbe3a77bf5c9c1d\", \"type of count_bar_chart_B.encoding.x['shorthand'] is not str. count_bar_chart_B.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(count_bar_chart_B.encoding.x['shorthand'])).encode(\"utf-8\")+b\"95017c3cce399127\").hexdigest() == \"9b467bccd7b460799607855c09fb415bf8be4958\", \"length of count_bar_chart_B.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_B.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"95017c3cce399127\").hexdigest() == \"3f23a9d40ee5f2eae78b1ec430d1fa091a6c8cef\", \"value of count_bar_chart_B.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_B.encoding.x['shorthand']).encode(\"utf-8\")+b\"95017c3cce399127\").hexdigest() == \"3f23a9d40ee5f2eae78b1ec430d1fa091a6c8cef\", \"correct string value of count_bar_chart_B.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart_B.encoding.x['shorthand'])).encode(\"utf-8\")+b\"cb5082dac891cecb\").hexdigest() == \"11e9e906c1760737be772d36cf9102ca54db1236\", \"type of count_bar_chart_B.encoding.x['shorthand'] is not str. count_bar_chart_B.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(count_bar_chart_B.encoding.x['shorthand'])).encode(\"utf-8\")+b\"cb5082dac891cecb\").hexdigest() == \"702c776744327152555affb18714db94668e2842\", \"length of count_bar_chart_B.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_B.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"cb5082dac891cecb\").hexdigest() == \"dda3422c156ff78679bf6cee80a54cf123623b83\", \"value of count_bar_chart_B.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_B.encoding.x['shorthand']).encode(\"utf-8\")+b\"cb5082dac891cecb\").hexdigest() == \"dda3422c156ff78679bf6cee80a54cf123623b83\", \"correct string value of count_bar_chart_B.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(count_bar_chart_B.encoding.y['shorthand'])).encode(\"utf-8\")+b\"c635dbaabeb3acf5\").hexdigest() == \"755b2946b46cce67f8f1730197222ebb5e8905be\", \"type of count_bar_chart_B.encoding.y['shorthand'] is not str. count_bar_chart_B.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(count_bar_chart_B.encoding.y['shorthand'])).encode(\"utf-8\")+b\"c635dbaabeb3acf5\").hexdigest() == \"6d8075a3e9411378492898be45950f44f4606e15\", \"length of count_bar_chart_B.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_B.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"c635dbaabeb3acf5\").hexdigest() == \"22007b95d1e22ceed4148da5b7f4ca01115cfc9b\", \"value of count_bar_chart_B.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(count_bar_chart_B.encoding.y['shorthand']).encode(\"utf-8\")+b\"c635dbaabeb3acf5\").hexdigest() == \"22007b95d1e22ceed4148da5b7f4ca01115cfc9b\", \"correct string value of count_bar_chart_B.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart_B.encoding.y['shorthand'])).encode(\"utf-8\")+b\"3c35b7c801d6679e\").hexdigest() == \"7b824fb6e59264fe91ecd2de856c5a5bd125e5e4\", \"type of count_bar_chart_B.encoding.y['shorthand'] is not str. count_bar_chart_B.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(count_bar_chart_B.encoding.y['shorthand'])).encode(\"utf-8\")+b\"3c35b7c801d6679e\").hexdigest() == \"5b9f7e9c643ca39dfb2240ecf5071f359e51b1b4\", \"length of count_bar_chart_B.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_B.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"3c35b7c801d6679e\").hexdigest() == \"e305b8f335e68e5f9df054b4113460786f0f4c30\", \"value of count_bar_chart_B.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(count_bar_chart_B.encoding.y['shorthand']).encode(\"utf-8\")+b\"3c35b7c801d6679e\").hexdigest() == \"e305b8f335e68e5f9df054b4113460786f0f4c30\", \"correct string value of count_bar_chart_B.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(count_bar_chart_B.mark)).encode(\"utf-8\")+b\"ac5f615a3966a3af\").hexdigest() == \"f65dfb034577bc754231d16b2a6f6c4f30a15fdc\", \"type of count_bar_chart_B.mark is not str. count_bar_chart_B.mark should be an str\"\n", - "assert sha1(str(len(count_bar_chart_B.mark)).encode(\"utf-8\")+b\"ac5f615a3966a3af\").hexdigest() == \"0d807832d34478910008c76940b0ffdbed17a104\", \"length of count_bar_chart_B.mark is not correct\"\n", - "assert sha1(str(count_bar_chart_B.mark.lower()).encode(\"utf-8\")+b\"ac5f615a3966a3af\").hexdigest() == \"d9612d12a1ab00b6984fe1f8bd7c83ee799cdd5e\", \"value of count_bar_chart_B.mark is not correct\"\n", - "assert sha1(str(count_bar_chart_B.mark).encode(\"utf-8\")+b\"ac5f615a3966a3af\").hexdigest() == \"d9612d12a1ab00b6984fe1f8bd7c83ee799cdd5e\", \"correct string value of count_bar_chart_B.mark but incorrect case of letters\"\n", + "assert sha1(str(type(count_bar_chart_B.mark)).encode(\"utf-8\")+b\"33fbb3dd09f82359\").hexdigest() == \"12962853e312333d373163ed70ddcfffb66d7e6a\", \"type of count_bar_chart_B.mark is not str. count_bar_chart_B.mark should be an str\"\n", + "assert sha1(str(len(count_bar_chart_B.mark)).encode(\"utf-8\")+b\"33fbb3dd09f82359\").hexdigest() == \"6909ef6e4f54728056f2df702f7aa99c33936826\", \"length of count_bar_chart_B.mark is not correct\"\n", + "assert sha1(str(count_bar_chart_B.mark.lower()).encode(\"utf-8\")+b\"33fbb3dd09f82359\").hexdigest() == \"6a8709052a8664c0eae9f7b4f97b47563ba56321\", \"value of count_bar_chart_B.mark is not correct\"\n", + "assert sha1(str(count_bar_chart_B.mark).encode(\"utf-8\")+b\"33fbb3dd09f82359\").hexdigest() == \"6a8709052a8664c0eae9f7b4f97b47563ba56321\", \"correct string value of count_bar_chart_B.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(count_bar_chart_B.encoding.x['title'], str))).encode(\"utf-8\")+b\"a0755cd28bf5ec97\").hexdigest() == \"a7fa8c1273ecddb7642e126114bfed90c70b978b\", \"type of isinstance(count_bar_chart_B.encoding.x['title'], str) is not bool. isinstance(count_bar_chart_B.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(count_bar_chart_B.encoding.x['title'], str)).encode(\"utf-8\")+b\"a0755cd28bf5ec97\").hexdigest() == \"12899d57aa017b2233b6bf9399820fafef449ca8\", \"boolean value of isinstance(count_bar_chart_B.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(count_bar_chart_B.encoding.x['title'], str))).encode(\"utf-8\")+b\"3516c2418091ca98\").hexdigest() == \"cbf1aaddd93245d80dc19edd71b0861ec3ba3079\", \"type of isinstance(count_bar_chart_B.encoding.x['title'], str) is not bool. isinstance(count_bar_chart_B.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(count_bar_chart_B.encoding.x['title'], str)).encode(\"utf-8\")+b\"3516c2418091ca98\").hexdigest() == \"330c549816e9e50cbc2b0ca8d888479d0ca1fe4c\", \"boolean value of isinstance(count_bar_chart_B.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(count_bar_chart_B.encoding.y['title'], str))).encode(\"utf-8\")+b\"c531963b20e11b32\").hexdigest() == \"2bc6938a9fa007ce0fce82209373037e5c2945f0\", \"type of isinstance(count_bar_chart_B.encoding.y['title'], str) is not bool. isinstance(count_bar_chart_B.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(count_bar_chart_B.encoding.y['title'], str)).encode(\"utf-8\")+b\"c531963b20e11b32\").hexdigest() == \"eaed1c5eeca3e1ef7bc399ee3dd9f9cba40dfec7\", \"boolean value of isinstance(count_bar_chart_B.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(count_bar_chart_B.encoding.y['title'], str))).encode(\"utf-8\")+b\"e290be29fbec85a9\").hexdigest() == \"5eab4e9d8dc47131bb8e74226c257f23f0085b75\", \"type of isinstance(count_bar_chart_B.encoding.y['title'], str) is not bool. isinstance(count_bar_chart_B.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(count_bar_chart_B.encoding.y['title'], str)).encode(\"utf-8\")+b\"e290be29fbec85a9\").hexdigest() == \"a2c72734428d7b2e15b15346b49e1d908e913c22\", \"boolean value of isinstance(count_bar_chart_B.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2262,7 +2262,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "9af21674935b3c6b31a74e0ea033dad1", + "checksum": "5809550df1e510179bf5a294c4ca64bd", "grade": true, "grade_id": "cell-7e1f5a0036666e46", "locked": true, @@ -2274,10 +2274,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"7de78f5489f5e00a\").hexdigest() == \"be7187b4e5c47b71eff2a4bd0930152f38c1ca47\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", - "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"7de78f5489f5e00a\").hexdigest() == \"e3a5879b266944bca46f7fca4447a5314a4247b6\", \"length of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"7de78f5489f5e00a\").hexdigest() == \"1e02ad09b71b7bc45ff670cdeb458d6809749e08\", \"value of answer2_6 is not correct\"\n", - "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"7de78f5489f5e00a\").hexdigest() == \"90791d62f11b9c412a245b407f6f3d9954ff7270\", \"correct string value of answer2_6 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_6)).encode(\"utf-8\")+b\"80d9815043c207f3\").hexdigest() == \"18ed923a5659abce9aff0682c1b0e64f0342f751\", \"type of answer2_6 is not str. answer2_6 should be an str\"\n", + "assert sha1(str(len(answer2_6)).encode(\"utf-8\")+b\"80d9815043c207f3\").hexdigest() == \"2cfa96e033f906f86fb895ac1e54c89ad12dce86\", \"length of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6.lower()).encode(\"utf-8\")+b\"80d9815043c207f3\").hexdigest() == \"8392a07658f8a2526a7ded0073a912158e630a5d\", \"value of answer2_6 is not correct\"\n", + "assert sha1(str(answer2_6).encode(\"utf-8\")+b\"80d9815043c207f3\").hexdigest() == \"2a35e9024db4e8c9d0301c7764d860f5f15ca6c8\", \"correct string value of answer2_6 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2343,7 +2343,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "aae2147a1f8450681ae7665d31c8f540", + "checksum": "0adac6a8bf841f89a91909ae1ec82f7a", "grade": true, "grade_id": "cell-53713f7578969f5c", "locked": true, @@ -2355,19 +2355,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(state_counts is None)).encode(\"utf-8\")+b\"a2ad1d27657c4e07\").hexdigest() == \"3923f29de0df598e4085c3fd39a6f2d7aea2992e\", \"type of state_counts is None is not bool. state_counts is None should be a bool\"\n", - "assert sha1(str(state_counts is None).encode(\"utf-8\")+b\"a2ad1d27657c4e07\").hexdigest() == \"898a60fcbb1c1b523c218a3f24fd174697b2ad12\", \"boolean value of state_counts is None is not correct\"\n", + "assert sha1(str(type(state_counts is None)).encode(\"utf-8\")+b\"5c7ea85af1c58f52\").hexdigest() == \"74dce5d02070f239a98b7acfa39583311270abd7\", \"type of state_counts is None is not bool. state_counts is None should be a bool\"\n", + "assert sha1(str(state_counts is None).encode(\"utf-8\")+b\"5c7ea85af1c58f52\").hexdigest() == \"f2ab62dcd3956595b3ce22f7e63926d1c1cca8f7\", \"boolean value of state_counts is None is not correct\"\n", "\n", - "assert sha1(str(type(state_counts.st.values)).encode(\"utf-8\")+b\"f768ac127248c84f\").hexdigest() == \"d7f69f9ddf1625b7118e3976ecd57bc163154270\", \"type of state_counts.st.values is not correct\"\n", - "assert sha1(str(state_counts.st.values).encode(\"utf-8\")+b\"f768ac127248c84f\").hexdigest() == \"52278839feae37d162eb364a6e76760ac4922005\", \"value of state_counts.st.values is not correct\"\n", + "assert sha1(str(type(state_counts.st.values)).encode(\"utf-8\")+b\"0eed8d5d2601176b\").hexdigest() == \"47f54f91d20874c2395c494adb7bfcd97838d0a0\", \"type of state_counts.st.values is not correct\"\n", + "assert sha1(str(state_counts.st.values).encode(\"utf-8\")+b\"0eed8d5d2601176b\").hexdigest() == \"2aadd82194feefa53bd29c951c9d2ba0a6409098\", \"value of state_counts.st.values is not correct\"\n", "\n", - "assert sha1(str(type(state_counts.shape)).encode(\"utf-8\")+b\"c41d3f8c136efd9c\").hexdigest() == \"01dcd305eb6c46eca768667f5321f25a747984c2\", \"type of state_counts.shape is not tuple. state_counts.shape should be a tuple\"\n", - "assert sha1(str(len(state_counts.shape)).encode(\"utf-8\")+b\"c41d3f8c136efd9c\").hexdigest() == \"6656ef79ac29825ce6994513d7ab8e9e303e7f98\", \"length of state_counts.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, state_counts.shape))).encode(\"utf-8\")+b\"c41d3f8c136efd9c\").hexdigest() == \"2a403d55012c8370eab3c5abc7ad852153b1ff73\", \"values of state_counts.shape are not correct\"\n", - "assert sha1(str(state_counts.shape).encode(\"utf-8\")+b\"c41d3f8c136efd9c\").hexdigest() == \"4c182fe2eef8338114de555adb2d2c3852d1f290\", \"order of elements of state_counts.shape is not correct\"\n", + "assert sha1(str(type(state_counts.shape)).encode(\"utf-8\")+b\"43d796b5e6b49806\").hexdigest() == \"238e2d384ff872988e1f15ff516f81bca16956f5\", \"type of state_counts.shape is not tuple. state_counts.shape should be a tuple\"\n", + "assert sha1(str(len(state_counts.shape)).encode(\"utf-8\")+b\"43d796b5e6b49806\").hexdigest() == \"18c22cae6a332bbe988497aaaa8944dda5ca19bd\", \"length of state_counts.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, state_counts.shape))).encode(\"utf-8\")+b\"43d796b5e6b49806\").hexdigest() == \"79715c21f46e689f351741de10ad92c89216221f\", \"values of state_counts.shape are not correct\"\n", + "assert sha1(str(state_counts.shape).encode(\"utf-8\")+b\"43d796b5e6b49806\").hexdigest() == \"0286e36e0af57df5ec86ebe0f1f46b4cb889cb5f\", \"order of elements of state_counts.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(state_counts['count']))).encode(\"utf-8\")+b\"8f4960347d101fd7\").hexdigest() == \"7179b2266ad428603776efac317c74be06ddf80c\", \"type of sum(state_counts['count']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(state_counts['count'])).encode(\"utf-8\")+b\"8f4960347d101fd7\").hexdigest() == \"89e1335888093b4095f6fc509e81c7c7b5460235\", \"value of sum(state_counts['count']) is not correct\"\n", + "assert sha1(str(type(sum(state_counts['count']))).encode(\"utf-8\")+b\"73923ec9a493eb2e\").hexdigest() == \"cb48a79deb1811e187ae02066ffb8c072d298b48\", \"type of sum(state_counts['count']) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(state_counts['count'])).encode(\"utf-8\")+b\"73923ec9a493eb2e\").hexdigest() == \"d3d542197535fadbe3761001154a2b4c74968bcf\", \"value of sum(state_counts['count']) is not correct\"\n", "\n", "print('Success!')" ] @@ -2426,7 +2426,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "3b85fff16ad4f8b83143ebe0431c8b97", + "checksum": "10138d67cab46c706ab9a554cf3338df", "grade": true, "grade_id": "cell-3ee58280015e1838", "locked": true, @@ -2438,29 +2438,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(state_counts_plot is None)).encode(\"utf-8\")+b\"cc680a45791fa885\").hexdigest() == \"8f9885d72d0b7860e73d709ad21af8c2bc45112f\", \"type of state_counts_plot is None is not bool. state_counts_plot is None should be a bool\"\n", - "assert sha1(str(state_counts_plot is None).encode(\"utf-8\")+b\"cc680a45791fa885\").hexdigest() == \"ceb072e21680904dd3910d656ab8d4156caa09d1\", \"boolean value of state_counts_plot is None is not correct\"\n", + "assert sha1(str(type(state_counts_plot is None)).encode(\"utf-8\")+b\"5671e19da1e72788\").hexdigest() == \"e8d0250093a876fc8a2ed677c24d297c6b6c8e80\", \"type of state_counts_plot is None is not bool. state_counts_plot is None should be a bool\"\n", + "assert sha1(str(state_counts_plot is None).encode(\"utf-8\")+b\"5671e19da1e72788\").hexdigest() == \"09611a5ec0e82918e03d7fe6025dd8e838029d61\", \"boolean value of state_counts_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(state_counts_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f6067f9025ab1663\").hexdigest() == \"db12422a15f54617ef1b73fa51008b6492613267\", \"type of state_counts_plot.encoding.x['shorthand'] is not str. state_counts_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(state_counts_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f6067f9025ab1663\").hexdigest() == \"9b62caf8c493fc1c64887897be19f1ce28fbc823\", \"length of state_counts_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(state_counts_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"f6067f9025ab1663\").hexdigest() == \"94006dd5d52c225c79bd7f1212554776d9ad259e\", \"value of state_counts_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(state_counts_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"f6067f9025ab1663\").hexdigest() == \"94006dd5d52c225c79bd7f1212554776d9ad259e\", \"correct string value of state_counts_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(state_counts_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0c443e9333dcefe1\").hexdigest() == \"241d4061d07191195b2f2d9ebaef74b64809aef6\", \"type of state_counts_plot.encoding.x['shorthand'] is not str. state_counts_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(state_counts_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0c443e9333dcefe1\").hexdigest() == \"78a1f08b22d2cbb5f510504aadde53fcd531b001\", \"length of state_counts_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(state_counts_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"0c443e9333dcefe1\").hexdigest() == \"c4d18c7c9a7c715f414ae48cdfbd4f01867a588e\", \"value of state_counts_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(state_counts_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"0c443e9333dcefe1\").hexdigest() == \"c4d18c7c9a7c715f414ae48cdfbd4f01867a588e\", \"correct string value of state_counts_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(state_counts_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"e251aa1fc8534983\").hexdigest() == \"8076af414c8bd901359916a9d4f88fe859e1a365\", \"type of state_counts_plot.encoding.y['shorthand'] is not str. state_counts_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(state_counts_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"e251aa1fc8534983\").hexdigest() == \"fc50b785a8820562473e9dd6bad675a1c7d4d89f\", \"length of state_counts_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(state_counts_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"e251aa1fc8534983\").hexdigest() == \"32540450297e0236c57fd276c7da7d8abbb460b4\", \"value of state_counts_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(state_counts_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"e251aa1fc8534983\").hexdigest() == \"32540450297e0236c57fd276c7da7d8abbb460b4\", \"correct string value of state_counts_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(state_counts_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"943a792dcd4b62fd\").hexdigest() == \"cfb47318739a6fa71911b9bc2fb279780904b94e\", \"type of state_counts_plot.encoding.y['shorthand'] is not str. state_counts_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(state_counts_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"943a792dcd4b62fd\").hexdigest() == \"d94b357b94daa78477941525b5bbe38d96631e68\", \"length of state_counts_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(state_counts_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"943a792dcd4b62fd\").hexdigest() == \"6fe7c4cde1259cbb025ec750cc82e2b6f39ec934\", \"value of state_counts_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(state_counts_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"943a792dcd4b62fd\").hexdigest() == \"6fe7c4cde1259cbb025ec750cc82e2b6f39ec934\", \"correct string value of state_counts_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(state_counts_plot.mark)).encode(\"utf-8\")+b\"605069d2465ef152\").hexdigest() == \"87f31f710eea889920717abfdcfd1aeb14f0ca59\", \"type of state_counts_plot.mark is not str. state_counts_plot.mark should be an str\"\n", - "assert sha1(str(len(state_counts_plot.mark)).encode(\"utf-8\")+b\"605069d2465ef152\").hexdigest() == \"4d4f22c0b84a9e07a5896e70615dafe43e4768dc\", \"length of state_counts_plot.mark is not correct\"\n", - "assert sha1(str(state_counts_plot.mark.lower()).encode(\"utf-8\")+b\"605069d2465ef152\").hexdigest() == \"a019993f4b73de52faec323696741792ade9cfc4\", \"value of state_counts_plot.mark is not correct\"\n", - "assert sha1(str(state_counts_plot.mark).encode(\"utf-8\")+b\"605069d2465ef152\").hexdigest() == \"a019993f4b73de52faec323696741792ade9cfc4\", \"correct string value of state_counts_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(state_counts_plot.mark)).encode(\"utf-8\")+b\"902d07c887daa44f\").hexdigest() == \"f70399355e151150127dc7344c100e63785b64e3\", \"type of state_counts_plot.mark is not str. state_counts_plot.mark should be an str\"\n", + "assert sha1(str(len(state_counts_plot.mark)).encode(\"utf-8\")+b\"902d07c887daa44f\").hexdigest() == \"61e0219c99c82c3fde4b8f0df8bca9e850af2885\", \"length of state_counts_plot.mark is not correct\"\n", + "assert sha1(str(state_counts_plot.mark.lower()).encode(\"utf-8\")+b\"902d07c887daa44f\").hexdigest() == \"5f799b3ee391a0eee818f9aba076e4223ef3efec\", \"value of state_counts_plot.mark is not correct\"\n", + "assert sha1(str(state_counts_plot.mark).encode(\"utf-8\")+b\"902d07c887daa44f\").hexdigest() == \"5f799b3ee391a0eee818f9aba076e4223ef3efec\", \"correct string value of state_counts_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(state_counts_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"5e2e227bf25e2306\").hexdigest() == \"d0e22896767fcfbb123060c5f95af9c2771fafd5\", \"type of isinstance(state_counts_plot.encoding.x['title'], str) is not bool. isinstance(state_counts_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(state_counts_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"5e2e227bf25e2306\").hexdigest() == \"09a4a66d2bdcfa755a222821785d7f7dfc8889d9\", \"boolean value of isinstance(state_counts_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(state_counts_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"1dc1d72aba8d7e01\").hexdigest() == \"e938ec20fe1866aee0f3643293928c851c3386f5\", \"type of isinstance(state_counts_plot.encoding.x['title'], str) is not bool. isinstance(state_counts_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(state_counts_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"1dc1d72aba8d7e01\").hexdigest() == \"4d742cd5ac383f701fd9e451ed11337e64bf5065\", \"boolean value of isinstance(state_counts_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(state_counts_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"8bb31b15f1bf0500\").hexdigest() == \"407a061b6252688129f65f43e10b85fdcc6180c5\", \"type of isinstance(state_counts_plot.encoding.y['title'], str) is not bool. isinstance(state_counts_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(state_counts_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"8bb31b15f1bf0500\").hexdigest() == \"1a18935f2cd1c2a69259df7651d25e06dc17319e\", \"boolean value of isinstance(state_counts_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(state_counts_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"8ddfacd427adaf17\").hexdigest() == \"9e3408778bddac79403ca9fd8f61514e2a9fdc47\", \"type of isinstance(state_counts_plot.encoding.y['title'], str) is not bool. isinstance(state_counts_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(state_counts_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"8ddfacd427adaf17\").hexdigest() == \"6163b39c139a2961209e75060f357b816bc1cdea\", \"boolean value of isinstance(state_counts_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2516,7 +2516,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0ce931fef348c7cad68043df189fc29a", + "checksum": "acdc59eb98c50c3c274ee2a22a9b4377", "grade": true, "grade_id": "cell-a17cc0ffac7cd795", "locked": true, @@ -2528,10 +2528,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_9_0)).encode(\"utf-8\")+b\"30398eaa77b11c81\").hexdigest() == \"4e94f75ebd6c9d8708318c4a53a78e84f49aebcc\", \"type of answer2_9_0 is not str. answer2_9_0 should be an str\"\n", - "assert sha1(str(len(answer2_9_0)).encode(\"utf-8\")+b\"30398eaa77b11c81\").hexdigest() == \"160c7cf7e8eed3bd08d64135bbca6d2884b2eeed\", \"length of answer2_9_0 is not correct\"\n", - "assert sha1(str(answer2_9_0.lower()).encode(\"utf-8\")+b\"30398eaa77b11c81\").hexdigest() == \"d8075b90a674c476e80ef37da709fdeebf3c7e32\", \"value of answer2_9_0 is not correct\"\n", - "assert sha1(str(answer2_9_0).encode(\"utf-8\")+b\"30398eaa77b11c81\").hexdigest() == \"eb65676ec27aaade078568df0d185107a078a32a\", \"correct string value of answer2_9_0 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_9_0)).encode(\"utf-8\")+b\"5ef1bdf48d724e09\").hexdigest() == \"ed387bee7d0b368097f576db27cb9325e673a998\", \"type of answer2_9_0 is not str. answer2_9_0 should be an str\"\n", + "assert sha1(str(len(answer2_9_0)).encode(\"utf-8\")+b\"5ef1bdf48d724e09\").hexdigest() == \"2bfde7836e98ae9da74b9145aabd5e2b75869e91\", \"length of answer2_9_0 is not correct\"\n", + "assert sha1(str(answer2_9_0.lower()).encode(\"utf-8\")+b\"5ef1bdf48d724e09\").hexdigest() == \"e2f8cec1d7065a0faf407413131d3eb6bc50bbcf\", \"value of answer2_9_0 is not correct\"\n", + "assert sha1(str(answer2_9_0).encode(\"utf-8\")+b\"5ef1bdf48d724e09\").hexdigest() == \"c2745ef0b9348f00c766f7cce737f24d0d0836b6\", \"correct string value of answer2_9_0 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2648,7 +2648,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4655d1606cd42888d2def1ae78cd1fe5", + "checksum": "d0311196853e10252cd9c34a36646098", "grade": true, "grade_id": "cell-caee5ba3ec18fa8c", "locked": true, @@ -2661,10 +2661,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_9_1)).encode(\"utf-8\")+b\"8b252086a65e84cf\").hexdigest() == \"5a6c317d771be04b3406cb26b08f228dd5f8164d\", \"type of answer2_9_1 is not str. answer2_9_1 should be an str\"\n", - "assert sha1(str(len(answer2_9_1)).encode(\"utf-8\")+b\"8b252086a65e84cf\").hexdigest() == \"667ac6111d8f885a808f86614a9bcf83367620a9\", \"length of answer2_9_1 is not correct\"\n", - "assert sha1(str(answer2_9_1.lower()).encode(\"utf-8\")+b\"8b252086a65e84cf\").hexdigest() == \"1382d51d122471907cf963c383032103e82a7e44\", \"value of answer2_9_1 is not correct\"\n", - "assert sha1(str(answer2_9_1).encode(\"utf-8\")+b\"8b252086a65e84cf\").hexdigest() == \"658c2cd3a5de9beceb95473c593d42797309e2d6\", \"correct string value of answer2_9_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_9_1)).encode(\"utf-8\")+b\"62eef1866c72f72a\").hexdigest() == \"63852409fb64d45dfcdb7a337017d36f50fa0c27\", \"type of answer2_9_1 is not str. answer2_9_1 should be an str\"\n", + "assert sha1(str(len(answer2_9_1)).encode(\"utf-8\")+b\"62eef1866c72f72a\").hexdigest() == \"fee5982771eec23e0dd54d66025f30045bd8224d\", \"length of answer2_9_1 is not correct\"\n", + "assert sha1(str(answer2_9_1.lower()).encode(\"utf-8\")+b\"62eef1866c72f72a\").hexdigest() == \"777e1427c51918fbfcf35c09f125b4a65c37cbf1\", \"value of answer2_9_1 is not correct\"\n", + "assert sha1(str(answer2_9_1).encode(\"utf-8\")+b\"62eef1866c72f72a\").hexdigest() == \"f18f3e0291eb601f9032dc35688215e8c3017357\", \"correct string value of answer2_9_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2731,7 +2731,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0363dbfcd64586a0a0b43b2abb6c0949", + "checksum": "666f62e102add7d9eb3f1d48dfa9c2cc", "grade": true, "grade_id": "cell-58b0fb2c06951419", "locked": true, @@ -2743,19 +2743,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(top_n_state is None)).encode(\"utf-8\")+b\"8195ac889151e161\").hexdigest() == \"00362728635e7df685645bb47452899e56300d8d\", \"type of top_n_state is None is not bool. top_n_state is None should be a bool\"\n", - "assert sha1(str(top_n_state is None).encode(\"utf-8\")+b\"8195ac889151e161\").hexdigest() == \"e5a7125d813e14afc7ba11e43fcddee7d1561820\", \"boolean value of top_n_state is None is not correct\"\n", + "assert sha1(str(type(top_n_state is None)).encode(\"utf-8\")+b\"268c23298ac1b2ea\").hexdigest() == \"4cc12e20ff735ad10a5e5e374ede8d1e8618590d\", \"type of top_n_state is None is not bool. top_n_state is None should be a bool\"\n", + "assert sha1(str(top_n_state is None).encode(\"utf-8\")+b\"268c23298ac1b2ea\").hexdigest() == \"081ac227f03d91a2060b392afaf3161b50095f2b\", \"boolean value of top_n_state is None is not correct\"\n", "\n", - "assert sha1(str(type(top_n_state.st.unique())).encode(\"utf-8\")+b\"9307f5bd96729eec\").hexdigest() == \"f40baaf6bed11e06379e347f80ed4e21ecabad52\", \"type of top_n_state.st.unique() is not correct\"\n", - "assert sha1(str(top_n_state.st.unique()).encode(\"utf-8\")+b\"9307f5bd96729eec\").hexdigest() == \"6a68c76740d3f02a77324aebe35159b14510adb3\", \"value of top_n_state.st.unique() is not correct\"\n", + "assert sha1(str(type(top_n_state.st.unique())).encode(\"utf-8\")+b\"90f406ff6cc19ad5\").hexdigest() == \"add14aca967a7fdaef9c58839ba5eac48983fab6\", \"type of top_n_state.st.unique() is not correct\"\n", + "assert sha1(str(top_n_state.st.unique()).encode(\"utf-8\")+b\"90f406ff6cc19ad5\").hexdigest() == \"bc9b3a6a8095e2643a4b8b7fe4e8ad0387766376\", \"value of top_n_state.st.unique() is not correct\"\n", "\n", - "assert sha1(str(type(top_n_state.shape)).encode(\"utf-8\")+b\"c1cfbf2f4a2fc911\").hexdigest() == \"ef16c509e4dbca724129b0996672f99e8688e4bc\", \"type of top_n_state.shape is not tuple. top_n_state.shape should be a tuple\"\n", - "assert sha1(str(len(top_n_state.shape)).encode(\"utf-8\")+b\"c1cfbf2f4a2fc911\").hexdigest() == \"1043a8adb40fc9c6415d98e2e69e6649c34039a6\", \"length of top_n_state.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, top_n_state.shape))).encode(\"utf-8\")+b\"c1cfbf2f4a2fc911\").hexdigest() == \"c2e3cbdad87bee98ffb76871ee519ad409b82d00\", \"values of top_n_state.shape are not correct\"\n", - "assert sha1(str(top_n_state.shape).encode(\"utf-8\")+b\"c1cfbf2f4a2fc911\").hexdigest() == \"d545577d8836dae3585728dde03e5c96f132a4ec\", \"order of elements of top_n_state.shape is not correct\"\n", + "assert sha1(str(type(top_n_state.shape)).encode(\"utf-8\")+b\"e958235b475016e5\").hexdigest() == \"b76796bf7994619874d749f518027464fefab798\", \"type of top_n_state.shape is not tuple. top_n_state.shape should be a tuple\"\n", + "assert sha1(str(len(top_n_state.shape)).encode(\"utf-8\")+b\"e958235b475016e5\").hexdigest() == \"c9f928449e52b4d2e3fbea2939bbd46c96c7631c\", \"length of top_n_state.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, top_n_state.shape))).encode(\"utf-8\")+b\"e958235b475016e5\").hexdigest() == \"c5e0542e2aeffd99425493357d59591c72f5c5ae\", \"values of top_n_state.shape are not correct\"\n", + "assert sha1(str(top_n_state.shape).encode(\"utf-8\")+b\"e958235b475016e5\").hexdigest() == \"2b6ab390d9a916a8f27f93de689ed30330ac1e1a\", \"order of elements of top_n_state.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(top_n_state['count'].dropna()))).encode(\"utf-8\")+b\"25545a749db85f8c\").hexdigest() == \"5c3d4bd841c30d2c263de44c1daa02bf043ae900\", \"type of sum(top_n_state['count'].dropna()) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(top_n_state['count'].dropna())).encode(\"utf-8\")+b\"25545a749db85f8c\").hexdigest() == \"4967c2e0ccac349323de9756e45fe34927dd6e8f\", \"value of sum(top_n_state['count'].dropna()) is not correct\"\n", + "assert sha1(str(type(sum(top_n_state['count'].dropna()))).encode(\"utf-8\")+b\"e37311c8529abe42\").hexdigest() == \"2663c54e87e581302aaeb27ed27df6a6873c683f\", \"type of sum(top_n_state['count'].dropna()) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(top_n_state['count'].dropna())).encode(\"utf-8\")+b\"e37311c8529abe42\").hexdigest() == \"fd9bb87017bfaa4d88f054ecc5b06c442219b155\", \"value of sum(top_n_state['count'].dropna()) is not correct\"\n", "\n", "print('Success!')" ] @@ -2822,7 +2822,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "5b3adfcff549a501aba8678573c10de5", + "checksum": "10c8bf96aafda1b7e91dbbc8a0701304", "grade": true, "grade_id": "cell-b90d158867cf1c27", "locked": true, @@ -2834,37 +2834,37 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(top_n_state_plot2 is None)).encode(\"utf-8\")+b\"4e4fe051539d4a2c\").hexdigest() == \"aa3eac902a0b6b6ee07aaaf0a974b24411d4de39\", \"type of top_n_state_plot2 is None is not bool. top_n_state_plot2 is None should be a bool\"\n", - "assert sha1(str(top_n_state_plot2 is None).encode(\"utf-8\")+b\"4e4fe051539d4a2c\").hexdigest() == \"a722358e6bcfe5febf0dae99bd9e5366c61d42a0\", \"boolean value of top_n_state_plot2 is None is not correct\"\n", + "assert sha1(str(type(top_n_state_plot2 is None)).encode(\"utf-8\")+b\"1b699096cd8d09ee\").hexdigest() == \"961eacdb8a68eafecdd2dbccb24a63772bfa8d37\", \"type of top_n_state_plot2 is None is not bool. top_n_state_plot2 is None should be a bool\"\n", + "assert sha1(str(top_n_state_plot2 is None).encode(\"utf-8\")+b\"1b699096cd8d09ee\").hexdigest() == \"3dd7f0f7e3eee3fb9efd0bdfdcaffc7eeafeeed7\", \"boolean value of top_n_state_plot2 is None is not correct\"\n", "\n", - "assert sha1(str(type(top_n_state_plot2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0162eafbd86ba666\").hexdigest() == \"d4ebda58c77a1d0215c3a60035b75ff386f1a7af\", \"type of top_n_state_plot2.encoding.x['shorthand'] is not str. top_n_state_plot2.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(top_n_state_plot2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"0162eafbd86ba666\").hexdigest() == \"6e92545bd38c61928328173cd386ecf1a401e862\", \"length of top_n_state_plot2.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot2.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"0162eafbd86ba666\").hexdigest() == \"93dac5cf11ee1c905b1c6bb9bc24570f401eb7e3\", \"value of top_n_state_plot2.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot2.encoding.x['shorthand']).encode(\"utf-8\")+b\"0162eafbd86ba666\").hexdigest() == \"93dac5cf11ee1c905b1c6bb9bc24570f401eb7e3\", \"correct string value of top_n_state_plot2.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"aa4d5fdcc40bd6e7\").hexdigest() == \"c27f9067fccbcd3c95b39f6cd24521d0a4fa8c5b\", \"type of top_n_state_plot2.encoding.x['shorthand'] is not str. top_n_state_plot2.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(top_n_state_plot2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"aa4d5fdcc40bd6e7\").hexdigest() == \"9960300763d7dd0c89118ea823d2d9a8c5db78c8\", \"length of top_n_state_plot2.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot2.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"aa4d5fdcc40bd6e7\").hexdigest() == \"2fa424de04a587f3286c396395214d799c2ed6be\", \"value of top_n_state_plot2.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot2.encoding.x['shorthand']).encode(\"utf-8\")+b\"aa4d5fdcc40bd6e7\").hexdigest() == \"2fa424de04a587f3286c396395214d799c2ed6be\", \"correct string value of top_n_state_plot2.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(top_n_state_plot2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"db8b727e326d7a75\").hexdigest() == \"55713705aee0f635f514ac7803cce4558f9251f7\", \"type of top_n_state_plot2.encoding.y['shorthand'] is not str. top_n_state_plot2.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(top_n_state_plot2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"db8b727e326d7a75\").hexdigest() == \"f5b3cbabb4e788879e533b542d6c7d374892c62c\", \"length of top_n_state_plot2.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot2.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"db8b727e326d7a75\").hexdigest() == \"7688cb0dfa6004e18bc5fd6e87ea92e37258ce8b\", \"value of top_n_state_plot2.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot2.encoding.y['shorthand']).encode(\"utf-8\")+b\"db8b727e326d7a75\").hexdigest() == \"7688cb0dfa6004e18bc5fd6e87ea92e37258ce8b\", \"correct string value of top_n_state_plot2.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"d5507cd8e6eb822a\").hexdigest() == \"b570ea1690741f7144b3954c2b1119730df9a4d3\", \"type of top_n_state_plot2.encoding.y['shorthand'] is not str. top_n_state_plot2.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(top_n_state_plot2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"d5507cd8e6eb822a\").hexdigest() == \"598a4c24d1b6d0e2a24f1ca0a7d3d2d75b31a7fd\", \"length of top_n_state_plot2.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot2.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"d5507cd8e6eb822a\").hexdigest() == \"8aa0dc4925220098a0b3f2a460e7deec19471de5\", \"value of top_n_state_plot2.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot2.encoding.y['shorthand']).encode(\"utf-8\")+b\"d5507cd8e6eb822a\").hexdigest() == \"8aa0dc4925220098a0b3f2a460e7deec19471de5\", \"correct string value of top_n_state_plot2.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(top_n_state_plot2.encoding.color['shorthand'])).encode(\"utf-8\")+b\"8714b0208b00ddce\").hexdigest() == \"fac87ac500ec68d73f0df3c96a9361414d2dfb65\", \"type of top_n_state_plot2.encoding.color['shorthand'] is not str. top_n_state_plot2.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(top_n_state_plot2.encoding.color['shorthand'])).encode(\"utf-8\")+b\"8714b0208b00ddce\").hexdigest() == \"b49c5e4754ac3a3f63fe9c7bf8ab30490744ce4a\", \"length of top_n_state_plot2.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot2.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"8714b0208b00ddce\").hexdigest() == \"29d4ffad8778b346745fe4a7638610139a4fdaa4\", \"value of top_n_state_plot2.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot2.encoding.color['shorthand']).encode(\"utf-8\")+b\"8714b0208b00ddce\").hexdigest() == \"29d4ffad8778b346745fe4a7638610139a4fdaa4\", \"correct string value of top_n_state_plot2.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot2.encoding.color['shorthand'])).encode(\"utf-8\")+b\"0cb1b29c9f240fc4\").hexdigest() == \"f6ab0f5c136de0d1d95068d7e70d1d66c75cbe67\", \"type of top_n_state_plot2.encoding.color['shorthand'] is not str. top_n_state_plot2.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(top_n_state_plot2.encoding.color['shorthand'])).encode(\"utf-8\")+b\"0cb1b29c9f240fc4\").hexdigest() == \"b843dc780a30f845d65a23a506b49a371cce6ab5\", \"length of top_n_state_plot2.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot2.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"0cb1b29c9f240fc4\").hexdigest() == \"907d5940b0ff9f9db34037a94d999a2150dc20c2\", \"value of top_n_state_plot2.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot2.encoding.color['shorthand']).encode(\"utf-8\")+b\"0cb1b29c9f240fc4\").hexdigest() == \"907d5940b0ff9f9db34037a94d999a2150dc20c2\", \"correct string value of top_n_state_plot2.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(top_n_state_plot2.mark)).encode(\"utf-8\")+b\"aad08778768deb0c\").hexdigest() == \"643e6d9df204bfda57ec6fc3759fbfca831bf2cc\", \"type of top_n_state_plot2.mark is not str. top_n_state_plot2.mark should be an str\"\n", - "assert sha1(str(len(top_n_state_plot2.mark)).encode(\"utf-8\")+b\"aad08778768deb0c\").hexdigest() == \"0a15bb34b52cff6bfab12db9eaa3d72158332f0e\", \"length of top_n_state_plot2.mark is not correct\"\n", - "assert sha1(str(top_n_state_plot2.mark.lower()).encode(\"utf-8\")+b\"aad08778768deb0c\").hexdigest() == \"1fecd3e3bc7ee0e839b2226a7aa59e73ef1382e4\", \"value of top_n_state_plot2.mark is not correct\"\n", - "assert sha1(str(top_n_state_plot2.mark).encode(\"utf-8\")+b\"aad08778768deb0c\").hexdigest() == \"1fecd3e3bc7ee0e839b2226a7aa59e73ef1382e4\", \"correct string value of top_n_state_plot2.mark but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot2.mark)).encode(\"utf-8\")+b\"b46e498c2d14cd46\").hexdigest() == \"a56a0941864f9a30b995f482b53dcda7de33bc84\", \"type of top_n_state_plot2.mark is not str. top_n_state_plot2.mark should be an str\"\n", + "assert sha1(str(len(top_n_state_plot2.mark)).encode(\"utf-8\")+b\"b46e498c2d14cd46\").hexdigest() == \"919dd9e258788ef2e345b276fe72bf40e34e6db6\", \"length of top_n_state_plot2.mark is not correct\"\n", + "assert sha1(str(top_n_state_plot2.mark.lower()).encode(\"utf-8\")+b\"b46e498c2d14cd46\").hexdigest() == \"89297ce8647f53b0e3ce13601938a6c142c1b301\", \"value of top_n_state_plot2.mark is not correct\"\n", + "assert sha1(str(top_n_state_plot2.mark).encode(\"utf-8\")+b\"b46e498c2d14cd46\").hexdigest() == \"89297ce8647f53b0e3ce13601938a6c142c1b301\", \"correct string value of top_n_state_plot2.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(top_n_state_plot2.encoding.x['title'], str))).encode(\"utf-8\")+b\"f9e99469c5c7d7cd\").hexdigest() == \"19b37306dc3eb4d344ca58ffc41c2a18a97eb9fa\", \"type of isinstance(top_n_state_plot2.encoding.x['title'], str) is not bool. isinstance(top_n_state_plot2.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(top_n_state_plot2.encoding.x['title'], str)).encode(\"utf-8\")+b\"f9e99469c5c7d7cd\").hexdigest() == \"416c74ecef0936c97b1bb5cfa986dbc9a6586380\", \"boolean value of isinstance(top_n_state_plot2.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(top_n_state_plot2.encoding.x['title'], str))).encode(\"utf-8\")+b\"21cd3ff9229dc69c\").hexdigest() == \"602136f6e0dac5543d9227b0c6e1eb15e32987c5\", \"type of isinstance(top_n_state_plot2.encoding.x['title'], str) is not bool. isinstance(top_n_state_plot2.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(top_n_state_plot2.encoding.x['title'], str)).encode(\"utf-8\")+b\"21cd3ff9229dc69c\").hexdigest() == \"4c6394e1708e1e359ebcc10955ca02a465043262\", \"boolean value of isinstance(top_n_state_plot2.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(top_n_state_plot2.encoding.y['title'], str))).encode(\"utf-8\")+b\"7cc4413722b8befd\").hexdigest() == \"c3b77b766a9ae42d0e9eace87a66dca0dc481b32\", \"type of isinstance(top_n_state_plot2.encoding.y['title'], str) is not bool. isinstance(top_n_state_plot2.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(top_n_state_plot2.encoding.y['title'], str)).encode(\"utf-8\")+b\"7cc4413722b8befd\").hexdigest() == \"d0e2fdd7298abdccf19a8ebd51e1212148aa2e75\", \"boolean value of isinstance(top_n_state_plot2.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(top_n_state_plot2.encoding.y['title'], str))).encode(\"utf-8\")+b\"b8a44b3126212a49\").hexdigest() == \"ee8487067a2f2680b7f2a3038a7d24208764a5a4\", \"type of isinstance(top_n_state_plot2.encoding.y['title'], str) is not bool. isinstance(top_n_state_plot2.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(top_n_state_plot2.encoding.y['title'], str)).encode(\"utf-8\")+b\"b8a44b3126212a49\").hexdigest() == \"13354efb6b346e33549a8a2834876bef70b373e3\", \"boolean value of isinstance(top_n_state_plot2.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(top_n_state_plot2.encoding.color['title'], str))).encode(\"utf-8\")+b\"7a099b9a31bf6b64\").hexdigest() == \"fe482df08f61f7e91808a764e613fc7a32ed36f0\", \"type of isinstance(top_n_state_plot2.encoding.color['title'], str) is not bool. isinstance(top_n_state_plot2.encoding.color['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(top_n_state_plot2.encoding.color['title'], str)).encode(\"utf-8\")+b\"7a099b9a31bf6b64\").hexdigest() == \"d6bc575ed9fdac1de7bb62cc41fffe0279fab375\", \"boolean value of isinstance(top_n_state_plot2.encoding.color['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(top_n_state_plot2.encoding.color['title'], str))).encode(\"utf-8\")+b\"3e45f987e098806a\").hexdigest() == \"3a42eb106d2408ae3f026c6f5b8401e5f6a255ae\", \"type of isinstance(top_n_state_plot2.encoding.color['title'], str) is not bool. isinstance(top_n_state_plot2.encoding.color['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(top_n_state_plot2.encoding.color['title'], str)).encode(\"utf-8\")+b\"3e45f987e098806a\").hexdigest() == \"2c14181f260881155ea9fa683a35ff87017b522f\", \"boolean value of isinstance(top_n_state_plot2.encoding.color['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2953,7 +2953,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "eb294a561af3449ac45cab45c6eb050e", + "checksum": "3d031f8cdf732f8369dda1f3ddc05123", "grade": true, "grade_id": "cell-ed385a60b4c8a6d0", "locked": true, @@ -2965,37 +2965,37 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(top_n_state_plot is None)).encode(\"utf-8\")+b\"b4c0e4249f2500e7\").hexdigest() == \"2c0106e9aca7351621483d25a4138165b345d06b\", \"type of top_n_state_plot is None is not bool. top_n_state_plot is None should be a bool\"\n", - "assert sha1(str(top_n_state_plot is None).encode(\"utf-8\")+b\"b4c0e4249f2500e7\").hexdigest() == \"1937933ed50c91bb455fc0a012c570d368f30d30\", \"boolean value of top_n_state_plot is None is not correct\"\n", + "assert sha1(str(type(top_n_state_plot is None)).encode(\"utf-8\")+b\"106ffd468a57bc40\").hexdigest() == \"ad886a9cf66b09703c52c916ecb2bc97811045d4\", \"type of top_n_state_plot is None is not bool. top_n_state_plot is None should be a bool\"\n", + "assert sha1(str(top_n_state_plot is None).encode(\"utf-8\")+b\"106ffd468a57bc40\").hexdigest() == \"2ee73cad3901b686e707031c7c500669e83ec314\", \"boolean value of top_n_state_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(top_n_state_plot.spec.encoding.x['shorthand'])).encode(\"utf-8\")+b\"448ee6e34f7a222c\").hexdigest() == \"fec6dc177d4a75647778898d83115d00b2a91f32\", \"type of top_n_state_plot.spec.encoding.x['shorthand'] is not str. top_n_state_plot.spec.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(top_n_state_plot.spec.encoding.x['shorthand'])).encode(\"utf-8\")+b\"448ee6e34f7a222c\").hexdigest() == \"0a2cd61f9afbe8d82e9d262302f5df436f8f4ed3\", \"length of top_n_state_plot.spec.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"448ee6e34f7a222c\").hexdigest() == \"5254467aca845b0d0780de60d8d449a47645731a\", \"value of top_n_state_plot.spec.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.encoding.x['shorthand']).encode(\"utf-8\")+b\"448ee6e34f7a222c\").hexdigest() == \"5254467aca845b0d0780de60d8d449a47645731a\", \"correct string value of top_n_state_plot.spec.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot.spec.encoding.x['shorthand'])).encode(\"utf-8\")+b\"34ef0641fc79d087\").hexdigest() == \"92a16744fe2cbce0a0cd44f66845501cf7c4b889\", \"type of top_n_state_plot.spec.encoding.x['shorthand'] is not str. top_n_state_plot.spec.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(top_n_state_plot.spec.encoding.x['shorthand'])).encode(\"utf-8\")+b\"34ef0641fc79d087\").hexdigest() == \"aefb40f105bc1b1d080e45cb985380bc372779a8\", \"length of top_n_state_plot.spec.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"34ef0641fc79d087\").hexdigest() == \"d355bc6e8657ff30c5879d4dfac9b3c1dcae3f2c\", \"value of top_n_state_plot.spec.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.encoding.x['shorthand']).encode(\"utf-8\")+b\"34ef0641fc79d087\").hexdigest() == \"d355bc6e8657ff30c5879d4dfac9b3c1dcae3f2c\", \"correct string value of top_n_state_plot.spec.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(top_n_state_plot.spec.encoding.y['shorthand'])).encode(\"utf-8\")+b\"e9301267505d8b59\").hexdigest() == \"3a0234aef4454e3313c3047adebeb5000d2329e1\", \"type of top_n_state_plot.spec.encoding.y['shorthand'] is not str. top_n_state_plot.spec.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(top_n_state_plot.spec.encoding.y['shorthand'])).encode(\"utf-8\")+b\"e9301267505d8b59\").hexdigest() == \"7db4ca474b394e5a5682966312968c5a01197d9a\", \"length of top_n_state_plot.spec.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"e9301267505d8b59\").hexdigest() == \"db4a1cca9f3990270ff4fda03d5ba7024cf56752\", \"value of top_n_state_plot.spec.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.encoding.y['shorthand']).encode(\"utf-8\")+b\"e9301267505d8b59\").hexdigest() == \"db4a1cca9f3990270ff4fda03d5ba7024cf56752\", \"correct string value of top_n_state_plot.spec.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot.spec.encoding.y['shorthand'])).encode(\"utf-8\")+b\"abb67af6e9aaf4d2\").hexdigest() == \"2f6c104f2b3b2fba2d75f30c5b5a712f212957ad\", \"type of top_n_state_plot.spec.encoding.y['shorthand'] is not str. top_n_state_plot.spec.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(top_n_state_plot.spec.encoding.y['shorthand'])).encode(\"utf-8\")+b\"abb67af6e9aaf4d2\").hexdigest() == \"a5dd1eddab47ef571e422c91d16181ff6bda7e78\", \"length of top_n_state_plot.spec.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"abb67af6e9aaf4d2\").hexdigest() == \"0f1ee59aef79972d3bf8c24accbd9ff5cefcf9eb\", \"value of top_n_state_plot.spec.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.encoding.y['shorthand']).encode(\"utf-8\")+b\"abb67af6e9aaf4d2\").hexdigest() == \"0f1ee59aef79972d3bf8c24accbd9ff5cefcf9eb\", \"correct string value of top_n_state_plot.spec.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(top_n_state_plot.spec.encoding.color['shorthand'])).encode(\"utf-8\")+b\"9d5f297d10eb180a\").hexdigest() == \"78dca06793e1e7d446a8aacebfce8950acc5ad19\", \"type of top_n_state_plot.spec.encoding.color['shorthand'] is not str. top_n_state_plot.spec.encoding.color['shorthand'] should be an str\"\n", - "assert sha1(str(len(top_n_state_plot.spec.encoding.color['shorthand'])).encode(\"utf-8\")+b\"9d5f297d10eb180a\").hexdigest() == \"85c1598f224d2c74146c0def2e829f688ec958f6\", \"length of top_n_state_plot.spec.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"9d5f297d10eb180a\").hexdigest() == \"38e2762b3b9ff706f2e0d83b04b79318831084a7\", \"value of top_n_state_plot.spec.encoding.color['shorthand'] is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.encoding.color['shorthand']).encode(\"utf-8\")+b\"9d5f297d10eb180a\").hexdigest() == \"38e2762b3b9ff706f2e0d83b04b79318831084a7\", \"correct string value of top_n_state_plot.spec.encoding.color['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot.spec.encoding.color['shorthand'])).encode(\"utf-8\")+b\"995dedade18e1813\").hexdigest() == \"fdca5a8bb585497c52f5ab58b420fb2e0ae84d6e\", \"type of top_n_state_plot.spec.encoding.color['shorthand'] is not str. top_n_state_plot.spec.encoding.color['shorthand'] should be an str\"\n", + "assert sha1(str(len(top_n_state_plot.spec.encoding.color['shorthand'])).encode(\"utf-8\")+b\"995dedade18e1813\").hexdigest() == \"56c11b866103ba9e6744c3c001c61cd49b339470\", \"length of top_n_state_plot.spec.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.encoding.color['shorthand'].lower()).encode(\"utf-8\")+b\"995dedade18e1813\").hexdigest() == \"2a00e7981b94dbd3192a16dd80250afb370f523b\", \"value of top_n_state_plot.spec.encoding.color['shorthand'] is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.encoding.color['shorthand']).encode(\"utf-8\")+b\"995dedade18e1813\").hexdigest() == \"2a00e7981b94dbd3192a16dd80250afb370f523b\", \"correct string value of top_n_state_plot.spec.encoding.color['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(top_n_state_plot.spec.encoding.y['title'], str))).encode(\"utf-8\")+b\"cb07f079701ea20e\").hexdigest() == \"62af82151c83234c7a90587bfa1c75a1fdaa059b\", \"type of isinstance(top_n_state_plot.spec.encoding.y['title'], str) is not bool. isinstance(top_n_state_plot.spec.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(top_n_state_plot.spec.encoding.y['title'], str)).encode(\"utf-8\")+b\"cb07f079701ea20e\").hexdigest() == \"271feb652486073f473fa3f38ec54346043d81ac\", \"boolean value of isinstance(top_n_state_plot.spec.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(top_n_state_plot.spec.encoding.y['title'], str))).encode(\"utf-8\")+b\"6284f2046f9b11ca\").hexdigest() == \"2876a5dbd450825ecdca0ae086d5251153ff9bd7\", \"type of isinstance(top_n_state_plot.spec.encoding.y['title'], str) is not bool. isinstance(top_n_state_plot.spec.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(top_n_state_plot.spec.encoding.y['title'], str)).encode(\"utf-8\")+b\"6284f2046f9b11ca\").hexdigest() == \"01ce36e0cb8d887b3d5f420595ee95ab75aa22ba\", \"boolean value of isinstance(top_n_state_plot.spec.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(top_n_state_plot.spec.encoding.color['title'], str))).encode(\"utf-8\")+b\"6ffc3d829afc7f96\").hexdigest() == \"129c0c778e3a4bab9efd70e5b8e87680126103e6\", \"type of isinstance(top_n_state_plot.spec.encoding.color['title'], str) is not bool. isinstance(top_n_state_plot.spec.encoding.color['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(top_n_state_plot.spec.encoding.color['title'], str)).encode(\"utf-8\")+b\"6ffc3d829afc7f96\").hexdigest() == \"66d3c0ba8a1d9219e504a98e5fddc149c483c33c\", \"boolean value of isinstance(top_n_state_plot.spec.encoding.color['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(top_n_state_plot.spec.encoding.color['title'], str))).encode(\"utf-8\")+b\"46521336fd6cf9e0\").hexdigest() == \"f313238ef21b8c31f3b77d9b7672212753e46a1e\", \"type of isinstance(top_n_state_plot.spec.encoding.color['title'], str) is not bool. isinstance(top_n_state_plot.spec.encoding.color['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(top_n_state_plot.spec.encoding.color['title'], str)).encode(\"utf-8\")+b\"46521336fd6cf9e0\").hexdigest() == \"176cae68bee55d1eb38683bcdefdef49a799e38d\", \"boolean value of isinstance(top_n_state_plot.spec.encoding.color['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(top_n_state_plot.facet)).encode(\"utf-8\")+b\"6dcf8fe639d69271\").hexdigest() == \"d3c56862dc4d65e369a0683f3307ebb4cad1b2e3\", \"type of top_n_state_plot.facet is not correct\"\n", - "assert sha1(str(top_n_state_plot.facet).encode(\"utf-8\")+b\"6dcf8fe639d69271\").hexdigest() == \"bec3236accf97213b41fb760e1f7a51c447701cc\", \"value of top_n_state_plot.facet is not correct\"\n", + "assert sha1(str(type(top_n_state_plot.facet)).encode(\"utf-8\")+b\"4de8e771c6bc8357\").hexdigest() == \"77f7de005c97e6ef445980a20b44446df6cb8c70\", \"type of top_n_state_plot.facet is not correct\"\n", + "assert sha1(str(top_n_state_plot.facet).encode(\"utf-8\")+b\"4de8e771c6bc8357\").hexdigest() == \"fd34acc94216d0c5131a6345a174a4f3ea4fa367\", \"value of top_n_state_plot.facet is not correct\"\n", "\n", - "assert sha1(str(type(top_n_state_plot.spec.mark)).encode(\"utf-8\")+b\"dc818e80b74c2c8d\").hexdigest() == \"cd7a7746a589377e3bedddacfa4e1fa096603313\", \"type of top_n_state_plot.spec.mark is not str. top_n_state_plot.spec.mark should be an str\"\n", - "assert sha1(str(len(top_n_state_plot.spec.mark)).encode(\"utf-8\")+b\"dc818e80b74c2c8d\").hexdigest() == \"e10d2b02317e24cb1d6a4d0dc98ac4f9f9b322c7\", \"length of top_n_state_plot.spec.mark is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.mark.lower()).encode(\"utf-8\")+b\"dc818e80b74c2c8d\").hexdigest() == \"2228c1a81ec4ef79027917b8809bc6e42f0df658\", \"value of top_n_state_plot.spec.mark is not correct\"\n", - "assert sha1(str(top_n_state_plot.spec.mark).encode(\"utf-8\")+b\"dc818e80b74c2c8d\").hexdigest() == \"2228c1a81ec4ef79027917b8809bc6e42f0df658\", \"correct string value of top_n_state_plot.spec.mark but incorrect case of letters\"\n", + "assert sha1(str(type(top_n_state_plot.spec.mark)).encode(\"utf-8\")+b\"19c796cd6a798a30\").hexdigest() == \"4c3aed94f92b62d799c7a1ec050e63b54a543539\", \"type of top_n_state_plot.spec.mark is not str. top_n_state_plot.spec.mark should be an str\"\n", + "assert sha1(str(len(top_n_state_plot.spec.mark)).encode(\"utf-8\")+b\"19c796cd6a798a30\").hexdigest() == \"116f8f8b294621637a3febbcc8a6c273a20b3c74\", \"length of top_n_state_plot.spec.mark is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.mark.lower()).encode(\"utf-8\")+b\"19c796cd6a798a30\").hexdigest() == \"d540bd6f2b17d9410ac475a99254e98885ad59f8\", \"value of top_n_state_plot.spec.mark is not correct\"\n", + "assert sha1(str(top_n_state_plot.spec.mark).encode(\"utf-8\")+b\"19c796cd6a798a30\").hexdigest() == \"d540bd6f2b17d9410ac475a99254e98885ad59f8\", \"correct string value of top_n_state_plot.spec.mark but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -3051,7 +3051,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "43bd703edc8bf32dd21b64e197700918", + "checksum": "6e9352a479309826884536a200e37b3e", "grade": true, "grade_id": "cell-0eb8e20187b2bfa2", "locked": true, @@ -3063,10 +3063,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_9_5)).encode(\"utf-8\")+b\"090a38a2f0b275c0\").hexdigest() == \"6478310d8af3b88999896d193ffee4612686788b\", \"type of answer2_9_5 is not str. answer2_9_5 should be an str\"\n", - "assert sha1(str(len(answer2_9_5)).encode(\"utf-8\")+b\"090a38a2f0b275c0\").hexdigest() == \"420e6f545869a8b5867fb70407943c47f5eded98\", \"length of answer2_9_5 is not correct\"\n", - "assert sha1(str(answer2_9_5.lower()).encode(\"utf-8\")+b\"090a38a2f0b275c0\").hexdigest() == \"4b007845dcde9651b76b9da236ecc221457f7e77\", \"value of answer2_9_5 is not correct\"\n", - "assert sha1(str(answer2_9_5).encode(\"utf-8\")+b\"090a38a2f0b275c0\").hexdigest() == \"4b007845dcde9651b76b9da236ecc221457f7e77\", \"correct string value of answer2_9_5 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_9_5)).encode(\"utf-8\")+b\"48482b5b60848080\").hexdigest() == \"7a7f6d277031766c6e5b518a48d24eb10f69e1be\", \"type of answer2_9_5 is not str. answer2_9_5 should be an str\"\n", + "assert sha1(str(len(answer2_9_5)).encode(\"utf-8\")+b\"48482b5b60848080\").hexdigest() == \"73dd05ab1d038d5ded1c6d692972df0ab4a17fd8\", \"length of answer2_9_5 is not correct\"\n", + "assert sha1(str(answer2_9_5.lower()).encode(\"utf-8\")+b\"48482b5b60848080\").hexdigest() == \"c237d7da0d083f1a2fa3d09703c12e23eecba7fe\", \"value of answer2_9_5 is not correct\"\n", + "assert sha1(str(answer2_9_5).encode(\"utf-8\")+b\"48482b5b60848080\").hexdigest() == \"c237d7da0d083f1a2fa3d09703c12e23eecba7fe\", \"correct string value of answer2_9_5 but incorrect case of letters\"\n", "\n", "print('Success!')" ] diff --git a/py_worksheet_wrangling/py_worksheet_wrangling.ipynb b/py_worksheet_wrangling/py_worksheet_wrangling.ipynb index f7263cf..b98108a 100644 --- a/py_worksheet_wrangling/py_worksheet_wrangling.ipynb +++ b/py_worksheet_wrangling/py_worksheet_wrangling.ipynb @@ -129,7 +129,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bf178cd352d79b528e8f0a6da790c4f4", + "checksum": "22c0cb1ae0753c86a6f455bbfdf4e0f8", "grade": true, "grade_id": "cell-0bea903e0f37148c", "locked": true, @@ -142,10 +142,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_0)).encode(\"utf-8\")+b\"3bcbd9dcd9b22f07\").hexdigest() == \"5f16ac8b327012895158422c37b5868b371123f6\", \"type of answer0_0 is not list. answer0_0 should be a list\"\n", - "assert sha1(str(len(answer0_0)).encode(\"utf-8\")+b\"3bcbd9dcd9b22f07\").hexdigest() == \"089aa9d01c1155d5492fb06a57eed6adf81870be\", \"length of answer0_0 is not correct\"\n", - "assert sha1(str(sorted(map(str, answer0_0))).encode(\"utf-8\")+b\"3bcbd9dcd9b22f07\").hexdigest() == \"ae76ca890da2c0bca9c5213fa3ccdb6af4ebe4ea\", \"values of answer0_0 are not correct\"\n", - "assert sha1(str(answer0_0).encode(\"utf-8\")+b\"3bcbd9dcd9b22f07\").hexdigest() == \"ae76ca890da2c0bca9c5213fa3ccdb6af4ebe4ea\", \"order of elements of answer0_0 is not correct\"\n", + "assert sha1(str(type(answer0_0)).encode(\"utf-8\")+b\"d2cc037e7dd3bbbe\").hexdigest() == \"7af8803158676e6dca21b1a695e3ebbc3d39d0bd\", \"type of answer0_0 is not list. answer0_0 should be a list\"\n", + "assert sha1(str(len(answer0_0)).encode(\"utf-8\")+b\"d2cc037e7dd3bbbe\").hexdigest() == \"01c9e3a1a82db29978769d988555abdf9a8f87db\", \"length of answer0_0 is not correct\"\n", + "assert sha1(str(sorted(map(str, answer0_0))).encode(\"utf-8\")+b\"d2cc037e7dd3bbbe\").hexdigest() == \"50705b4fb2b510902a34f7d6f40e95438a30cd08\", \"values of answer0_0 are not correct\"\n", + "assert sha1(str(answer0_0).encode(\"utf-8\")+b\"d2cc037e7dd3bbbe\").hexdigest() == \"50705b4fb2b510902a34f7d6f40e95438a30cd08\", \"order of elements of answer0_0 is not correct\"\n", "\n", "print('Success!')" ] @@ -267,7 +267,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7651d161d187fe293f398f484d829030", + "checksum": "450d101ad4fa651e6d0cf5d4ae27f49a", "grade": true, "grade_id": "cell-7bc5804c8cd5900d", "locked": true, @@ -279,10 +279,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"89f9363d76dd1763\").hexdigest() == \"ad857cce67c75b74faebad9dd9c5b1154dc32700\", \"type of answer0_1 is not list. answer0_1 should be a list\"\n", - "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"89f9363d76dd1763\").hexdigest() == \"8532f2ef1a61cf64d379483e18cf99866c2a8a10\", \"length of answer0_1 is not correct\"\n", - "assert sha1(str(sorted(map(str, answer0_1))).encode(\"utf-8\")+b\"89f9363d76dd1763\").hexdigest() == \"706192550668c512741a5367e0fd250d718bb3ee\", \"values of answer0_1 are not correct\"\n", - "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"89f9363d76dd1763\").hexdigest() == \"db37b71debc38147bc105d87cf12f2da8bd333d1\", \"order of elements of answer0_1 is not correct\"\n", + "assert sha1(str(type(answer0_1)).encode(\"utf-8\")+b\"c40eafd446afc959\").hexdigest() == \"e65d9f04ff40c7de4cac4e1ca02ae3df2d8b00c7\", \"type of answer0_1 is not list. answer0_1 should be a list\"\n", + "assert sha1(str(len(answer0_1)).encode(\"utf-8\")+b\"c40eafd446afc959\").hexdigest() == \"b4701059ec06be9a13ee7dce8fd7c57cda1b9574\", \"length of answer0_1 is not correct\"\n", + "assert sha1(str(sorted(map(str, answer0_1))).encode(\"utf-8\")+b\"c40eafd446afc959\").hexdigest() == \"0bb92bb3f823fe732af88fa95f212d7d7f5663ae\", \"values of answer0_1 are not correct\"\n", + "assert sha1(str(answer0_1).encode(\"utf-8\")+b\"c40eafd446afc959\").hexdigest() == \"00b126059cee58b65e5da0aaba9689df89e252da\", \"order of elements of answer0_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -350,7 +350,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6c850a9feeaa4ea81fd0490ab2785f05", + "checksum": "88f29303381cc618654d3dfcd3efbaf9", "grade": true, "grade_id": "cell-385b06349b0b7c8f", "locked": true, @@ -363,10 +363,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"4d3fb27524f7f526\").hexdigest() == \"d46bc08bb9733aef35f658b3aaed2391e394d6d6\", \"type of answer0_2 is not str. answer0_2 should be an str\"\n", - "assert sha1(str(len(answer0_2)).encode(\"utf-8\")+b\"4d3fb27524f7f526\").hexdigest() == \"50860092344525a24faa86cfb16907b421a78b24\", \"length of answer0_2 is not correct\"\n", - "assert sha1(str(answer0_2.lower()).encode(\"utf-8\")+b\"4d3fb27524f7f526\").hexdigest() == \"f0dd1b101170a4758dcce8ecf96100c3c4a25b29\", \"value of answer0_2 is not correct\"\n", - "assert sha1(str(answer0_2).encode(\"utf-8\")+b\"4d3fb27524f7f526\").hexdigest() == \"8fad530cf2a830d03c398de13f368abf3843244a\", \"correct string value of answer0_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_2)).encode(\"utf-8\")+b\"4c3ae040a3075d5c\").hexdigest() == \"40075b341a20f6d4ba15029119bc1cb0ea061482\", \"type of answer0_2 is not str. answer0_2 should be an str\"\n", + "assert sha1(str(len(answer0_2)).encode(\"utf-8\")+b\"4c3ae040a3075d5c\").hexdigest() == \"b9e540a7dc8d2c8ddad325a949dfa99744ac46b6\", \"length of answer0_2 is not correct\"\n", + "assert sha1(str(answer0_2.lower()).encode(\"utf-8\")+b\"4c3ae040a3075d5c\").hexdigest() == \"9ba2f2f179c16d4d8b1fdf699dd1b0f995a081ac\", \"value of answer0_2 is not correct\"\n", + "assert sha1(str(answer0_2).encode(\"utf-8\")+b\"4c3ae040a3075d5c\").hexdigest() == \"00b0ffea8177a6c21b1b927213a731f3221c2fdc\", \"correct string value of answer0_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -432,7 +432,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "bb935f17d52c1e3f52b1a6d5f139ba34", + "checksum": "5c442e32c581e0568f655fdda154f05b", "grade": true, "grade_id": "cell-386ada4b41ae9cae", "locked": true, @@ -444,10 +444,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer0_3)).encode(\"utf-8\")+b\"375979e346007b07\").hexdigest() == \"cbc3767712e53606f0fea697ab647fac6498109f\", \"type of answer0_3 is not str. answer0_3 should be an str\"\n", - "assert sha1(str(len(answer0_3)).encode(\"utf-8\")+b\"375979e346007b07\").hexdigest() == \"b8c727dcc5181c79fcdcaee4b47e331e53fefc48\", \"length of answer0_3 is not correct\"\n", - "assert sha1(str(answer0_3.lower()).encode(\"utf-8\")+b\"375979e346007b07\").hexdigest() == \"9ddb77f0b448e1c19680b0e02ad8e60bc139849e\", \"value of answer0_3 is not correct\"\n", - "assert sha1(str(answer0_3).encode(\"utf-8\")+b\"375979e346007b07\").hexdigest() == \"93e3488706ca883ed5e01eb2f1c1033de01c640f\", \"correct string value of answer0_3 but incorrect case of letters\"\n", + "assert sha1(str(type(answer0_3)).encode(\"utf-8\")+b\"04f08a1c90ba0510\").hexdigest() == \"92fb1afb5c5eb0fff1b059e4de462b615378e308\", \"type of answer0_3 is not str. answer0_3 should be an str\"\n", + "assert sha1(str(len(answer0_3)).encode(\"utf-8\")+b\"04f08a1c90ba0510\").hexdigest() == \"6b95776a3eee1cc7b5eaaabb14de6a345ed41a9e\", \"length of answer0_3 is not correct\"\n", + "assert sha1(str(answer0_3.lower()).encode(\"utf-8\")+b\"04f08a1c90ba0510\").hexdigest() == \"c187400e0fa1ed4e6f30ceb0077dd82df97d3c9e\", \"value of answer0_3 is not correct\"\n", + "assert sha1(str(answer0_3).encode(\"utf-8\")+b\"04f08a1c90ba0510\").hexdigest() == \"47e09412bd76e6a4a7a5e6f1f06110fb4f6d3546\", \"correct string value of answer0_3 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -573,7 +573,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "234da7a076c1c758b6d6af29b1b68377", + "checksum": "d2f3355a1b216f4acf0db5a9f409122d", "grade": true, "grade_id": "cell-1c278f180e20468f", "locked": true, @@ -585,10 +585,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"441e02e45d573b51\").hexdigest() == \"249d33760490372b5768521bc4b0137c3d542328\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", - "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"441e02e45d573b51\").hexdigest() == \"6d612482b2321ae7bc680f58483237dda8111684\", \"length of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"441e02e45d573b51\").hexdigest() == \"05a9d608c89eb0d92c4a7c743bc2d8bb465bee86\", \"value of answer1_1 is not correct\"\n", - "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"441e02e45d573b51\").hexdigest() == \"5c17d6acd2cd7b42bf23ee41e2f3cc3069b34442\", \"correct string value of answer1_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_1)).encode(\"utf-8\")+b\"c1dc71024972b692\").hexdigest() == \"19d76087a8f1dc29dcc3b6d78444b6b639680782\", \"type of answer1_1 is not str. answer1_1 should be an str\"\n", + "assert sha1(str(len(answer1_1)).encode(\"utf-8\")+b\"c1dc71024972b692\").hexdigest() == \"15c69d9da0c8f6f3976315bea4e50eaba4e85d06\", \"length of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1.lower()).encode(\"utf-8\")+b\"c1dc71024972b692\").hexdigest() == \"4d189c476dfa8b729664815c3c246f11aceb3c1c\", \"value of answer1_1 is not correct\"\n", + "assert sha1(str(answer1_1).encode(\"utf-8\")+b\"c1dc71024972b692\").hexdigest() == \"0c37c64d3513f3194ce18ed091b31913726c4cc5\", \"correct string value of answer1_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -654,7 +654,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b69d6270ef26a794347f9b8cb07e6ffe", + "checksum": "b92ea202c805563f791178cc0366e813", "grade": true, "grade_id": "cell-6adfe52857aa9333", "locked": true, @@ -666,10 +666,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"eb6d57c04aba05b5\").hexdigest() == \"2555b62bda2d990c7fddac0c41e3c5496df8e0ca\", \"type of answer1_2 is not str. answer1_2 should be an str\"\n", - "assert sha1(str(len(answer1_2)).encode(\"utf-8\")+b\"eb6d57c04aba05b5\").hexdigest() == \"cde50847e249ebdec21a2f5782b1a054b4cdf7c3\", \"length of answer1_2 is not correct\"\n", - "assert sha1(str(answer1_2.lower()).encode(\"utf-8\")+b\"eb6d57c04aba05b5\").hexdigest() == \"f09954ddda63c4398933fc1362f891f454f5ccaf\", \"value of answer1_2 is not correct\"\n", - "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"eb6d57c04aba05b5\").hexdigest() == \"61da6a86ea74970e35fb835b9f3d61b992657958\", \"correct string value of answer1_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer1_2)).encode(\"utf-8\")+b\"74e862414527b7fe\").hexdigest() == \"558750468bdc989e289b16e529e591b665d121f7\", \"type of answer1_2 is not str. answer1_2 should be an str\"\n", + "assert sha1(str(len(answer1_2)).encode(\"utf-8\")+b\"74e862414527b7fe\").hexdigest() == \"c60ed98ac63eba9ff4e97ba58220d23b151642e9\", \"length of answer1_2 is not correct\"\n", + "assert sha1(str(answer1_2.lower()).encode(\"utf-8\")+b\"74e862414527b7fe\").hexdigest() == \"f48a247820bb73b05098fa830a31d52717e06c39\", \"value of answer1_2 is not correct\"\n", + "assert sha1(str(answer1_2).encode(\"utf-8\")+b\"74e862414527b7fe\").hexdigest() == \"174726519bd2f5b0197bd4fa6fa791deabe2ad74\", \"correct string value of answer1_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -730,7 +730,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "c173d78c447fa80f6f879c37a039d05f", + "checksum": "e32350d40d8edd629096a79e2042a3a8", "grade": true, "grade_id": "cell-a968fbd8b038ba4b", "locked": true, @@ -742,18 +742,18 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(avocado is None)).encode(\"utf-8\")+b\"24d20a3d9829ebb6\").hexdigest() == \"a8b72bbb5161fcd093163005b74c0f54eef0d53c\", \"type of avocado is None is not bool. avocado is None should be a bool\"\n", - "assert sha1(str(avocado is None).encode(\"utf-8\")+b\"24d20a3d9829ebb6\").hexdigest() == \"3fbeb56b6ab8476e072c3f37908b867226eb26e7\", \"boolean value of avocado is None is not correct\"\n", + "assert sha1(str(type(avocado is None)).encode(\"utf-8\")+b\"2451926ef15be7c7\").hexdigest() == \"eb39bbd84dfb70adc363967a8d71d0f46eedb9bd\", \"type of avocado is None is not bool. avocado is None should be a bool\"\n", + "assert sha1(str(avocado is None).encode(\"utf-8\")+b\"2451926ef15be7c7\").hexdigest() == \"a39b879abbd9d6576936fe3f756117d7c93007c1\", \"boolean value of avocado is None is not correct\"\n", "\n", - "assert sha1(str(type(avocado)).encode(\"utf-8\")+b\"077b338e56b4c208\").hexdigest() == \"43cf3015f5cc60a2c0f00a2cfcf76ccdd5c39c15\", \"type of type(avocado) is not correct\"\n", + "assert sha1(str(type(avocado)).encode(\"utf-8\")+b\"2efc37282c704ad3\").hexdigest() == \"b8205bba640659505695bdb18bc9d5ca2275ab12\", \"type of type(avocado) is not correct\"\n", "\n", - "assert sha1(str(type(avocado.shape)).encode(\"utf-8\")+b\"59629926485f758e\").hexdigest() == \"70c4148005e35fbc207484cc3fd910e439cdce4d\", \"type of avocado.shape is not tuple. avocado.shape should be a tuple\"\n", - "assert sha1(str(len(avocado.shape)).encode(\"utf-8\")+b\"59629926485f758e\").hexdigest() == \"d8e3ed0d6b5df7192a701c716b12a63fe253335d\", \"length of avocado.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, avocado.shape))).encode(\"utf-8\")+b\"59629926485f758e\").hexdigest() == \"82d61a3c8bc7727d0e3b6fd920d26a41e64ee5e7\", \"values of avocado.shape are not correct\"\n", - "assert sha1(str(avocado.shape).encode(\"utf-8\")+b\"59629926485f758e\").hexdigest() == \"0340e7ad8eded332873a467726dfa57583c6f258\", \"order of elements of avocado.shape is not correct\"\n", + "assert sha1(str(type(avocado.shape)).encode(\"utf-8\")+b\"c4d6a4a5ec883943\").hexdigest() == \"10a04515407d5be3b21f9462c7fe969c80a4217b\", \"type of avocado.shape is not tuple. avocado.shape should be a tuple\"\n", + "assert sha1(str(len(avocado.shape)).encode(\"utf-8\")+b\"c4d6a4a5ec883943\").hexdigest() == \"f97ed101967fa3d24785bd536e651ebd36f9ffb5\", \"length of avocado.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, avocado.shape))).encode(\"utf-8\")+b\"c4d6a4a5ec883943\").hexdigest() == \"94b23992e79c9b12cca9e359679167a0717aee55\", \"values of avocado.shape are not correct\"\n", + "assert sha1(str(avocado.shape).encode(\"utf-8\")+b\"c4d6a4a5ec883943\").hexdigest() == \"5ec881f4c546f9796b0eb1693fc1bc0f3e13c009\", \"order of elements of avocado.shape is not correct\"\n", "\n", - "assert sha1(str(type(avocado.columns.values)).encode(\"utf-8\")+b\"f24ed744fc6c8500\").hexdigest() == \"21aec4a20ec228ce848682956337337930dd69d5\", \"type of avocado.columns.values is not correct\"\n", - "assert sha1(str(avocado.columns.values).encode(\"utf-8\")+b\"f24ed744fc6c8500\").hexdigest() == \"249a0a5f3df981b3b52512cb93132514f3b33531\", \"value of avocado.columns.values is not correct\"\n", + "assert sha1(str(type(avocado.columns.values)).encode(\"utf-8\")+b\"4d14cacec85bb180\").hexdigest() == \"594dc9c56d058ecddfae7962b9a4a080265b07bb\", \"type of avocado.columns.values is not correct\"\n", + "assert sha1(str(avocado.columns.values).encode(\"utf-8\")+b\"4d14cacec85bb180\").hexdigest() == \"14cfe7538ac8cca0bc3467af40c576fc5837c873\", \"value of avocado.columns.values is not correct\"\n", "\n", "print('Success!')" ] @@ -819,7 +819,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "40dd833302a3eb4ab15d0bd8cbeb586a", + "checksum": "75efaeaefb191e05e67e7666c17191a3", "grade": true, "grade_id": "cell-89b7338558e28dbc", "locked": true, @@ -831,29 +831,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(avocado_plot is None)).encode(\"utf-8\")+b\"6360478d5416e3f4\").hexdigest() == \"9c4da7c2bea85ad42bd61bd437e1ccdaad41c495\", \"type of avocado_plot is None is not bool. avocado_plot is None should be a bool\"\n", - "assert sha1(str(avocado_plot is None).encode(\"utf-8\")+b\"6360478d5416e3f4\").hexdigest() == \"c54531d62c07ae03ce4f9a0bf50132489d203dd8\", \"boolean value of avocado_plot is None is not correct\"\n", + "assert sha1(str(type(avocado_plot is None)).encode(\"utf-8\")+b\"55a6c330b795bc8b\").hexdigest() == \"f36991a19049882a3e8519c4834f2fc3395926d6\", \"type of avocado_plot is None is not bool. avocado_plot is None should be a bool\"\n", + "assert sha1(str(avocado_plot is None).encode(\"utf-8\")+b\"55a6c330b795bc8b\").hexdigest() == \"768b2a573bb8ab55e3c32fb8452f2a4abfcae979\", \"boolean value of avocado_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(avocado_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"1edfa49cde1fb903\").hexdigest() == \"e1b17aec7a7799b95350bdc961879be8d1688c73\", \"type of avocado_plot.encoding.x['shorthand'] is not str. avocado_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(avocado_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"1edfa49cde1fb903\").hexdigest() == \"0990e570bcaac4075c779f0e43b97151078d3173\", \"length of avocado_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"1edfa49cde1fb903\").hexdigest() == \"87073773f4f34132ee06e9c0ad7b63412841b436\", \"value of avocado_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"1edfa49cde1fb903\").hexdigest() == \"229b33a83446299e89011e3ec0436014a3309263\", \"correct string value of avocado_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"51bbbba0db94b55b\").hexdigest() == \"d63d23924afa3414c04651af2040191d1c493bac\", \"type of avocado_plot.encoding.x['shorthand'] is not str. avocado_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(avocado_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"51bbbba0db94b55b\").hexdigest() == \"0bcabc3634d845f57bdf19438cd34e8cd93cb0c0\", \"length of avocado_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"51bbbba0db94b55b\").hexdigest() == \"0b69a26a7fcd380a98f69ae78d4cb09b4b176827\", \"value of avocado_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"51bbbba0db94b55b\").hexdigest() == \"e0b3e956cdbcd5f954100bdaba191c917774de85\", \"correct string value of avocado_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(avocado_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"63d3b1d2be6963ad\").hexdigest() == \"3b031312a077e863d779431be5d952c4ec26b5a8\", \"type of avocado_plot.encoding.y['shorthand'] is not str. avocado_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(avocado_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"63d3b1d2be6963ad\").hexdigest() == \"f18717f20724a2924baf0c804e40ad40ab81165a\", \"length of avocado_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"63d3b1d2be6963ad\").hexdigest() == \"e0e663fe1de2711d4096817d56f9ecb6e6d5d4d7\", \"value of avocado_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"63d3b1d2be6963ad\").hexdigest() == \"e0e663fe1de2711d4096817d56f9ecb6e6d5d4d7\", \"correct string value of avocado_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"243f5fd9cad44966\").hexdigest() == \"26eabc16588cc4541088ada1d1b0a46937f22a16\", \"type of avocado_plot.encoding.y['shorthand'] is not str. avocado_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(avocado_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"243f5fd9cad44966\").hexdigest() == \"1fd81c02936e08c9ed74e15f269ca522c0073f3f\", \"length of avocado_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"243f5fd9cad44966\").hexdigest() == \"f91657a32b57dbbecdf30af8857751e3bfda1486\", \"value of avocado_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"243f5fd9cad44966\").hexdigest() == \"f91657a32b57dbbecdf30af8857751e3bfda1486\", \"correct string value of avocado_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(avocado_plot.mark)).encode(\"utf-8\")+b\"bb7b6cc56f9d4d8e\").hexdigest() == \"6cc974966c0691751269648fd2981989bae14c85\", \"type of avocado_plot.mark is not str. avocado_plot.mark should be an str\"\n", - "assert sha1(str(len(avocado_plot.mark)).encode(\"utf-8\")+b\"bb7b6cc56f9d4d8e\").hexdigest() == \"0e8434a54b0cffdfbd6e3a48462685f0f2a8348a\", \"length of avocado_plot.mark is not correct\"\n", - "assert sha1(str(avocado_plot.mark.lower()).encode(\"utf-8\")+b\"bb7b6cc56f9d4d8e\").hexdigest() == \"d89614b983ce78575f667e1a01dc20e33ac33b1c\", \"value of avocado_plot.mark is not correct\"\n", - "assert sha1(str(avocado_plot.mark).encode(\"utf-8\")+b\"bb7b6cc56f9d4d8e\").hexdigest() == \"d89614b983ce78575f667e1a01dc20e33ac33b1c\", \"correct string value of avocado_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_plot.mark)).encode(\"utf-8\")+b\"5ddfac8d6ed12485\").hexdigest() == \"8587a9ef36aaf4a87c795688b055a6c1d96649be\", \"type of avocado_plot.mark is not str. avocado_plot.mark should be an str\"\n", + "assert sha1(str(len(avocado_plot.mark)).encode(\"utf-8\")+b\"5ddfac8d6ed12485\").hexdigest() == \"0710b9feca5f751429946b412f0cb7b7d63dff3f\", \"length of avocado_plot.mark is not correct\"\n", + "assert sha1(str(avocado_plot.mark.lower()).encode(\"utf-8\")+b\"5ddfac8d6ed12485\").hexdigest() == \"13d546595faf950d3974a290ce7370710655df44\", \"value of avocado_plot.mark is not correct\"\n", + "assert sha1(str(avocado_plot.mark).encode(\"utf-8\")+b\"5ddfac8d6ed12485\").hexdigest() == \"13d546595faf950d3974a290ce7370710655df44\", \"correct string value of avocado_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(avocado_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"fe8b20a2eb1c45d6\").hexdigest() == \"fc7a0c8422feade2627d57559ca20d5491bb4356\", \"type of isinstance(avocado_plot.encoding.y['title'], str) is not bool. isinstance(avocado_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(avocado_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"fe8b20a2eb1c45d6\").hexdigest() == \"0c484453c5f067c982e0f8501b7bd212831f80e9\", \"boolean value of isinstance(avocado_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(avocado_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"41487a72fa33d9b7\").hexdigest() == \"2b9b2dbe08fecca3b4293f5ca49503931e984596\", \"type of isinstance(avocado_plot.encoding.y['title'], str) is not bool. isinstance(avocado_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(avocado_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"41487a72fa33d9b7\").hexdigest() == \"17e59b4fd7a12b6b4e5ab4fa56e0d8b50aac8140\", \"boolean value of isinstance(avocado_plot.encoding.y['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(avocado_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"47de8326e01f05dd\").hexdigest() == \"557d4291b844e9b21f7a08de2bc98db97632fb2d\", \"type of isinstance(avocado_plot.encoding.x['title'], str) is not bool. isinstance(avocado_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(avocado_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"47de8326e01f05dd\").hexdigest() == \"ac7656aac058d8e11fc03843d770f43ea446b313\", \"boolean value of isinstance(avocado_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(avocado_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"04716fdbcc9f5a82\").hexdigest() == \"ded1cf84001a3d7f8b458d794ec091205712d3e6\", \"type of isinstance(avocado_plot.encoding.x['title'], str) is not bool. isinstance(avocado_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(avocado_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"04716fdbcc9f5a82\").hexdigest() == \"d34c58c821816febbf3d6455407652b835776c20\", \"boolean value of isinstance(avocado_plot.encoding.x['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -936,7 +936,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "1f55e96053924304511c1c30ecb48bc6", + "checksum": "75ef23b53cc214126639ebdfa0c156b8", "grade": true, "grade_id": "cell-81ec3e479caeb7d7", "locked": true, @@ -956,11 +956,11 @@ "assert str(sorted(map(str, avocado_aggregate.shape))) == \"['53', '6']\", \"values of avocado_aggregate.shape are not correct\"\n", "assert str(avocado_aggregate.shape) == \"(53, 6)\", \"order of elements of avocado_aggregate.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(avocado_aggregate.wk))).encode(\"utf-8\")+b\"d04806bcb713e338\").hexdigest() == \"776c6d9f2acab4bfbb243bbaa48517af1b58c229\", \"type of sum(avocado_aggregate.wk) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(avocado_aggregate.wk)).encode(\"utf-8\")+b\"d04806bcb713e338\").hexdigest() == \"bbfbe1aec576e3acd4a35fc9ecbe137ee81d8718\", \"value of sum(avocado_aggregate.wk) is not correct\"\n", + "assert sha1(str(type(sum(avocado_aggregate.wk))).encode(\"utf-8\")+b\"8bf00066267ebd2e\").hexdigest() == \"bb35a33b11265b645284b71f4f90290e87f531d1\", \"type of sum(avocado_aggregate.wk) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(avocado_aggregate.wk)).encode(\"utf-8\")+b\"8bf00066267ebd2e\").hexdigest() == \"a48df2cdedc41f966eb7934eda5a619081d21135\", \"value of sum(avocado_aggregate.wk) is not correct\"\n", "\n", - "assert sha1(str(type(sum(avocado_aggregate.average_price))).encode(\"utf-8\")+b\"9809da6871eeb744\").hexdigest() == \"b85b3aa33dc6b6b6d106e1cea0c0987acdd6a5bc\", \"type of sum(avocado_aggregate.average_price) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(avocado_aggregate.average_price), 2)).encode(\"utf-8\")+b\"9809da6871eeb744\").hexdigest() == \"282374e0f461937ced272367ab2733702e544186\", \"value of sum(avocado_aggregate.average_price) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(avocado_aggregate.average_price))).encode(\"utf-8\")+b\"3a195945ab1bdee5\").hexdigest() == \"354cb32f93c324479cbc17b6703e05abe3a1cb9c\", \"type of sum(avocado_aggregate.average_price) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(avocado_aggregate.average_price), 2)).encode(\"utf-8\")+b\"3a195945ab1bdee5\").hexdigest() == \"1937925944740dc9f6051ce34ac7a996c7bb238c\", \"value of sum(avocado_aggregate.average_price) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1027,7 +1027,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b27629678329f6985d1793f47bd00c75", + "checksum": "8d09ed69558488958f1ae5a815008cbc", "grade": true, "grade_id": "cell-d70b07b4c2dc0202", "locked": true, @@ -1039,29 +1039,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(avocado_aggregate_plot is None)).encode(\"utf-8\")+b\"b77d982418a5b047\").hexdigest() == \"ab1ff9070fa6df3f50677b8a35502477f57ec799\", \"type of avocado_aggregate_plot is None is not bool. avocado_aggregate_plot is None should be a bool\"\n", - "assert sha1(str(avocado_aggregate_plot is None).encode(\"utf-8\")+b\"b77d982418a5b047\").hexdigest() == \"dd46973f8e0790cb8dfd94793d8e240d8e8025e5\", \"boolean value of avocado_aggregate_plot is None is not correct\"\n", + "assert sha1(str(type(avocado_aggregate_plot is None)).encode(\"utf-8\")+b\"515f76fe676c00c9\").hexdigest() == \"344b45d6d57e014fde5c2aa477d17de35048c25e\", \"type of avocado_aggregate_plot is None is not bool. avocado_aggregate_plot is None should be a bool\"\n", + "assert sha1(str(avocado_aggregate_plot is None).encode(\"utf-8\")+b\"515f76fe676c00c9\").hexdigest() == \"2334f190e0b05e3e0a2e010969876be796f74fcc\", \"boolean value of avocado_aggregate_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(avocado_aggregate_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"daf8bf19110b2e5f\").hexdigest() == \"533ce8ac6b1630a91f878f1bf3902b22ea1382b5\", \"type of avocado_aggregate_plot.encoding.x['shorthand'] is not str. avocado_aggregate_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(avocado_aggregate_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"daf8bf19110b2e5f\").hexdigest() == \"03f6b96ca29d1897af6fbd463c421a66bdb875dc\", \"length of avocado_aggregate_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"daf8bf19110b2e5f\").hexdigest() == \"4d31b099b07385d846a6a9454f805fc3699f33eb\", \"value of avocado_aggregate_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"daf8bf19110b2e5f\").hexdigest() == \"4d31b099b07385d846a6a9454f805fc3699f33eb\", \"correct string value of avocado_aggregate_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_aggregate_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f84d7e8f8a85db42\").hexdigest() == \"2941935cd0f67d0e652b2a02b1f500623176c7da\", \"type of avocado_aggregate_plot.encoding.x['shorthand'] is not str. avocado_aggregate_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(avocado_aggregate_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"f84d7e8f8a85db42\").hexdigest() == \"2babfe66247ee4ce5d35ad1eed9a39b37ba35dae\", \"length of avocado_aggregate_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"f84d7e8f8a85db42\").hexdigest() == \"6f6c88f77d50f2b14edaa5dcd30fa95e174df38a\", \"value of avocado_aggregate_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"f84d7e8f8a85db42\").hexdigest() == \"6f6c88f77d50f2b14edaa5dcd30fa95e174df38a\", \"correct string value of avocado_aggregate_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(avocado_aggregate_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"0f76920c3f9bd663\").hexdigest() == \"c88822f21eb41b0875327df03b3e48eedab374b2\", \"type of avocado_aggregate_plot.encoding.y['shorthand'] is not str. avocado_aggregate_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(avocado_aggregate_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"0f76920c3f9bd663\").hexdigest() == \"c45e911957aea47af20f97e24bfc3a74062d4dae\", \"length of avocado_aggregate_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"0f76920c3f9bd663\").hexdigest() == \"79961e7150c97392396edeef4b515dd18e520f0b\", \"value of avocado_aggregate_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"0f76920c3f9bd663\").hexdigest() == \"79961e7150c97392396edeef4b515dd18e520f0b\", \"correct string value of avocado_aggregate_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_aggregate_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"502ae6441828a5ac\").hexdigest() == \"032ad5ebc19903054ab9a5b43f42f21fb76545ec\", \"type of avocado_aggregate_plot.encoding.y['shorthand'] is not str. avocado_aggregate_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(avocado_aggregate_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"502ae6441828a5ac\").hexdigest() == \"49645e1eddd0b471db48befa9afc0df64eb5bf72\", \"length of avocado_aggregate_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"502ae6441828a5ac\").hexdigest() == \"58d7b2f7748ff7e1bd0db1b7838acc83d4290652\", \"value of avocado_aggregate_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"502ae6441828a5ac\").hexdigest() == \"58d7b2f7748ff7e1bd0db1b7838acc83d4290652\", \"correct string value of avocado_aggregate_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(avocado_aggregate_plot.mark)).encode(\"utf-8\")+b\"0e02baebb373686c\").hexdigest() == \"14d3c04f3a7d41f5eb962d7df43da833310ae793\", \"type of avocado_aggregate_plot.mark is not str. avocado_aggregate_plot.mark should be an str\"\n", - "assert sha1(str(len(avocado_aggregate_plot.mark)).encode(\"utf-8\")+b\"0e02baebb373686c\").hexdigest() == \"8d3c586d010a9f1163964405e95dc8d2cc53aeba\", \"length of avocado_aggregate_plot.mark is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot.mark.lower()).encode(\"utf-8\")+b\"0e02baebb373686c\").hexdigest() == \"83ccbd29e0ef2a2b998d526a886a33cac17e5c0c\", \"value of avocado_aggregate_plot.mark is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot.mark).encode(\"utf-8\")+b\"0e02baebb373686c\").hexdigest() == \"83ccbd29e0ef2a2b998d526a886a33cac17e5c0c\", \"correct string value of avocado_aggregate_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_aggregate_plot.mark)).encode(\"utf-8\")+b\"4289906fb65b7f8c\").hexdigest() == \"490f4e823bb1ca6e7ae323a70865b727152c1c04\", \"type of avocado_aggregate_plot.mark is not str. avocado_aggregate_plot.mark should be an str\"\n", + "assert sha1(str(len(avocado_aggregate_plot.mark)).encode(\"utf-8\")+b\"4289906fb65b7f8c\").hexdigest() == \"1c035a414dfa0f39ab0ffa0a528e531ddd06e4a5\", \"length of avocado_aggregate_plot.mark is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot.mark.lower()).encode(\"utf-8\")+b\"4289906fb65b7f8c\").hexdigest() == \"c2840d28ac1480665fdda4fc5cb0a87f0241168d\", \"value of avocado_aggregate_plot.mark is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot.mark).encode(\"utf-8\")+b\"4289906fb65b7f8c\").hexdigest() == \"c2840d28ac1480665fdda4fc5cb0a87f0241168d\", \"correct string value of avocado_aggregate_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(avocado_aggregate_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"9c0e5948607d63e2\").hexdigest() == \"1f7ccf6c3a1448f978882d96daf9654c04608cd4\", \"type of isinstance(avocado_aggregate_plot.encoding.x['title'], str) is not bool. isinstance(avocado_aggregate_plot.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(avocado_aggregate_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"9c0e5948607d63e2\").hexdigest() == \"2410afe61c9b646a8b8af33232d744126e7ee0cd\", \"boolean value of isinstance(avocado_aggregate_plot.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(avocado_aggregate_plot.encoding.x['title'], str))).encode(\"utf-8\")+b\"a107e55850ce9c2b\").hexdigest() == \"ba1ce90bebe5d6cce894867794875036b1d8ec68\", \"type of isinstance(avocado_aggregate_plot.encoding.x['title'], str) is not bool. isinstance(avocado_aggregate_plot.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(avocado_aggregate_plot.encoding.x['title'], str)).encode(\"utf-8\")+b\"a107e55850ce9c2b\").hexdigest() == \"48be948c2c9d38b9413ab97866e866dd18d66a5d\", \"boolean value of isinstance(avocado_aggregate_plot.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(avocado_aggregate_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"7e7d69a745dee448\").hexdigest() == \"04de2e111770b19cca130c99ac6ed6ba03868837\", \"type of isinstance(avocado_aggregate_plot.encoding.y['title'], str) is not bool. isinstance(avocado_aggregate_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(avocado_aggregate_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"7e7d69a745dee448\").hexdigest() == \"84657413f4c2f8b2ced72a23bddf6130023e7ac7\", \"boolean value of isinstance(avocado_aggregate_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(avocado_aggregate_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"d835b78ca2d3672a\").hexdigest() == \"2e064e5005b11cf9b414cb8be0673627ac8a655d\", \"type of isinstance(avocado_aggregate_plot.encoding.y['title'], str) is not bool. isinstance(avocado_aggregate_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(avocado_aggregate_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"d835b78ca2d3672a\").hexdigest() == \"896f0d63a91f214ade1e4408bdee0557b65d663c\", \"boolean value of isinstance(avocado_aggregate_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1144,7 +1144,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "2f0e9b49e7a6122e7778f34f3bdb4489", + "checksum": "121fa98caf0cf8d2797fe836250ccfd2", "grade": true, "grade_id": "cell-1b331febb2ce27b5", "locked": true, @@ -1164,8 +1164,8 @@ "assert str(sorted(map(str, avocado.shape))) == \"['10', '17911']\", \"values of avocado.shape are not correct\"\n", "assert str(avocado.shape) == \"(17911, 10)\", \"order of elements of avocado.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(avocado.total_volume.dropna()))).encode(\"utf-8\")+b\"ab97604f4bd2edfc\").hexdigest() == \"cdd95573141df20eee65d80873ea71b1ccb09c77\", \"type of sum(avocado.total_volume.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(avocado.total_volume.dropna()), 2)).encode(\"utf-8\")+b\"ab97604f4bd2edfc\").hexdigest() == \"147ff033dc7cef656eb9de60023c1922157cb5e8\", \"value of sum(avocado.total_volume.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(avocado.total_volume.dropna()))).encode(\"utf-8\")+b\"2a26ed12a1faf711\").hexdigest() == \"e12bdd85a43e72d586543cfb751b881ab5723e67\", \"type of sum(avocado.total_volume.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(avocado.total_volume.dropna()), 2)).encode(\"utf-8\")+b\"2a26ed12a1faf711\").hexdigest() == \"af4519dfa8cb5eb26b0c8de88c5e40bd514e45d1\", \"value of sum(avocado.total_volume.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1225,7 +1225,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "78bac446aea6bafd1cc7001af88e96bf", + "checksum": "4ba255e266d8fb83ecd33d92db389fe0", "grade": true, "grade_id": "cell-975338ad4661f5af", "locked": true, @@ -1245,11 +1245,11 @@ "assert str(sorted(map(str, avocado_aggregate_2.shape))) == \"['53', '7']\", \"values of avocado_aggregate_2.shape are not correct\"\n", "assert str(avocado_aggregate_2.shape) == \"(53, 7)\", \"order of elements of avocado_aggregate_2.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(avocado_aggregate_2.total_volume))).encode(\"utf-8\")+b\"69320ae51145ca04\").hexdigest() == \"d31f10fd652833c1e0b3999de3daa9546518e69b\", \"type of sum(avocado_aggregate_2.total_volume) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(avocado_aggregate_2.total_volume), 2)).encode(\"utf-8\")+b\"69320ae51145ca04\").hexdigest() == \"ba8e308b955617c47e75abd0d92b173a1b786c67\", \"value of sum(avocado_aggregate_2.total_volume) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(avocado_aggregate_2.total_volume))).encode(\"utf-8\")+b\"4c85373d3a474912\").hexdigest() == \"c6904a8417c9400b54ee056173acc66f7a3cbf98\", \"type of sum(avocado_aggregate_2.total_volume) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(avocado_aggregate_2.total_volume), 2)).encode(\"utf-8\")+b\"4c85373d3a474912\").hexdigest() == \"614dbdc7940e31dd4f1a7534aa03523e351857f9\", \"value of sum(avocado_aggregate_2.total_volume) is not correct (rounded to 2 decimal places)\"\n", "\n", - "assert sha1(str(type(sum(avocado_aggregate_2.wk))).encode(\"utf-8\")+b\"3074b953b243cdd2\").hexdigest() == \"134e54d1db189b63639c3823d843ce95e2484533\", \"type of sum(avocado_aggregate_2.wk) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(avocado_aggregate_2.wk)).encode(\"utf-8\")+b\"3074b953b243cdd2\").hexdigest() == \"ef703311242432e7543ff84708bc5584aeca2341\", \"value of sum(avocado_aggregate_2.wk) is not correct\"\n", + "assert sha1(str(type(sum(avocado_aggregate_2.wk))).encode(\"utf-8\")+b\"ff2296f6bf1329ff\").hexdigest() == \"233010ba621759b184b7eb87cb102a17d845e52d\", \"type of sum(avocado_aggregate_2.wk) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(avocado_aggregate_2.wk)).encode(\"utf-8\")+b\"ff2296f6bf1329ff\").hexdigest() == \"a7fac24fe47cbb578cb69f332f2b0a75bf97ac52\", \"value of sum(avocado_aggregate_2.wk) is not correct\"\n", "\n", "print('Success!')" ] @@ -1315,7 +1315,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "873f15a16d34def1b0d27af4d62063a5", + "checksum": "600d0a185544563cd74e83063c10b5c0", "grade": true, "grade_id": "cell-7a0b7fca31c9c8ec", "locked": true, @@ -1327,29 +1327,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(avocado_aggregate_plot_2 is None)).encode(\"utf-8\")+b\"83f05596e6d75005\").hexdigest() == \"ae145097e4c025472819a7b745c892a98cd7340c\", \"type of avocado_aggregate_plot_2 is None is not bool. avocado_aggregate_plot_2 is None should be a bool\"\n", - "assert sha1(str(avocado_aggregate_plot_2 is None).encode(\"utf-8\")+b\"83f05596e6d75005\").hexdigest() == \"934beda9bcd7fddd30b3985a11b7a518f45584a8\", \"boolean value of avocado_aggregate_plot_2 is None is not correct\"\n", + "assert sha1(str(type(avocado_aggregate_plot_2 is None)).encode(\"utf-8\")+b\"5f83d310e429e599\").hexdigest() == \"a1981495f7d8cfbf8780f81ac4abb56631e37546\", \"type of avocado_aggregate_plot_2 is None is not bool. avocado_aggregate_plot_2 is None should be a bool\"\n", + "assert sha1(str(avocado_aggregate_plot_2 is None).encode(\"utf-8\")+b\"5f83d310e429e599\").hexdigest() == \"8f51fb9a6fafe3985dcc0271a13697b7e1a8fc0c\", \"boolean value of avocado_aggregate_plot_2 is None is not correct\"\n", "\n", - "assert sha1(str(type(avocado_aggregate_plot_2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a5de4a04b9ef2068\").hexdigest() == \"8784a386abaccc2254bc3d84d85b9cc829eeb1bd\", \"type of avocado_aggregate_plot_2.encoding.x['shorthand'] is not str. avocado_aggregate_plot_2.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(avocado_aggregate_plot_2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a5de4a04b9ef2068\").hexdigest() == \"5cbc37f5b0007d79ce19f9218abdfc56bdab95c7\", \"length of avocado_aggregate_plot_2.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot_2.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"a5de4a04b9ef2068\").hexdigest() == \"0255b94b66cab23a1801753f3e67f516afc1e20f\", \"value of avocado_aggregate_plot_2.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot_2.encoding.x['shorthand']).encode(\"utf-8\")+b\"a5de4a04b9ef2068\").hexdigest() == \"0255b94b66cab23a1801753f3e67f516afc1e20f\", \"correct string value of avocado_aggregate_plot_2.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_aggregate_plot_2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"4d4ee2ce5747470e\").hexdigest() == \"dbe8ed9989020a949d8a71430cfa0b214efb6119\", \"type of avocado_aggregate_plot_2.encoding.x['shorthand'] is not str. avocado_aggregate_plot_2.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(avocado_aggregate_plot_2.encoding.x['shorthand'])).encode(\"utf-8\")+b\"4d4ee2ce5747470e\").hexdigest() == \"6de8d83331d8af94b2fcd1257aece9457fc0d85c\", \"length of avocado_aggregate_plot_2.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot_2.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"4d4ee2ce5747470e\").hexdigest() == \"78236649189b26bd6246efc381782739597acbd6\", \"value of avocado_aggregate_plot_2.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot_2.encoding.x['shorthand']).encode(\"utf-8\")+b\"4d4ee2ce5747470e\").hexdigest() == \"78236649189b26bd6246efc381782739597acbd6\", \"correct string value of avocado_aggregate_plot_2.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(avocado_aggregate_plot_2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a5d3e11f96f51ab4\").hexdigest() == \"c258b3f7789041f55b4e224ce9e6c200f911bd6f\", \"type of avocado_aggregate_plot_2.encoding.y['shorthand'] is not str. avocado_aggregate_plot_2.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(avocado_aggregate_plot_2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"a5d3e11f96f51ab4\").hexdigest() == \"117af42261bd35e0369ed050213b86a60ae4b0b3\", \"length of avocado_aggregate_plot_2.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot_2.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"a5d3e11f96f51ab4\").hexdigest() == \"ee16f2180921fa759d575f3aa453f58930deaa3a\", \"value of avocado_aggregate_plot_2.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot_2.encoding.y['shorthand']).encode(\"utf-8\")+b\"a5d3e11f96f51ab4\").hexdigest() == \"ee16f2180921fa759d575f3aa453f58930deaa3a\", \"correct string value of avocado_aggregate_plot_2.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_aggregate_plot_2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"81b20868b95a6771\").hexdigest() == \"7dc0923795b500fedfbeb8f9f265a6f9470a9eff\", \"type of avocado_aggregate_plot_2.encoding.y['shorthand'] is not str. avocado_aggregate_plot_2.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(avocado_aggregate_plot_2.encoding.y['shorthand'])).encode(\"utf-8\")+b\"81b20868b95a6771\").hexdigest() == \"02609ff53491f5539533aa7b11244f48dfb58b43\", \"length of avocado_aggregate_plot_2.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot_2.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"81b20868b95a6771\").hexdigest() == \"07ca093192eccc102858c4f7c99fd9c9aae98dac\", \"value of avocado_aggregate_plot_2.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot_2.encoding.y['shorthand']).encode(\"utf-8\")+b\"81b20868b95a6771\").hexdigest() == \"07ca093192eccc102858c4f7c99fd9c9aae98dac\", \"correct string value of avocado_aggregate_plot_2.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(avocado_aggregate_plot_2.mark)).encode(\"utf-8\")+b\"b8a1865025c27e7c\").hexdigest() == \"e675c9584e760d5c95ad08e338d60bba3f150ae8\", \"type of avocado_aggregate_plot_2.mark is not str. avocado_aggregate_plot_2.mark should be an str\"\n", - "assert sha1(str(len(avocado_aggregate_plot_2.mark)).encode(\"utf-8\")+b\"b8a1865025c27e7c\").hexdigest() == \"8848ef6446501e823cc542af81096264722608e4\", \"length of avocado_aggregate_plot_2.mark is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot_2.mark.lower()).encode(\"utf-8\")+b\"b8a1865025c27e7c\").hexdigest() == \"bfb1771f33dfa183de44efdf8406d3f7fed4ae84\", \"value of avocado_aggregate_plot_2.mark is not correct\"\n", - "assert sha1(str(avocado_aggregate_plot_2.mark).encode(\"utf-8\")+b\"b8a1865025c27e7c\").hexdigest() == \"bfb1771f33dfa183de44efdf8406d3f7fed4ae84\", \"correct string value of avocado_aggregate_plot_2.mark but incorrect case of letters\"\n", + "assert sha1(str(type(avocado_aggregate_plot_2.mark)).encode(\"utf-8\")+b\"77a77d29b749eb72\").hexdigest() == \"20e137eb3a17cfa6009cdbbf40d5242bb2da0841\", \"type of avocado_aggregate_plot_2.mark is not str. avocado_aggregate_plot_2.mark should be an str\"\n", + "assert sha1(str(len(avocado_aggregate_plot_2.mark)).encode(\"utf-8\")+b\"77a77d29b749eb72\").hexdigest() == \"5f6b865f56fc9b322a5672e03b53740fabfc2936\", \"length of avocado_aggregate_plot_2.mark is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot_2.mark.lower()).encode(\"utf-8\")+b\"77a77d29b749eb72\").hexdigest() == \"6699751ea5a0f340a45fd6063591087fa4f372d8\", \"value of avocado_aggregate_plot_2.mark is not correct\"\n", + "assert sha1(str(avocado_aggregate_plot_2.mark).encode(\"utf-8\")+b\"77a77d29b749eb72\").hexdigest() == \"6699751ea5a0f340a45fd6063591087fa4f372d8\", \"correct string value of avocado_aggregate_plot_2.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(avocado_aggregate_plot_2.encoding.x['title'], str))).encode(\"utf-8\")+b\"77e7b05db82771f4\").hexdigest() == \"6de4131dbf9eb618298ada84504798470a11f31f\", \"type of isinstance(avocado_aggregate_plot_2.encoding.x['title'], str) is not bool. isinstance(avocado_aggregate_plot_2.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(avocado_aggregate_plot_2.encoding.x['title'], str)).encode(\"utf-8\")+b\"77e7b05db82771f4\").hexdigest() == \"fed3fff80a10558c405492e4a8d2c43fb84206b9\", \"boolean value of isinstance(avocado_aggregate_plot_2.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(avocado_aggregate_plot_2.encoding.x['title'], str))).encode(\"utf-8\")+b\"9bd8036a163f27fc\").hexdigest() == \"34adb6e9a955435dcc663cb28fe10f8d54bceb87\", \"type of isinstance(avocado_aggregate_plot_2.encoding.x['title'], str) is not bool. isinstance(avocado_aggregate_plot_2.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(avocado_aggregate_plot_2.encoding.x['title'], str)).encode(\"utf-8\")+b\"9bd8036a163f27fc\").hexdigest() == \"a0ff543f084e030aa1f8c21fef3d9f5fab3ea8e4\", \"boolean value of isinstance(avocado_aggregate_plot_2.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(avocado_aggregate_plot_2.encoding.y['title'], str))).encode(\"utf-8\")+b\"0ce424985068a774\").hexdigest() == \"c828987a827cc5362306ff225ee658deec9159b7\", \"type of isinstance(avocado_aggregate_plot_2.encoding.y['title'], str) is not bool. isinstance(avocado_aggregate_plot_2.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(avocado_aggregate_plot_2.encoding.y['title'], str)).encode(\"utf-8\")+b\"0ce424985068a774\").hexdigest() == \"f02e28d567b5a2dbe7670a268b0d6004a0366398\", \"boolean value of isinstance(avocado_aggregate_plot_2.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(avocado_aggregate_plot_2.encoding.y['title'], str))).encode(\"utf-8\")+b\"dcb55b375b0c4865\").hexdigest() == \"962c57041b911f7c8872844d6441a0995fce5c02\", \"type of isinstance(avocado_aggregate_plot_2.encoding.y['title'], str) is not bool. isinstance(avocado_aggregate_plot_2.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(avocado_aggregate_plot_2.encoding.y['title'], str)).encode(\"utf-8\")+b\"dcb55b375b0c4865\").hexdigest() == \"5d538b52bbfa83794fc54788da568d95b614b37e\", \"boolean value of isinstance(avocado_aggregate_plot_2.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -1455,7 +1455,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7e58459eb701a7d9442c3358d35ec026", + "checksum": "07f973737c15c37d54a8e94022cbdf06", "grade": true, "grade_id": "cell-aef90db69249870d", "locked": true, @@ -1467,8 +1467,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"2deb781ce8d9f061\").hexdigest() == \"7cc12c5d2c2887670d56888673615fde112b3ff2\", \"type of answer2_1 is not bool. answer2_1 should be a bool\"\n", - "assert sha1(str(answer2_1).encode(\"utf-8\")+b\"2deb781ce8d9f061\").hexdigest() == \"fe07da32f3d5e0cc37611f545408a25b002e96ea\", \"boolean value of answer2_1 is not correct\"\n", + "assert sha1(str(type(answer2_1)).encode(\"utf-8\")+b\"17cd29239277db7b\").hexdigest() == \"2a659e86178094137cc6e4a4eba67c4dff9f934f\", \"type of answer2_1 is not bool. answer2_1 should be a bool\"\n", + "assert sha1(str(answer2_1).encode(\"utf-8\")+b\"17cd29239277db7b\").hexdigest() == \"4e666d55963e65630d428435a244aaa9e66cd344\", \"boolean value of answer2_1 is not correct\"\n", "\n", "print('Success!')" ] @@ -1534,7 +1534,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "6b69eda3df20d77252bb516154ff55e4", + "checksum": "3d7eaf3c64f23ca261b2e106aeab5640", "grade": true, "grade_id": "cell-957f2b6edf976bfd", "locked": true, @@ -1546,10 +1546,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_2)).encode(\"utf-8\")+b\"af017a7f25f5b909\").hexdigest() == \"a1ea39661c5a67d710654584fe7cb41148f3ff49\", \"type of answer2_2 is not str. answer2_2 should be an str\"\n", - "assert sha1(str(len(answer2_2)).encode(\"utf-8\")+b\"af017a7f25f5b909\").hexdigest() == \"75e7e70f38e9360b9a11c3ec19b83a5b06e2cfd2\", \"length of answer2_2 is not correct\"\n", - "assert sha1(str(answer2_2.lower()).encode(\"utf-8\")+b\"af017a7f25f5b909\").hexdigest() == \"8716f420a6a4ba07a3dba0753ba4b88126afec57\", \"value of answer2_2 is not correct\"\n", - "assert sha1(str(answer2_2).encode(\"utf-8\")+b\"af017a7f25f5b909\").hexdigest() == \"1338ef3c32e7d6f9aaf96e987506d4ae0dc4ec30\", \"correct string value of answer2_2 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_2)).encode(\"utf-8\")+b\"828fb7959f9b12e7\").hexdigest() == \"3cac3266f7cb1a67ef9ecb17ae8f8fc45738f3e4\", \"type of answer2_2 is not str. answer2_2 should be an str\"\n", + "assert sha1(str(len(answer2_2)).encode(\"utf-8\")+b\"828fb7959f9b12e7\").hexdigest() == \"1694341ff3f83d9a73bd8e3a3a18f812ba8333c4\", \"length of answer2_2 is not correct\"\n", + "assert sha1(str(answer2_2.lower()).encode(\"utf-8\")+b\"828fb7959f9b12e7\").hexdigest() == \"2e61baf093db06355c61e352fccc458e2536c1f2\", \"value of answer2_2 is not correct\"\n", + "assert sha1(str(answer2_2).encode(\"utf-8\")+b\"828fb7959f9b12e7\").hexdigest() == \"4b01ce20c8a28a6692f5a3f61795554871391176\", \"correct string value of answer2_2 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1610,7 +1610,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "919df274d5edb558fe14d13f1facf66b", + "checksum": "07d02ee0c70a3d4ce51d113148bda0aa", "grade": true, "grade_id": "cell-09a9fd7ca9f44ada", "locked": true, @@ -1635,8 +1635,8 @@ "assert str(type(sea_surface.columns.values)) == \"\", \"type of sea_surface.columns.values is not correct\"\n", "assert str(sea_surface.columns.values) == \"['Year' 'Jan' 'Feb' 'Mar' 'Apr' 'May' 'Jun' 'Jul' 'Aug' 'Sep' 'Oct' 'Nov'\\n 'Dec']\", \"value of sea_surface.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(sea_surface.Year))).encode(\"utf-8\")+b\"66464a0ddae61f15\").hexdigest() == \"26e4466ad97d17b73df197d5657b0f395d8f3385\", \"type of sum(sea_surface.Year) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(sea_surface.Year)).encode(\"utf-8\")+b\"66464a0ddae61f15\").hexdigest() == \"1b9a9e3a9d79dbc2bb004aedb55a8ed1d76f8afc\", \"value of sum(sea_surface.Year) is not correct\"\n", + "assert sha1(str(type(sum(sea_surface.Year))).encode(\"utf-8\")+b\"d621a2aab489003e\").hexdigest() == \"15ead5ea8e85f6b76d27bf6b56d6465d3c634aa3\", \"type of sum(sea_surface.Year) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(sea_surface.Year)).encode(\"utf-8\")+b\"d621a2aab489003e\").hexdigest() == \"6ec8f483aae6dfa368a571861333696899a8a1a5\", \"value of sum(sea_surface.Year) is not correct\"\n", "\n", "print('Success!')" ] @@ -1708,7 +1708,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "b68a9458fc43a00988c8fa8da43d096e", + "checksum": "e71416d02cc32e30c129aae384df8710", "grade": true, "grade_id": "cell-f449a87635bac905", "locked": true, @@ -1721,10 +1721,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer2_3_1)).encode(\"utf-8\")+b\"302bf6ad8dc73dd1\").hexdigest() == \"890ee38e8ccd667cd73c16c562d23037cb43cad2\", \"type of answer2_3_1 is not str. answer2_3_1 should be an str\"\n", - "assert sha1(str(len(answer2_3_1)).encode(\"utf-8\")+b\"302bf6ad8dc73dd1\").hexdigest() == \"8dac64841e29294a70bfb3b48a1271d61ea22130\", \"length of answer2_3_1 is not correct\"\n", - "assert sha1(str(answer2_3_1.lower()).encode(\"utf-8\")+b\"302bf6ad8dc73dd1\").hexdigest() == \"57992565629cd3439721d7e215927f57b7beefec\", \"value of answer2_3_1 is not correct\"\n", - "assert sha1(str(answer2_3_1).encode(\"utf-8\")+b\"302bf6ad8dc73dd1\").hexdigest() == \"5e67687206371d15b875bc81368b39012a2f8bfa\", \"correct string value of answer2_3_1 but incorrect case of letters\"\n", + "assert sha1(str(type(answer2_3_1)).encode(\"utf-8\")+b\"5b293b9f946fdb9b\").hexdigest() == \"0c0712bb4b2678bc89bf76fc8e2c9978299d1073\", \"type of answer2_3_1 is not str. answer2_3_1 should be an str\"\n", + "assert sha1(str(len(answer2_3_1)).encode(\"utf-8\")+b\"5b293b9f946fdb9b\").hexdigest() == \"6b556cc3478aff1dddd5b9bb08e043c81c1a8105\", \"length of answer2_3_1 is not correct\"\n", + "assert sha1(str(answer2_3_1.lower()).encode(\"utf-8\")+b\"5b293b9f946fdb9b\").hexdigest() == \"5182fde710a8136c64d8ff88719271373a30d72c\", \"value of answer2_3_1 is not correct\"\n", + "assert sha1(str(answer2_3_1).encode(\"utf-8\")+b\"5b293b9f946fdb9b\").hexdigest() == \"40277580dd2083851b3db44f3415e3f561f7b515\", \"correct string value of answer2_3_1 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -1803,7 +1803,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "855ca83dcee5c12ea642be1e281466fc", + "checksum": "726044d971a95ac469c4ffc1703b848e", "grade": true, "grade_id": "cell-afb070ca8361d0a7", "locked": true, @@ -1826,8 +1826,8 @@ "assert str(type(tidy_temp.columns)) == \"\", \"type of tidy_temp.columns is not correct\"\n", "assert str(tidy_temp.columns) == \"Index(['Year', 'Month', 'Temperature'], dtype='object')\", \"value of tidy_temp.columns is not correct\"\n", "\n", - "assert sha1(str(type(sum(tidy_temp.Temperature.dropna()))).encode(\"utf-8\")+b\"18b23df716786b06\").hexdigest() == \"3d6b7a771d387c6abca583b48e56951a182c616c\", \"type of sum(tidy_temp.Temperature.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(tidy_temp.Temperature.dropna()), 2)).encode(\"utf-8\")+b\"18b23df716786b06\").hexdigest() == \"df5b99cb971bee5cb3ac5e08af7ff71d92df447a\", \"value of sum(tidy_temp.Temperature.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(tidy_temp.Temperature.dropna()))).encode(\"utf-8\")+b\"b5b290b1f67888e7\").hexdigest() == \"9aa17c5678a5320ca9213bbe4d219603c674fa95\", \"type of sum(tidy_temp.Temperature.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(tidy_temp.Temperature.dropna()), 2)).encode(\"utf-8\")+b\"b5b290b1f67888e7\").hexdigest() == \"827efe02fc48e3d83a7875031c0adc03960f20dd\", \"value of sum(tidy_temp.Temperature.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -1896,7 +1896,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "4fe597b8b529ef7237087c364216c3bf", + "checksum": "b1ec4a52cc229f8fe014038d50557d9c", "grade": true, "grade_id": "cell-8ddfbb3c8b82e695", "locked": true, @@ -1908,29 +1908,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(nov_temp_plot is None)).encode(\"utf-8\")+b\"5b93e8c5250a747c\").hexdigest() == \"5cc7a2a7f1f56d0add053561150ed9fe1802283d\", \"type of nov_temp_plot is None is not bool. nov_temp_plot is None should be a bool\"\n", - "assert sha1(str(nov_temp_plot is None).encode(\"utf-8\")+b\"5b93e8c5250a747c\").hexdigest() == \"f001999aa0367e04d77174bf8b793a5441f2d3d1\", \"boolean value of nov_temp_plot is None is not correct\"\n", + "assert sha1(str(type(nov_temp_plot is None)).encode(\"utf-8\")+b\"9130b110cfd3c71d\").hexdigest() == \"3f2c27ff0177a1caf11b83ebfd41857401c2782a\", \"type of nov_temp_plot is None is not bool. nov_temp_plot is None should be a bool\"\n", + "assert sha1(str(nov_temp_plot is None).encode(\"utf-8\")+b\"9130b110cfd3c71d\").hexdigest() == \"24043835d5cadacdf46c72b3e9e4d1bff85bc94b\", \"boolean value of nov_temp_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(nov_temp_plot.data.Month.unique())).encode(\"utf-8\")+b\"2f85a2215af19aa7\").hexdigest() == \"34c0ad832c52316c9a7c503fe88351e48a5ab2a2\", \"type of nov_temp_plot.data.Month.unique() is not correct\"\n", - "assert sha1(str(nov_temp_plot.data.Month.unique()).encode(\"utf-8\")+b\"2f85a2215af19aa7\").hexdigest() == \"7ac436b5c7df20c5f8fe5ee082aafc404b885993\", \"value of nov_temp_plot.data.Month.unique() is not correct\"\n", + "assert sha1(str(type(nov_temp_plot.data.Month.unique())).encode(\"utf-8\")+b\"efbd06caa486ab74\").hexdigest() == \"2a104b2e96496828b18b23917da2ac40219477c1\", \"type of nov_temp_plot.data.Month.unique() is not correct\"\n", + "assert sha1(str(nov_temp_plot.data.Month.unique()).encode(\"utf-8\")+b\"efbd06caa486ab74\").hexdigest() == \"1268bb6b17d49c8d7ce2ac5377c97faf631f7b68\", \"value of nov_temp_plot.data.Month.unique() is not correct\"\n", "\n", - "assert sha1(str(type(nov_temp_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a44684b5676d7b32\").hexdigest() == \"77b8291109ba9e5ed2243fb38afb79d26cb1a45e\", \"type of nov_temp_plot.encoding.x['shorthand'] is not str. nov_temp_plot.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(nov_temp_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"a44684b5676d7b32\").hexdigest() == \"75acaf44ddf8be5c0bfdc1ef81aff2108c3b0132\", \"length of nov_temp_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(nov_temp_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"a44684b5676d7b32\").hexdigest() == \"d341fd6e7d06b597cc0f082482c932293e88650a\", \"value of nov_temp_plot.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(nov_temp_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"a44684b5676d7b32\").hexdigest() == \"a876fd7483f51f6ffa8e34302139e71585ce1e1f\", \"correct string value of nov_temp_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(nov_temp_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ac79db08dbfa4b30\").hexdigest() == \"994b0ff1de234e2b267bcab41e332a915b083f5d\", \"type of nov_temp_plot.encoding.x['shorthand'] is not str. nov_temp_plot.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(nov_temp_plot.encoding.x['shorthand'])).encode(\"utf-8\")+b\"ac79db08dbfa4b30\").hexdigest() == \"eba9aee16fff12107dc1ca2328169a47cbc31fa7\", \"length of nov_temp_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(nov_temp_plot.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"ac79db08dbfa4b30\").hexdigest() == \"2827ca6a60ca2129e9d0e54ada4c95196bfff3cd\", \"value of nov_temp_plot.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(nov_temp_plot.encoding.x['shorthand']).encode(\"utf-8\")+b\"ac79db08dbfa4b30\").hexdigest() == \"6fb4057d2e39038e55346850d77dacb4bd92568b\", \"correct string value of nov_temp_plot.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(nov_temp_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"0bdc1cf1b3885c81\").hexdigest() == \"f6889e83f7212046c2a52582a92a8445fe191e08\", \"type of nov_temp_plot.encoding.y['shorthand'] is not str. nov_temp_plot.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(nov_temp_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"0bdc1cf1b3885c81\").hexdigest() == \"38f0e365eb455c327b3289e97514734d364ad800\", \"length of nov_temp_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(nov_temp_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"0bdc1cf1b3885c81\").hexdigest() == \"a14c028b3dcce83d77e9d6e812b0882ea688d752\", \"value of nov_temp_plot.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(nov_temp_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"0bdc1cf1b3885c81\").hexdigest() == \"ef6bf272fd0618356f113f422a749b1149c05d5f\", \"correct string value of nov_temp_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(nov_temp_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"06afe93c3b9c6bce\").hexdigest() == \"69a2fff844cb7a75ecae3d6930021f4bdf58037f\", \"type of nov_temp_plot.encoding.y['shorthand'] is not str. nov_temp_plot.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(nov_temp_plot.encoding.y['shorthand'])).encode(\"utf-8\")+b\"06afe93c3b9c6bce\").hexdigest() == \"c340a717ab4b8de6cf72ab066c90997344467558\", \"length of nov_temp_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(nov_temp_plot.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"06afe93c3b9c6bce\").hexdigest() == \"d7fca436c6046b0aca615459d4eb15f6208ee151\", \"value of nov_temp_plot.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(nov_temp_plot.encoding.y['shorthand']).encode(\"utf-8\")+b\"06afe93c3b9c6bce\").hexdigest() == \"cb3c1952538f930f18952aea84a3774f09bc25a9\", \"correct string value of nov_temp_plot.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(nov_temp_plot.mark)).encode(\"utf-8\")+b\"bfb2748129ad9f79\").hexdigest() == \"83c23971134a92a067af12f798cba0df2c21d53a\", \"type of nov_temp_plot.mark is not str. nov_temp_plot.mark should be an str\"\n", - "assert sha1(str(len(nov_temp_plot.mark)).encode(\"utf-8\")+b\"bfb2748129ad9f79\").hexdigest() == \"a58d71dc21afc1b5419626aa786506085afd51f7\", \"length of nov_temp_plot.mark is not correct\"\n", - "assert sha1(str(nov_temp_plot.mark.lower()).encode(\"utf-8\")+b\"bfb2748129ad9f79\").hexdigest() == \"bbce8368f0dd7253c9e40bc8900ba53cb8d6cbd9\", \"value of nov_temp_plot.mark is not correct\"\n", - "assert sha1(str(nov_temp_plot.mark).encode(\"utf-8\")+b\"bfb2748129ad9f79\").hexdigest() == \"bbce8368f0dd7253c9e40bc8900ba53cb8d6cbd9\", \"correct string value of nov_temp_plot.mark but incorrect case of letters\"\n", + "assert sha1(str(type(nov_temp_plot.mark)).encode(\"utf-8\")+b\"f4be47e4cb7b3a4b\").hexdigest() == \"9fd87d7cdc381ee6c4d8bdb8933bf8a7e9960a26\", \"type of nov_temp_plot.mark is not str. nov_temp_plot.mark should be an str\"\n", + "assert sha1(str(len(nov_temp_plot.mark)).encode(\"utf-8\")+b\"f4be47e4cb7b3a4b\").hexdigest() == \"20aae228d9c2f845ba7ae544b4be7a11c59b1db8\", \"length of nov_temp_plot.mark is not correct\"\n", + "assert sha1(str(nov_temp_plot.mark.lower()).encode(\"utf-8\")+b\"f4be47e4cb7b3a4b\").hexdigest() == \"bc56e7d3dcb5bb865a13dda897c3497c5cfb8e54\", \"value of nov_temp_plot.mark is not correct\"\n", + "assert sha1(str(nov_temp_plot.mark).encode(\"utf-8\")+b\"f4be47e4cb7b3a4b\").hexdigest() == \"bc56e7d3dcb5bb865a13dda897c3497c5cfb8e54\", \"correct string value of nov_temp_plot.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(nov_temp_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"d4d9e4eed9a975e1\").hexdigest() == \"5cd790d55625863f350aa49ae57de2b9531c7d20\", \"type of isinstance(nov_temp_plot.encoding.y['title'], str) is not bool. isinstance(nov_temp_plot.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(nov_temp_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"d4d9e4eed9a975e1\").hexdigest() == \"3765dcd0bf80358ebabe485eb6d147c0d6f4aed5\", \"boolean value of isinstance(nov_temp_plot.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(nov_temp_plot.encoding.y['title'], str))).encode(\"utf-8\")+b\"82b144ab8a5042ee\").hexdigest() == \"1f78fdc39f7f11cf0853157939e8dc7c8b0e22f0\", \"type of isinstance(nov_temp_plot.encoding.y['title'], str) is not bool. isinstance(nov_temp_plot.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(nov_temp_plot.encoding.y['title'], str)).encode(\"utf-8\")+b\"82b144ab8a5042ee\").hexdigest() == \"7821b96141c3053c7551373e7ee4ca3d2c3f8026\", \"boolean value of isinstance(nov_temp_plot.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2024,7 +2024,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8997321c23457a1d7efbe70257aafa3a", + "checksum": "70212110efe8edc00b3964f8f3df4579", "grade": true, "grade_id": "cell-4529c8b1eb657878", "locked": true, @@ -2036,14 +2036,14 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(all_temp_plot is None)).encode(\"utf-8\")+b\"78f4672123dfc5fc\").hexdigest() == \"f3ccc9f0f5edcaea30ed47ccd3c5601793f9f246\", \"type of all_temp_plot is None is not bool. all_temp_plot is None should be a bool\"\n", - "assert sha1(str(all_temp_plot is None).encode(\"utf-8\")+b\"78f4672123dfc5fc\").hexdigest() == \"a4cccaf12f3ab6acca772d50f0dce8f1648c296f\", \"boolean value of all_temp_plot is None is not correct\"\n", + "assert sha1(str(type(all_temp_plot is None)).encode(\"utf-8\")+b\"d81268b81e1b9f66\").hexdigest() == \"f6b9e158c0a8c233a0fd978e78500a2254bbe457\", \"type of all_temp_plot is None is not bool. all_temp_plot is None should be a bool\"\n", + "assert sha1(str(all_temp_plot is None).encode(\"utf-8\")+b\"d81268b81e1b9f66\").hexdigest() == \"db141928c270d3c296928656a32a5b47cf2267c4\", \"boolean value of all_temp_plot is None is not correct\"\n", "\n", - "assert sha1(str(type(\"Month\" in all_temp_plot.data.columns)).encode(\"utf-8\")+b\"fe53997d06b3ce5e\").hexdigest() == \"0467f3f04e9e8323af953aa8fc48a7a7779bf3dd\", \"type of \\\"Month\\\" in all_temp_plot.data.columns is not bool. \\\"Month\\\" in all_temp_plot.data.columns should be a bool\"\n", - "assert sha1(str(\"Month\" in all_temp_plot.data.columns).encode(\"utf-8\")+b\"fe53997d06b3ce5e\").hexdigest() == \"ea3972146f5b9ca01e7c0e7ce4e0d65909b6c054\", \"boolean value of \\\"Month\\\" in all_temp_plot.data.columns is not correct\"\n", + "assert sha1(str(type(\"Month\" in all_temp_plot.data.columns)).encode(\"utf-8\")+b\"9bf6b6b40772d640\").hexdigest() == \"32e678fcd8c3df53460f0b15e42ff2a589c7b406\", \"type of \\\"Month\\\" in all_temp_plot.data.columns is not bool. \\\"Month\\\" in all_temp_plot.data.columns should be a bool\"\n", + "assert sha1(str(\"Month\" in all_temp_plot.data.columns).encode(\"utf-8\")+b\"9bf6b6b40772d640\").hexdigest() == \"6e0b375b019ccaf003deaa55cada7d1b0cdec3db\", \"boolean value of \\\"Month\\\" in all_temp_plot.data.columns is not correct\"\n", "\n", - "assert sha1(str(type(all_temp_plot.facet)).encode(\"utf-8\")+b\"fb0e1b0ca20e57fd\").hexdigest() == \"fd64ceb58309b154003b15f88b33499bd33a7053\", \"type of all_temp_plot.facet is not correct\"\n", - "assert sha1(str(all_temp_plot.facet).encode(\"utf-8\")+b\"fb0e1b0ca20e57fd\").hexdigest() == \"a3cfac266fcd92d0139f6e36aac7cbce42957b23\", \"value of all_temp_plot.facet is not correct\"\n", + "assert sha1(str(type(all_temp_plot.facet)).encode(\"utf-8\")+b\"e7a3b38381f9a95f\").hexdigest() == \"b072f72f92c3642d31e083acff608e11f697d290\", \"type of all_temp_plot.facet is not correct\"\n", + "assert sha1(str(all_temp_plot.facet).encode(\"utf-8\")+b\"e7a3b38381f9a95f\").hexdigest() == \"0e55775a25e0302ade57794f8c817d4bc0b97bd5\", \"value of all_temp_plot.facet is not correct\"\n", "\n", "print('Success!')" ] @@ -2190,7 +2190,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7b7e37de30f65623faa9428ef67cff24", + "checksum": "6643229a1348a9d91b63c543c156aa41", "grade": true, "grade_id": "cell-d67db6d2cd3971aa", "locked": true, @@ -2202,8 +2202,8 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(all_temp_plot)).encode(\"utf-8\")+b\"dbdf2bdf3c8fdbe7\").hexdigest() == \"4fc456a39a472ceba0c3aa824467d09e9915b24a\", \"type of all_temp_plot is not correct\"\n", - "assert sha1(str(all_temp_plot).encode(\"utf-8\")+b\"dbdf2bdf3c8fdbe7\").hexdigest() == \"a0f667ef319e444bf507a922adc5cb64af55499b\", \"value of all_temp_plot is not correct\"\n", + "assert sha1(str(type(all_temp_plot)).encode(\"utf-8\")+b\"1797484f1e1c07db\").hexdigest() == \"d9fdb363988ed7db2bf648e79a330d74661cf72f\", \"type of all_temp_plot is not correct\"\n", + "assert sha1(str(all_temp_plot).encode(\"utf-8\")+b\"1797484f1e1c07db\").hexdigest() == \"b79788207e90be4e58d07c240bd1e0ce8dc5629b\", \"value of all_temp_plot is not correct\"\n", "\n", "print('Success!')" ] @@ -2264,7 +2264,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7e837f2072817d6696317b8242cdd325", + "checksum": "1251fa492bf1722dbbe39bbc5342892e", "grade": true, "grade_id": "cell-902507dc58ec5428", "locked": true, @@ -2289,8 +2289,8 @@ "assert str(type(madrid.columns.values)) == \"\", \"type of madrid.columns.values is not correct\"\n", "assert str(madrid.columns.values) == \"['date' 'BEN' 'CO' 'EBE' 'MXY' 'NMHC' 'NO_2' 'NOx' 'OXY' 'O_3' 'PM10'\\n 'PXY' 'SO_2' 'TCH' 'TOL' 'year' 'mnth']\", \"value of madrid.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(madrid.BEN.dropna()))).encode(\"utf-8\")+b\"895d33474063b158\").hexdigest() == \"409b3c80e866ab23fa4aae28cdbad8111698ad8f\", \"type of sum(madrid.BEN.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(madrid.BEN.dropna()), 2)).encode(\"utf-8\")+b\"895d33474063b158\").hexdigest() == \"9af7c46237a3ba0529b967847a846139f80bfc72\", \"value of sum(madrid.BEN.dropna()) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(madrid.BEN.dropna()))).encode(\"utf-8\")+b\"00cd5236ef54b447\").hexdigest() == \"abb09b04fa2cbdc605ecfe9705fd44fff18cda5a\", \"type of sum(madrid.BEN.dropna()) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(madrid.BEN.dropna()), 2)).encode(\"utf-8\")+b\"00cd5236ef54b447\").hexdigest() == \"6473419e9dbe133f72eb3eae5a98a55c096bbc7d\", \"value of sum(madrid.BEN.dropna()) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -2360,7 +2360,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "7281bff326b123165c825674a0a3f37b", + "checksum": "f28dfa6c0f1f5d79337b7f4b91d9c5b9", "grade": true, "grade_id": "cell-4de75a47d9cc2dca", "locked": true, @@ -2372,29 +2372,29 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(EBE_pollution is None)).encode(\"utf-8\")+b\"9067a91886fe4957\").hexdigest() == \"4de1fcbb606daaead0788134dd23dd2247e127cb\", \"type of EBE_pollution is None is not bool. EBE_pollution is None should be a bool\"\n", - "assert sha1(str(EBE_pollution is None).encode(\"utf-8\")+b\"9067a91886fe4957\").hexdigest() == \"f453db21b14885c8accc5d1a089c954b529c65bf\", \"boolean value of EBE_pollution is None is not correct\"\n", + "assert sha1(str(type(EBE_pollution is None)).encode(\"utf-8\")+b\"4cb708238abdc5e9\").hexdigest() == \"460b7b52ef802724f01a67791803bde1c71a5764\", \"type of EBE_pollution is None is not bool. EBE_pollution is None should be a bool\"\n", + "assert sha1(str(EBE_pollution is None).encode(\"utf-8\")+b\"4cb708238abdc5e9\").hexdigest() == \"18e244850c67dbcbb0d5c79b4f630cbb0e6de733\", \"boolean value of EBE_pollution is None is not correct\"\n", "\n", - "assert sha1(str(type(EBE_pollution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"4ad35e3e5c0de573\").hexdigest() == \"64ecd1f37786a450a4702f3b9f9ee97c7d5febb6\", \"type of EBE_pollution.encoding.x['shorthand'] is not str. EBE_pollution.encoding.x['shorthand'] should be an str\"\n", - "assert sha1(str(len(EBE_pollution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"4ad35e3e5c0de573\").hexdigest() == \"b10c8f44ae46a087afbd469c7186ae07b1c9b462\", \"length of EBE_pollution.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(EBE_pollution.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"4ad35e3e5c0de573\").hexdigest() == \"dac8d640d919ce33b0901570ffda1c8bdd44c215\", \"value of EBE_pollution.encoding.x['shorthand'] is not correct\"\n", - "assert sha1(str(EBE_pollution.encoding.x['shorthand']).encode(\"utf-8\")+b\"4ad35e3e5c0de573\").hexdigest() == \"545f0e0190c19f6df37c1fc0afe475cf462786a5\", \"correct string value of EBE_pollution.encoding.x['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(EBE_pollution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"7ae4aff62560fa0a\").hexdigest() == \"d76ea04c4a0106f15bef9567cf516a1044bcd1b4\", \"type of EBE_pollution.encoding.x['shorthand'] is not str. EBE_pollution.encoding.x['shorthand'] should be an str\"\n", + "assert sha1(str(len(EBE_pollution.encoding.x['shorthand'])).encode(\"utf-8\")+b\"7ae4aff62560fa0a\").hexdigest() == \"3c201917d6c65c1a6d1974abc2109cfc5136500a\", \"length of EBE_pollution.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(EBE_pollution.encoding.x['shorthand'].lower()).encode(\"utf-8\")+b\"7ae4aff62560fa0a\").hexdigest() == \"966bdd4b9b04a401205a430b8405ce689d1bc141\", \"value of EBE_pollution.encoding.x['shorthand'] is not correct\"\n", + "assert sha1(str(EBE_pollution.encoding.x['shorthand']).encode(\"utf-8\")+b\"7ae4aff62560fa0a\").hexdigest() == \"330381c3e1dccf40c9d81f51ca7049abbc54b229\", \"correct string value of EBE_pollution.encoding.x['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(EBE_pollution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"314a762f37801cee\").hexdigest() == \"1536d1d32ba7c1a40816d22675f3da13ef7c17ff\", \"type of EBE_pollution.encoding.y['shorthand'] is not str. EBE_pollution.encoding.y['shorthand'] should be an str\"\n", - "assert sha1(str(len(EBE_pollution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"314a762f37801cee\").hexdigest() == \"0451fc41df94860bd8f00d05db1deb36cabd20f8\", \"length of EBE_pollution.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(EBE_pollution.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"314a762f37801cee\").hexdigest() == \"07169808909c4452469a143a4d2b0da0bdfc49df\", \"value of EBE_pollution.encoding.y['shorthand'] is not correct\"\n", - "assert sha1(str(EBE_pollution.encoding.y['shorthand']).encode(\"utf-8\")+b\"314a762f37801cee\").hexdigest() == \"4f003f69a0d78f22093c0ebf9f6730812094c822\", \"correct string value of EBE_pollution.encoding.y['shorthand'] but incorrect case of letters\"\n", + "assert sha1(str(type(EBE_pollution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"f294128950b2a475\").hexdigest() == \"99038cea099b91a83922f2515b87c124bdfbbdde\", \"type of EBE_pollution.encoding.y['shorthand'] is not str. EBE_pollution.encoding.y['shorthand'] should be an str\"\n", + "assert sha1(str(len(EBE_pollution.encoding.y['shorthand'])).encode(\"utf-8\")+b\"f294128950b2a475\").hexdigest() == \"0b6627c42073a4a3e6e502703b6979356c5362b0\", \"length of EBE_pollution.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(EBE_pollution.encoding.y['shorthand'].lower()).encode(\"utf-8\")+b\"f294128950b2a475\").hexdigest() == \"634dc044adbfdf33e058a3bf5e984507fb28f194\", \"value of EBE_pollution.encoding.y['shorthand'] is not correct\"\n", + "assert sha1(str(EBE_pollution.encoding.y['shorthand']).encode(\"utf-8\")+b\"f294128950b2a475\").hexdigest() == \"b375a60df2a3365f58090365b6bf5437fed9a1a5\", \"correct string value of EBE_pollution.encoding.y['shorthand'] but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(EBE_pollution.mark)).encode(\"utf-8\")+b\"23c648c970750c35\").hexdigest() == \"7a3d4f7cbb540b422123906e4aafccf1ccae861e\", \"type of EBE_pollution.mark is not str. EBE_pollution.mark should be an str\"\n", - "assert sha1(str(len(EBE_pollution.mark)).encode(\"utf-8\")+b\"23c648c970750c35\").hexdigest() == \"4cc8430f339857aa2f184dd1de71ee3e110f29d4\", \"length of EBE_pollution.mark is not correct\"\n", - "assert sha1(str(EBE_pollution.mark.lower()).encode(\"utf-8\")+b\"23c648c970750c35\").hexdigest() == \"b4f6fab40cfec68f6848f60a6d214a4d504d2b7f\", \"value of EBE_pollution.mark is not correct\"\n", - "assert sha1(str(EBE_pollution.mark).encode(\"utf-8\")+b\"23c648c970750c35\").hexdigest() == \"b4f6fab40cfec68f6848f60a6d214a4d504d2b7f\", \"correct string value of EBE_pollution.mark but incorrect case of letters\"\n", + "assert sha1(str(type(EBE_pollution.mark)).encode(\"utf-8\")+b\"86cb1d0852f1c063\").hexdigest() == \"943baf1e5ff016a0d996ac8de77569e84805df76\", \"type of EBE_pollution.mark is not str. EBE_pollution.mark should be an str\"\n", + "assert sha1(str(len(EBE_pollution.mark)).encode(\"utf-8\")+b\"86cb1d0852f1c063\").hexdigest() == \"dd8956c58619861ff0af905eda2fcb5d974e6cf1\", \"length of EBE_pollution.mark is not correct\"\n", + "assert sha1(str(EBE_pollution.mark.lower()).encode(\"utf-8\")+b\"86cb1d0852f1c063\").hexdigest() == \"9920c2dc7ca5ed16127907d7d394d70daf5e0c1e\", \"value of EBE_pollution.mark is not correct\"\n", + "assert sha1(str(EBE_pollution.mark).encode(\"utf-8\")+b\"86cb1d0852f1c063\").hexdigest() == \"9920c2dc7ca5ed16127907d7d394d70daf5e0c1e\", \"correct string value of EBE_pollution.mark but incorrect case of letters\"\n", "\n", - "assert sha1(str(type(isinstance(EBE_pollution.encoding.x['title'], str))).encode(\"utf-8\")+b\"772d9de50605c703\").hexdigest() == \"a78d697141f22ca115ec7ea240c9a8f3a1d3ea70\", \"type of isinstance(EBE_pollution.encoding.x['title'], str) is not bool. isinstance(EBE_pollution.encoding.x['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(EBE_pollution.encoding.x['title'], str)).encode(\"utf-8\")+b\"772d9de50605c703\").hexdigest() == \"f183073f091d00b27822f36ca8e87eb636c74eb7\", \"boolean value of isinstance(EBE_pollution.encoding.x['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(EBE_pollution.encoding.x['title'], str))).encode(\"utf-8\")+b\"d0f8af88b331e763\").hexdigest() == \"85da4b0aa49cedb08804bf8cd4a0750cdca8a720\", \"type of isinstance(EBE_pollution.encoding.x['title'], str) is not bool. isinstance(EBE_pollution.encoding.x['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(EBE_pollution.encoding.x['title'], str)).encode(\"utf-8\")+b\"d0f8af88b331e763\").hexdigest() == \"c3f3b2647396925975d1c909122bb84536fcba4b\", \"boolean value of isinstance(EBE_pollution.encoding.x['title'], str) is not correct\"\n", "\n", - "assert sha1(str(type(isinstance(EBE_pollution.encoding.y['title'], str))).encode(\"utf-8\")+b\"3a0a4ec9d85c2ce1\").hexdigest() == \"2556242609645080a8ffa85b0908c0f2bb86ae04\", \"type of isinstance(EBE_pollution.encoding.y['title'], str) is not bool. isinstance(EBE_pollution.encoding.y['title'], str) should be a bool\"\n", - "assert sha1(str(isinstance(EBE_pollution.encoding.y['title'], str)).encode(\"utf-8\")+b\"3a0a4ec9d85c2ce1\").hexdigest() == \"a72951aab479b54d73cb25e83709983691448b70\", \"boolean value of isinstance(EBE_pollution.encoding.y['title'], str) is not correct\"\n", + "assert sha1(str(type(isinstance(EBE_pollution.encoding.y['title'], str))).encode(\"utf-8\")+b\"c2c48c2e65146526\").hexdigest() == \"4e5f6710b4ad4194c49de3b44bb28dd8e2446f7e\", \"type of isinstance(EBE_pollution.encoding.y['title'], str) is not bool. isinstance(EBE_pollution.encoding.y['title'], str) should be a bool\"\n", + "assert sha1(str(isinstance(EBE_pollution.encoding.y['title'], str)).encode(\"utf-8\")+b\"c2c48c2e65146526\").hexdigest() == \"714648d70cafc963dfdfca118ea2bc79aad7bd35\", \"boolean value of isinstance(EBE_pollution.encoding.y['title'], str) is not correct\"\n", "\n", "print('Success!')" ] @@ -2477,7 +2477,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "8e0877f39e3e289dd00adc907ec137a3", + "checksum": "da04d65c6eb8758b2f29641ff60f6ee2", "grade": true, "grade_id": "cell-d04ca4acf0f5f6bc", "locked": true, @@ -2489,16 +2489,16 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(madrid_pollution is None)).encode(\"utf-8\")+b\"d40f863738cb22ff\").hexdigest() == \"71141eaed0d4e78669f4c26be54bd64a4fc9a3db\", \"type of madrid_pollution is None is not bool. madrid_pollution is None should be a bool\"\n", - "assert sha1(str(madrid_pollution is None).encode(\"utf-8\")+b\"d40f863738cb22ff\").hexdigest() == \"366ba6ebe68e41a4480424c38caeab7b2fc61ade\", \"boolean value of madrid_pollution is None is not correct\"\n", + "assert sha1(str(type(madrid_pollution is None)).encode(\"utf-8\")+b\"a9cbd6409cc9d130\").hexdigest() == \"7a4546e1ec1565df8695c88294ea40250cdecaf0\", \"type of madrid_pollution is None is not bool. madrid_pollution is None should be a bool\"\n", + "assert sha1(str(madrid_pollution is None).encode(\"utf-8\")+b\"a9cbd6409cc9d130\").hexdigest() == \"1d6108beb23871e95e2844f671311b31e01f2534\", \"boolean value of madrid_pollution is None is not correct\"\n", "\n", - "assert sha1(str(type(madrid_pollution.shape)).encode(\"utf-8\")+b\"3dccd1ca1d577335\").hexdigest() == \"21bf7111171b6a0b8aaf6fce4c66d72971f2cedf\", \"type of madrid_pollution.shape is not tuple. madrid_pollution.shape should be a tuple\"\n", - "assert sha1(str(len(madrid_pollution.shape)).encode(\"utf-8\")+b\"3dccd1ca1d577335\").hexdigest() == \"983014db3c0fdf248b52fb1fad003bff584de4c5\", \"length of madrid_pollution.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, madrid_pollution.shape))).encode(\"utf-8\")+b\"3dccd1ca1d577335\").hexdigest() == \"3ea1ec6574d0d403443b65d2939080a3c2dd46fc\", \"values of madrid_pollution.shape are not correct\"\n", - "assert sha1(str(madrid_pollution.shape).encode(\"utf-8\")+b\"3dccd1ca1d577335\").hexdigest() == \"0efe8c4ae40416bd5511cdc473a53196237ba780\", \"order of elements of madrid_pollution.shape is not correct\"\n", + "assert sha1(str(type(madrid_pollution.shape)).encode(\"utf-8\")+b\"afd96c3a9ba96ab1\").hexdigest() == \"9a41ba044566d83fc124b05a7b6f1360fbd73e0d\", \"type of madrid_pollution.shape is not tuple. madrid_pollution.shape should be a tuple\"\n", + "assert sha1(str(len(madrid_pollution.shape)).encode(\"utf-8\")+b\"afd96c3a9ba96ab1\").hexdigest() == \"c61ea70aa56ef41dba32451c6a441a3df82a75fe\", \"length of madrid_pollution.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, madrid_pollution.shape))).encode(\"utf-8\")+b\"afd96c3a9ba96ab1\").hexdigest() == \"6e0c03835e2de8647dcc58d28f74d2e09b74d576\", \"values of madrid_pollution.shape are not correct\"\n", + "assert sha1(str(madrid_pollution.shape).encode(\"utf-8\")+b\"afd96c3a9ba96ab1\").hexdigest() == \"c037a4eea7cedcc09830f7ee0fb613ed7aceb283\", \"order of elements of madrid_pollution.shape is not correct\"\n", "\n", - "assert sha1(str(type(sum(madrid_pollution.year))).encode(\"utf-8\")+b\"a0c285182a6e85c7\").hexdigest() == \"9b865d41a12e8f0db3b3b0e1d9bde386a3aa7ac1\", \"type of sum(madrid_pollution.year) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", - "assert sha1(str(sum(madrid_pollution.year)).encode(\"utf-8\")+b\"a0c285182a6e85c7\").hexdigest() == \"ab57010f307f1f5b3fec35b2e020d2a838c23469\", \"value of sum(madrid_pollution.year) is not correct\"\n", + "assert sha1(str(type(sum(madrid_pollution.year))).encode(\"utf-8\")+b\"d9e98dc87c756dbc\").hexdigest() == \"b5b0e8870931af5478968406d10944757400044b\", \"type of sum(madrid_pollution.year) is not int. Please make sure it is int and not np.int64, etc. You can cast your value into an int using int()\"\n", + "assert sha1(str(sum(madrid_pollution.year)).encode(\"utf-8\")+b\"d9e98dc87c756dbc\").hexdigest() == \"2a8855c166c6de8c3586bac9736606cd441d6493\", \"value of sum(madrid_pollution.year) is not correct\"\n", "\n", "print('Success!')" ] @@ -2650,7 +2650,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "ff105624a32a6c937a45e2a6d8708e79", + "checksum": "bc12d6209552e32e1c72c9d61862f08a", "grade": true, "grade_id": "cell-23ecb8f3102f3435", "locked": true, @@ -2662,19 +2662,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(pollution_2001 is None)).encode(\"utf-8\")+b\"2a58c2c888bb909a\").hexdigest() == \"d0c27bdcf0126c5bec6fb6fa5c856e40f4a89490\", \"type of pollution_2001 is None is not bool. pollution_2001 is None should be a bool\"\n", - "assert sha1(str(pollution_2001 is None).encode(\"utf-8\")+b\"2a58c2c888bb909a\").hexdigest() == \"8bcd8911ffdd676a569adf882baa33937c54cae6\", \"boolean value of pollution_2001 is None is not correct\"\n", + "assert sha1(str(type(pollution_2001 is None)).encode(\"utf-8\")+b\"ae77bc4416691185\").hexdigest() == \"31e069fe9031ea63af7a794ec8259343f8db2aec\", \"type of pollution_2001 is None is not bool. pollution_2001 is None should be a bool\"\n", + "assert sha1(str(pollution_2001 is None).encode(\"utf-8\")+b\"ae77bc4416691185\").hexdigest() == \"a46e6c75e872369d1dbfe74a5091495bb1981d33\", \"boolean value of pollution_2001 is None is not correct\"\n", "\n", - "assert sha1(str(type(pollution_2001.shape)).encode(\"utf-8\")+b\"f420a804e6e74f59\").hexdigest() == \"b2e0c8d6efabe031cea927dd87d1de59acb0ad90\", \"type of pollution_2001.shape is not tuple. pollution_2001.shape should be a tuple\"\n", - "assert sha1(str(len(pollution_2001.shape)).encode(\"utf-8\")+b\"f420a804e6e74f59\").hexdigest() == \"176461da6145d8c1f1f4defecfd3ca9233412b52\", \"length of pollution_2001.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, pollution_2001.shape))).encode(\"utf-8\")+b\"f420a804e6e74f59\").hexdigest() == \"337132733fa379482b85240d937e3ae4ddbf74ba\", \"values of pollution_2001.shape are not correct\"\n", - "assert sha1(str(pollution_2001.shape).encode(\"utf-8\")+b\"f420a804e6e74f59\").hexdigest() == \"ab6afb83e0873a1f328478c654e62efc0d913157\", \"order of elements of pollution_2001.shape is not correct\"\n", + "assert sha1(str(type(pollution_2001.shape)).encode(\"utf-8\")+b\"f13eef5ab6f60a0b\").hexdigest() == \"9c970af2e8fa37270b5a388c273bf5b5b7741641\", \"type of pollution_2001.shape is not tuple. pollution_2001.shape should be a tuple\"\n", + "assert sha1(str(len(pollution_2001.shape)).encode(\"utf-8\")+b\"f13eef5ab6f60a0b\").hexdigest() == \"1f490d16b6cdde009d6f88bfe5db6a398df8f888\", \"length of pollution_2001.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, pollution_2001.shape))).encode(\"utf-8\")+b\"f13eef5ab6f60a0b\").hexdigest() == \"08c6eb791b7f2baa745d1bed340c5bf329064cf9\", \"values of pollution_2001.shape are not correct\"\n", + "assert sha1(str(pollution_2001.shape).encode(\"utf-8\")+b\"f13eef5ab6f60a0b\").hexdigest() == \"13e3c3661c4ac3a9d6c1513bb2d7553dd821b65e\", \"order of elements of pollution_2001.shape is not correct\"\n", "\n", - "assert sha1(str(type(pollution_2001.MXY.values)).encode(\"utf-8\")+b\"9b8893b6472c0799\").hexdigest() == \"1fed02a96b424d20f77f49d72ca4a79baab339f6\", \"type of pollution_2001.MXY.values is not correct\"\n", - "assert sha1(str(pollution_2001.MXY.values).encode(\"utf-8\")+b\"9b8893b6472c0799\").hexdigest() == \"296744ca3835aaf485623cfb10b4819c0f9056bd\", \"value of pollution_2001.MXY.values is not correct\"\n", + "assert sha1(str(type(pollution_2001.MXY.values)).encode(\"utf-8\")+b\"5e1857c46b8deefa\").hexdigest() == \"fe707ba2179f43fd17fb3c1e35ad479c26019f33\", \"type of pollution_2001.MXY.values is not correct\"\n", + "assert sha1(str(pollution_2001.MXY.values).encode(\"utf-8\")+b\"5e1857c46b8deefa\").hexdigest() == \"fbf8891f803718a52bf3eaa69c4d559233c26a78\", \"value of pollution_2001.MXY.values is not correct\"\n", "\n", - "assert sha1(str(type(pollution_2001.values.sum())).encode(\"utf-8\")+b\"f915df13e4fb81fa\").hexdigest() == \"6cfda7930c441e498886ad12449f6b6204e95a6c\", \"type of pollution_2001.values.sum() is not correct\"\n", - "assert sha1(str(pollution_2001.values.sum()).encode(\"utf-8\")+b\"f915df13e4fb81fa\").hexdigest() == \"4bd8de8fe2378322510cf709e0138fcce9eb42a5\", \"value of pollution_2001.values.sum() is not correct\"\n", + "assert sha1(str(type(pollution_2001.values.sum())).encode(\"utf-8\")+b\"9622d3a9b96bd867\").hexdigest() == \"9a00742f010b278587faeff4f45978c5ddad0cbe\", \"type of pollution_2001.values.sum() is not correct\"\n", + "assert sha1(str(pollution_2001.values.sum()).encode(\"utf-8\")+b\"9622d3a9b96bd867\").hexdigest() == \"48b3b0f87d738921aea839a1c3c13d00fc9b6122\", \"value of pollution_2001.values.sum() is not correct\"\n", "\n", "print('Success!')" ] @@ -2733,7 +2733,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "0fde18b0697cb5ec33c34fb77b9d48bc", + "checksum": "251964afccbf707eef82c2a7cdb408e1", "grade": true, "grade_id": "cell-df023e23794302c6", "locked": true, @@ -2753,11 +2753,11 @@ "assert str(sorted(map(str, pollution_2006.shape))) == \"['1', '14']\", \"values of pollution_2006.shape are not correct\"\n", "assert str(pollution_2006.shape) == \"(1, 14)\", \"order of elements of pollution_2006.shape is not correct\"\n", "\n", - "assert sha1(str(type(pollution_2006.MXY.values)).encode(\"utf-8\")+b\"5bc13f18355b06c3\").hexdigest() == \"36f773a55780bb3d53ed0c8586a096806275ac16\", \"type of pollution_2006.MXY.values is not correct\"\n", - "assert sha1(str(pollution_2006.MXY.values).encode(\"utf-8\")+b\"5bc13f18355b06c3\").hexdigest() == \"d8e5868f6f4d493a28bf38711c8d62144d50932d\", \"value of pollution_2006.MXY.values is not correct\"\n", + "assert sha1(str(type(pollution_2006.MXY.values)).encode(\"utf-8\")+b\"c2f2ca85a97b9a4c\").hexdigest() == \"3a4eabbf5d11b614d70cec2536125abe7776f85f\", \"type of pollution_2006.MXY.values is not correct\"\n", + "assert sha1(str(pollution_2006.MXY.values).encode(\"utf-8\")+b\"c2f2ca85a97b9a4c\").hexdigest() == \"797841b8c70617b06dbfa1ddd9d25340748c2136\", \"value of pollution_2006.MXY.values is not correct\"\n", "\n", - "assert sha1(str(type(pollution_2006.values.sum())).encode(\"utf-8\")+b\"624be4b84a2a70c5\").hexdigest() == \"383f8e6f3fdbefd45e479b830828e259663b8aab\", \"type of pollution_2006.values.sum() is not correct\"\n", - "assert sha1(str(pollution_2006.values.sum()).encode(\"utf-8\")+b\"624be4b84a2a70c5\").hexdigest() == \"6a2f65ef6e9de19b1ae59ad74b5af6be304dcfdc\", \"value of pollution_2006.values.sum() is not correct\"\n", + "assert sha1(str(type(pollution_2006.values.sum())).encode(\"utf-8\")+b\"cde21751885b9bb1\").hexdigest() == \"b676a45298c95d69bd644007f5bae551510f9cd5\", \"type of pollution_2006.values.sum() is not correct\"\n", + "assert sha1(str(pollution_2006.values.sum()).encode(\"utf-8\")+b\"cde21751885b9bb1\").hexdigest() == \"cb2f861a2b50b6598ca0292bf4dda3fee6f0fb37\", \"value of pollution_2006.values.sum() is not correct\"\n", "\n", "print('Success!')" ] @@ -2819,7 +2819,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "cd8fb50091900c844184ac47b0243fdf", + "checksum": "0281362fc4ca4a0ec19fe7528cd6815e", "grade": true, "grade_id": "cell-5ed11e7cbe1ac843", "locked": true, @@ -2831,10 +2831,10 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(answer3_8)).encode(\"utf-8\")+b\"acf9badefcb92263\").hexdigest() == \"483f612fe0fd7674dc12c3c4ed21f7f604c834f5\", \"type of answer3_8 is not str. answer3_8 should be an str\"\n", - "assert sha1(str(len(answer3_8)).encode(\"utf-8\")+b\"acf9badefcb92263\").hexdigest() == \"2b40b1cb4e230bed2b0a5d58807fc7d16cfbe691\", \"length of answer3_8 is not correct\"\n", - "assert sha1(str(answer3_8.lower()).encode(\"utf-8\")+b\"acf9badefcb92263\").hexdigest() == \"c8ce901b92db2aeb3b980c649c86e7f5c54fea15\", \"value of answer3_8 is not correct\"\n", - "assert sha1(str(answer3_8).encode(\"utf-8\")+b\"acf9badefcb92263\").hexdigest() == \"9bd3bbd1a918a854487ece2e459c00c38a34c6c0\", \"correct string value of answer3_8 but incorrect case of letters\"\n", + "assert sha1(str(type(answer3_8)).encode(\"utf-8\")+b\"4c2e617b84be8ff1\").hexdigest() == \"47e51c9670e4cd6bb5d6fce9556fade0de0bdcf7\", \"type of answer3_8 is not str. answer3_8 should be an str\"\n", + "assert sha1(str(len(answer3_8)).encode(\"utf-8\")+b\"4c2e617b84be8ff1\").hexdigest() == \"f93536bbc5717e51ed6d2396903bf13c14af5a8e\", \"length of answer3_8 is not correct\"\n", + "assert sha1(str(answer3_8.lower()).encode(\"utf-8\")+b\"4c2e617b84be8ff1\").hexdigest() == \"7880c020bd6dd9d517cb06c01f09d35a28fee667\", \"value of answer3_8 is not correct\"\n", + "assert sha1(str(answer3_8).encode(\"utf-8\")+b\"4c2e617b84be8ff1\").hexdigest() == \"a113bfccd3bc21d847ac61fb60bd69339decb3ab\", \"correct string value of answer3_8 but incorrect case of letters\"\n", "\n", "print('Success!')" ] @@ -2948,7 +2948,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f1b7886c41b24c5ca1ae7c92b095e1e2", + "checksum": "84f6680c532797de2b457f1856757b7c", "grade": true, "grade_id": "cell-434094b036007273", "locked": true, @@ -2960,19 +2960,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(pollution_diff is None)).encode(\"utf-8\")+b\"bf03dfad56da7751\").hexdigest() == \"1580eb4e086b533e41c649ddff3ae8bd6775bb77\", \"type of pollution_diff is None is not bool. pollution_diff is None should be a bool\"\n", - "assert sha1(str(pollution_diff is None).encode(\"utf-8\")+b\"bf03dfad56da7751\").hexdigest() == \"ca61ef1843bdf511f39e79eb2e2dcde4a9067fad\", \"boolean value of pollution_diff is None is not correct\"\n", + "assert sha1(str(type(pollution_diff is None)).encode(\"utf-8\")+b\"7306cff73ae9f427\").hexdigest() == \"9d45600b2e7925471a98da68d39dc81a09ef5406\", \"type of pollution_diff is None is not bool. pollution_diff is None should be a bool\"\n", + "assert sha1(str(pollution_diff is None).encode(\"utf-8\")+b\"7306cff73ae9f427\").hexdigest() == \"6a46a5774219033d9b0412eb097674056a505155\", \"boolean value of pollution_diff is None is not correct\"\n", "\n", - "assert sha1(str(type(pollution_diff.shape)).encode(\"utf-8\")+b\"d197b74da956c266\").hexdigest() == \"9c5781b40cf0eca70f14a787ed14ff5d0e827ee8\", \"type of pollution_diff.shape is not tuple. pollution_diff.shape should be a tuple\"\n", - "assert sha1(str(len(pollution_diff.shape)).encode(\"utf-8\")+b\"d197b74da956c266\").hexdigest() == \"c7a130aa0372aa8b789c2ed9ad8be6b59b3df1e6\", \"length of pollution_diff.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, pollution_diff.shape))).encode(\"utf-8\")+b\"d197b74da956c266\").hexdigest() == \"9a2d8b24cbaa9b0feb4a30b17177b26b4bdbbc8e\", \"values of pollution_diff.shape are not correct\"\n", - "assert sha1(str(pollution_diff.shape).encode(\"utf-8\")+b\"d197b74da956c266\").hexdigest() == \"98685d18b28c9ff6044f37934aa89a58ee2326fe\", \"order of elements of pollution_diff.shape is not correct\"\n", + "assert sha1(str(type(pollution_diff.shape)).encode(\"utf-8\")+b\"18643c77a77e6817\").hexdigest() == \"cdbfc71723d36a5bf491b816424b337dd7f38c64\", \"type of pollution_diff.shape is not tuple. pollution_diff.shape should be a tuple\"\n", + "assert sha1(str(len(pollution_diff.shape)).encode(\"utf-8\")+b\"18643c77a77e6817\").hexdigest() == \"06b5a26c6e0a4c32628545f1fdff1e42fe7d5aa7\", \"length of pollution_diff.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, pollution_diff.shape))).encode(\"utf-8\")+b\"18643c77a77e6817\").hexdigest() == \"ff0d10e00c30ab8f4610bb8073021461c56ba901\", \"values of pollution_diff.shape are not correct\"\n", + "assert sha1(str(pollution_diff.shape).encode(\"utf-8\")+b\"18643c77a77e6817\").hexdigest() == \"f395897408484470f776ca61c922ddeba34a96c4\", \"order of elements of pollution_diff.shape is not correct\"\n", "\n", - "assert sha1(str(type(pollution_diff.columns.values)).encode(\"utf-8\")+b\"3ad11063209ea422\").hexdigest() == \"24880cb80cf350b7ad32f972505d9c123c8223c8\", \"type of pollution_diff.columns.values is not correct\"\n", - "assert sha1(str(pollution_diff.columns.values).encode(\"utf-8\")+b\"3ad11063209ea422\").hexdigest() == \"6d1b166891ad4ea207ab23af174d9b9d0914f9b6\", \"value of pollution_diff.columns.values is not correct\"\n", + "assert sha1(str(type(pollution_diff.columns.values)).encode(\"utf-8\")+b\"2502bb7a518a63c5\").hexdigest() == \"c52fa60a7e1c47ee6cd3cffbe588aa214c27d1ee\", \"type of pollution_diff.columns.values is not correct\"\n", + "assert sha1(str(pollution_diff.columns.values).encode(\"utf-8\")+b\"2502bb7a518a63c5\").hexdigest() == \"e5408c09374312118eb013786bb713f731dc0c0a\", \"value of pollution_diff.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(pollution_diff.value))).encode(\"utf-8\")+b\"52a7eea27fe8970b\").hexdigest() == \"7bdfe3dc1c176804c26b1de9fbeab0feb165458d\", \"type of sum(pollution_diff.value) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(pollution_diff.value), 2)).encode(\"utf-8\")+b\"52a7eea27fe8970b\").hexdigest() == \"aa78e806343c77234626b1da99d50502246be345\", \"value of sum(pollution_diff.value) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(pollution_diff.value))).encode(\"utf-8\")+b\"3304f5bff4363a5f\").hexdigest() == \"51df6adf613ea26bcd0abba42f4b499aec0b7ca1\", \"type of sum(pollution_diff.value) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(pollution_diff.value), 2)).encode(\"utf-8\")+b\"3304f5bff4363a5f\").hexdigest() == \"3f82b7402b3f00e68da212876f52c679936a1e0f\", \"value of sum(pollution_diff.value) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ] @@ -3037,7 +3037,7 @@ "editable": false, "nbgrader": { "cell_type": "code", - "checksum": "f824ec8efdf07b7fb5e3b875043883c5", + "checksum": "5ea1818ef0b5af235aee736a5f456655", "grade": true, "grade_id": "cell-f9cfd97235c900d5", "locked": true, @@ -3049,19 +3049,19 @@ "outputs": [], "source": [ "from hashlib import sha1\n", - "assert sha1(str(type(max_pollution_diff is None)).encode(\"utf-8\")+b\"310df13ed2c4fd86\").hexdigest() == \"9e38cbea8e35ae1bc4e48ac0417de643578aa0bb\", \"type of max_pollution_diff is None is not bool. max_pollution_diff is None should be a bool\"\n", - "assert sha1(str(max_pollution_diff is None).encode(\"utf-8\")+b\"310df13ed2c4fd86\").hexdigest() == \"1af98bb33049b2d6decb21df164d3498b9c46f4a\", \"boolean value of max_pollution_diff is None is not correct\"\n", + "assert sha1(str(type(max_pollution_diff is None)).encode(\"utf-8\")+b\"3a084ebb718f80c3\").hexdigest() == \"09d9377549ea3528d70761729b050fbe6ba9e4c4\", \"type of max_pollution_diff is None is not bool. max_pollution_diff is None should be a bool\"\n", + "assert sha1(str(max_pollution_diff is None).encode(\"utf-8\")+b\"3a084ebb718f80c3\").hexdigest() == \"b72f27549c07757186afb00e7bdf7ae7239164fa\", \"boolean value of max_pollution_diff is None is not correct\"\n", "\n", - "assert sha1(str(type(max_pollution_diff.shape)).encode(\"utf-8\")+b\"ff3b0c999a18e11c\").hexdigest() == \"e2ca4d0ef7062cc63df506f4bedad2998b33153e\", \"type of max_pollution_diff.shape is not tuple. max_pollution_diff.shape should be a tuple\"\n", - "assert sha1(str(len(max_pollution_diff.shape)).encode(\"utf-8\")+b\"ff3b0c999a18e11c\").hexdigest() == \"70a49c0c66d70eae11bc6446472ef483c3f97880\", \"length of max_pollution_diff.shape is not correct\"\n", - "assert sha1(str(sorted(map(str, max_pollution_diff.shape))).encode(\"utf-8\")+b\"ff3b0c999a18e11c\").hexdigest() == \"00f5eb7d5dfa26e0c8cfc8d9d7ee6a0238c38c66\", \"values of max_pollution_diff.shape are not correct\"\n", - "assert sha1(str(max_pollution_diff.shape).encode(\"utf-8\")+b\"ff3b0c999a18e11c\").hexdigest() == \"c76ea17d5f77f960a85715f99b295d06d098d7d1\", \"order of elements of max_pollution_diff.shape is not correct\"\n", + "assert sha1(str(type(max_pollution_diff.shape)).encode(\"utf-8\")+b\"85fb5fcc7baac949\").hexdigest() == \"aeea8562cbb0a29cbf2b535870d6650ce3e31c65\", \"type of max_pollution_diff.shape is not tuple. max_pollution_diff.shape should be a tuple\"\n", + "assert sha1(str(len(max_pollution_diff.shape)).encode(\"utf-8\")+b\"85fb5fcc7baac949\").hexdigest() == \"5264785ebcbd4fd37dc2a115e99760ce616b0eb6\", \"length of max_pollution_diff.shape is not correct\"\n", + "assert sha1(str(sorted(map(str, max_pollution_diff.shape))).encode(\"utf-8\")+b\"85fb5fcc7baac949\").hexdigest() == \"2e05fd18b8e424806521b732715d7ab5c3e3067b\", \"values of max_pollution_diff.shape are not correct\"\n", + "assert sha1(str(max_pollution_diff.shape).encode(\"utf-8\")+b\"85fb5fcc7baac949\").hexdigest() == \"118da06f3f9b12b96e3ee2ae8a1f6cb3d3e10f81\", \"order of elements of max_pollution_diff.shape is not correct\"\n", "\n", - "assert sha1(str(type(max_pollution_diff.columns.values)).encode(\"utf-8\")+b\"4d6e2fb7c53c48ed\").hexdigest() == \"9e2a8dcd055b77e4e1b945829f4e9b95c042ea21\", \"type of max_pollution_diff.columns.values is not correct\"\n", - "assert sha1(str(max_pollution_diff.columns.values).encode(\"utf-8\")+b\"4d6e2fb7c53c48ed\").hexdigest() == \"464c27061aab802600cfae7afbe7c8dffbcd1621\", \"value of max_pollution_diff.columns.values is not correct\"\n", + "assert sha1(str(type(max_pollution_diff.columns.values)).encode(\"utf-8\")+b\"e21c3ea0dfd435c9\").hexdigest() == \"5a056c33275b224eb6126532c2989b97071d8583\", \"type of max_pollution_diff.columns.values is not correct\"\n", + "assert sha1(str(max_pollution_diff.columns.values).encode(\"utf-8\")+b\"e21c3ea0dfd435c9\").hexdigest() == \"defd0e363b5d74144f2d83ed82153c3b22189343\", \"value of max_pollution_diff.columns.values is not correct\"\n", "\n", - "assert sha1(str(type(sum(max_pollution_diff.value))).encode(\"utf-8\")+b\"85ecde0555f77712\").hexdigest() == \"99a047025611f0abfa37d96118bc261836b62117\", \"type of sum(max_pollution_diff.value) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", - "assert sha1(str(round(sum(max_pollution_diff.value), 2)).encode(\"utf-8\")+b\"85ecde0555f77712\").hexdigest() == \"4e40906c41dc993be3fa62f864c790ea948773b1\", \"value of sum(max_pollution_diff.value) is not correct (rounded to 2 decimal places)\"\n", + "assert sha1(str(type(sum(max_pollution_diff.value))).encode(\"utf-8\")+b\"4b4e8e1ed3deea52\").hexdigest() == \"e739e87e40b13561fe922b460f023a1195a1596d\", \"type of sum(max_pollution_diff.value) is not float. Please make sure it is float and not np.float64, etc. You can cast your value into a float using float()\"\n", + "assert sha1(str(round(sum(max_pollution_diff.value), 2)).encode(\"utf-8\")+b\"4b4e8e1ed3deea52\").hexdigest() == \"8458200f790c8f3159a695a15db142017c080bf8\", \"value of sum(max_pollution_diff.value) is not correct (rounded to 2 decimal places)\"\n", "\n", "print('Success!')" ]