{"id":39,"date":"2020-03-26T02:52:05","date_gmt":"2020-03-26T02:52:05","guid":{"rendered":"https:\/\/www.mercerislandtech.com\/?page_id=39"},"modified":"2020-03-26T02:58:48","modified_gmt":"2020-03-26T02:58:48","slug":"py-lesson-1","status":"publish","type":"page","link":"https:\/\/www.mercerislandtech.com\/index.php\/corona-python\/py-lesson-1\/","title":{"rendered":"Py: Lesson 1"},"content":{"rendered":"\n<p>For the first lesson, we looked at:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Installing Visual Studio Code, Python3, Node and JavaScript<\/li><li>Running Python from a REPL (read-eval-print-loop) or console window<\/li><li>Basic programming concepts<ul><li>A computer as sequentially labeled memory boxes with numbers 0-255 stored as 8 bits and a machine that can read and write the number stored in any box, and do simple operations like + &#8211; \/ * on them<\/li><li>A variable as a more complex labeled box that you can store stuff into. With object-oriented languages, you can store different types of things, and the variable knows what type of thing it is, e.g. a number, string, list or dictionary.<\/li><li>Accessing values in lists\/arrays\/vectors (all 3 are very similar) by an index, e.g. a[3].<\/li><li>Functions, like print, chr, ord, range use parentheses around the &#8220;parameters&#8221; passed to the function. A function takes parameters and generates a result, and sometimes, a so-called side-effect, like outputting text to the screen.<\/li><li>Automatically constructed lists, e.g. using the range(start, past) function.<\/li><li>For loops using the for &lt;variable name> in &lt;list>: syntax, and an indented next line that can access each value in the list using the variable name.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the first lesson, we looked at: Installing Visual Studio Code, Python3, Node and JavaScript Running Python from a REPL (read-eval-print-loop) or console window Basic programming concepts A computer as sequentially labeled memory boxes with numbers 0-255 stored as 8 bits and a machine that can read and write the number stored in any box, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":46,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-39","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/pages\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/pages\/39\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/pages\/39\/revisions\/40"}],"up":[{"embeddable":true,"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/pages\/46"}],"wp:attachment":[{"href":"https:\/\/www.mercerislandtech.com\/index.php\/wp-json\/wp\/v2\/media?parent=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}