{"id":77,"date":"2019-10-04T15:04:15","date_gmt":"2019-10-04T15:04:15","guid":{"rendered":"https:\/\/www.beens.ca\/python\/?p=77"},"modified":"2019-10-08T13:41:25","modified_gmt":"2019-10-08T13:41:25","slug":"day-4-learning-summary-for-100daysofcode-2","status":"publish","type":"post","link":"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/","title":{"rendered":"Day 4 Learning Summary for #100DaysOfCode"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e5df7076318\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e5df7076318\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#Goal\">Goal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#My_Approach\">My Approach<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#List_Comprehension\">List Comprehension<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#GitHub_Pages\">GitHub Pages<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#Solution\">Solution<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#List_Comprehension-2\">List Comprehension<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#GitHub_Pages-2\">GitHub Pages<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#What_I_Learned\">What I Learned<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#List_Comprehension-3\">List Comprehension<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#GitHub_Pages-3\">GitHub Pages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.beens.ca\/python\/2019\/10\/04\/day-4-learning-summary-for-100daysofcode-2\/#Other_Learning\">Other Learning<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<h2><span class=\"ez-toc-section\" id=\"Goal\"><\/span>Goal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I want to continue list comprehension exercises. My goal is to learn enough about list comprehension to efficiently finish the coding for day 2.<\/p>\n<p>I also got interested yesterday in someone&#8217;s GitHub.io biography which made me want to learn how to do that.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"My_Approach\"><\/span><a id=\"user-content-my-approach\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#my-approach\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>My Approach<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><!--more--><\/p>\n<h3><span class=\"ez-toc-section\" id=\"List_Comprehension\"><\/span><a id=\"user-content-list-comprehension\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#list-comprehension\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>List Comprehension<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To find more resources with exercises and to come up with exercises on my own. I will expand on the existing\u00a0<a href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/..%5C03%5Clist_comp.ipynb\" target=\"_blank\" rel=\"noopener\">Python notebook<\/a>\u00a0I created in day 3.<\/p>\n<p>Google might be a good start:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.google.com\/search?q=list+comprehension+exercises\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.google.com\/search?q=list+comprehension+exercises<\/a><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"GitHub_Pages\"><\/span><a id=\"user-content-github-pages\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#github-pages\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>GitHub Pages<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To find (and follow) a resource related to creating pages on githib.io (AKA GitHub pages) and adapt my\u00a0<a href=\"https:\/\/peter.beens.ca\/\" rel=\"nofollow noopener\" target=\"_blank\">existing bio<\/a>\u00a0to it.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Solution\"><\/span><a id=\"user-content-solution\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#solution\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>Solution<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"List_Comprehension-2\"><\/span><a id=\"user-content-list-comprehension-1\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#list-comprehension-1\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>List Comprehension<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"https:\/\/www.reddit.com\/r\/learnpython\/comments\/4d2yl7\/i_need_list_comprehension_exercises_to_drill\/\" rel=\"nofollow noopener\" target=\"_blank\">This discussion<\/a>\u00a0on Reddit had quite a few challenges that I was able to incorporate into my\u00a0<a href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/..%5C03%5Clist_comp.ipynb\" target=\"_blank\" rel=\"noopener\">notebook<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"GitHub_Pages-2\"><\/span><a id=\"user-content-github-pages-1\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#github-pages-1\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>GitHub Pages<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I successfully followed the directions\u00a0<a href=\"https:\/\/help.github.com\/en\/articles\/creating-a-github-pages-site\" target=\"_blank\" rel=\"noopener\">here<\/a>\u00a0to create my new GitHub.io bio page at\u00a0<a href=\"https:\/\/pbeens.github.io\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/pbeens.github.io<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_I_Learned\"><\/span><a id=\"user-content-what-i-learned\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#what-i-learned\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>What I Learned<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"List_Comprehension-3\"><\/span><a id=\"user-content-list-comprehension-2\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#list-comprehension-2\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>List Comprehension<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I am learning to get the hang of list comprehension. You just have to remember the basic format, which is:<\/p>\n<pre>s <span class=\"pl-k\">=<\/span> data_to_manipulate\r\n[c <span class=\"pl-k\">for<\/span> c <span class=\"pl-k\">in<\/span> s <span class=\"pl-k\">if<\/span> c equals <span class=\"pl-k\">or<\/span> doesn<span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>t equal something]<\/span><\/pre>\n<p>View my updated Jupyter notebook of exercises <a href=\"https:\/\/colab.research.google.com\/drive\/1fbmH9yDS5fzFcxEZMnUzmb3qCqGQoaEv#scrollTo=2jpxdgBu3rqc\" rel=\"nofollow noopener\" target=\"_blank\">here<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"GitHub_Pages-3\"><\/span><a id=\"user-content-github-pages-2\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#github-pages-2\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>GitHub Pages<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I learned that if you create a GitHub repository named\u00a0<code>.github.io<\/code>\u00a0and put your content in the main README.md file that it becomes the website at that URL.<\/p>\n<p>See mine\u00a0<a href=\"https:\/\/pbeens.github.io\/\" rel=\"nofollow noopener\" target=\"_blank\">here<\/a>!<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Other_Learning\"><\/span><a id=\"user-content-other-learning\" class=\"anchor\" href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\/blob\/master\/Days\/04\/README.md#other-learning\" aria-hidden=\"true\" target=\"_blank\" rel=\"noopener\"><\/a>Other Learning<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>I learned that Markdown doesn&#8217;t like anything other than alphanumeric characters and hyphens in the headers if you want to create a table of contents. All of these were a no-go:\u00a0<code>, | &amp; ' \"<\/code><\/p>\n<hr \/>\n<div dir=\"auto\" lang=\"en\">You can see this project on GitHub <a href=\"https:\/\/github.com\/pbeens\/100DaysOfCode\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/div>\n<p>&nbsp;<\/p>\n<div dir=\"auto\" lang=\"en\" style=\"text-align: center;\"><em>Please consider subscribing to this blog!\u00a0<\/em><\/div>\n<div id=\"tweet-rich-content-label\" class=\"css-1dbjc4n r-156q2ks\" aria-labelledby=\"quote-tweet-label\">\n<div class=\"css-1dbjc4n\">\n<div class=\"css-1dbjc4n r-1cuuowz r-18bvks7 r-t23y2h r-1phboty r-rs99b7 r-18u37iz r-1udh08x r-o7ynqc r-1j63xyz\" aria-haspopup=\"false\">\n<div class=\"css-1dbjc4n r-18bvks7 r-13l2t4g r-1phboty r-1adg3ll\" aria-hidden=\"true\">\n<div class=\"css-1dbjc4n r-1adg3ll r-1udh08x\">\n<div class=\"r-1p0dtai r-1pi2tsx r-1d2f490 r-u8s1d r-ipm5af r-13qz1uu\">\n<div class=\"css-1dbjc4n r-1p0dtai r-1mlwlqe r-1d2f490 r-11wrixw r-61z16t r-1udh08x r-u8s1d r-zchlnj r-ipm5af r-417010\">\n<div class=\"css-1dbjc4n r-1niwhzg r-vvn4in r-u6sd8q r-4gszlv r-1p0dtai r-1pi2tsx r-1d2f490 r-u8s1d r-zchlnj r-ipm5af r-13qz1uu r-1wyyakw\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Goal I want to continue list comprehension exercises. My goal is to learn enough about list comprehension to efficiently finish the coding for day 2. I also got interested yesterday in someone&#8217;s GitHub.io biography which made me want to learn how to do that. My Approach<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"footnotes":""},"categories":[11,10],"tags":[12,21,13,24,22,20,7],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-100daysofcode","category-github","tag-100daysofcode","tag-colaboratory","tag-github","tag-github-pages","tag-google-colab","tag-list-comprehension","tag-python"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paaL4r-1f","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":8,"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/posts\/77\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beens.ca\/python\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}