From ec49e75a912da09707a6beb42d252426dfd9b158 Mon Sep 17 00:00:00 2001 From: "Christopher H.Barker, PhD" Date: Sat, 6 Jan 2018 18:04:38 -0800 Subject: [PATCH 01/17] made specific for class --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 89ad5bb..417af84 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ -# ClassRepoTemplate +# Winter 2018 Classroom Class Repository -This is a repo that serves as a template for a repository for a particular -instance of a class for th UWPCE Python Certificate. +This is a repository used by the UWPCE Python Certificate Program Winter 2018 Classroom based class. -A copy of this repo will be made for each class, so that it can be used by the class to share information and for students to submit their work. +It can be used by the class to share information and for students to submit their work. -## Structure of the repo +## Structure of the Repo The class repo has three top level directories: @@ -13,6 +12,8 @@ The class repo has three top level directories: `solutions`: Used to post solutions to the exercises -`students`: Used for the students to submit their work. Each student will create a dir in the studetns dir in which to put their work. +`students`: Used for the students to submit their work. Each student will create a directory in the students directory in which to put their work. + + From 6168f1aa91570e537ac57051e4be3b29361326dd Mon Sep 17 00:00:00 2001 From: "Christopher H.Barker, PhD" Date: Sat, 6 Jan 2018 18:07:07 -0800 Subject: [PATCH 02/17] Update 00-README.md --- students/00-README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/students/00-README.md b/students/00-README.md index 46a4586..cae5eae 100644 --- a/students/00-README.md +++ b/students/00-README.md @@ -1,3 +1,15 @@ -Students: Please create a directory named after you, -with a readme in it, in this directory. +# Welcome, Students! +When you join the course, please do the following: + +1. Create a directory named after you. This is a public repository, so if you want to reamin anonymous, you don't need to use your full name. + - It can be your first name + - It can be your gitHub handle + - It can be an arbitrary nick name -- just make sure to let your instructor know + +2. Create a README for your directory. + * Feel free to personalize it a bit! + * Share some things about what makes you you. + * Tell us what you want to get out of this course. + * Protip: Never make a project without a README. What if Two-Years-Older-*You* + forgets what the project was about? From c84dc56d2c08fb8981b4454b2137433588bc1d29 Mon Sep 17 00:00:00 2001 From: Natasha Date: Sun, 7 Jan 2018 09:45:09 -0800 Subject: [PATCH 03/17] Update 00-README.md --- students/00-README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/students/00-README.md b/students/00-README.md index cae5eae..e455f30 100644 --- a/students/00-README.md +++ b/students/00-README.md @@ -2,10 +2,10 @@ When you join the course, please do the following: -1. Create a directory named after you. This is a public repository, so if you want to reamin anonymous, you don't need to use your full name. +1. Create a directory named after you. This is a public repository, so if you want to remain anonymous, you don't need to use your full name. - It can be your first name - It can be your gitHub handle - - It can be an arbitrary nick name -- just make sure to let your instructor know + - It can be an arbitrary nickname -- just make sure to let your instructor know 2. Create a README for your directory. * Feel free to personalize it a bit! From e8b714d333a9ddd962c1d4a91302308da6d36081 Mon Sep 17 00:00:00 2001 From: Maria Mckinley Date: Wed, 10 Jan 2018 22:08:03 -0800 Subject: [PATCH 04/17] setting up repo for class --- README.md | 3 +- README.md~ | 19 +++ materials/LICENSE | 98 +++++++++++ materials/Makefile | 20 +++ materials/build_gh_pages.sh | 44 +++++ materials/build_gh_pages.sh~ | 44 +++++ materials/make.bat | 36 +++++ materials/requirements.txt | 8 + materials/source/_static/dummy | 0 materials/source/_static/python100.png | Bin 0 -> 11155 bytes materials/source/conf.py | 214 +++++++++++++++++++++++++ materials/source/index.rst | 113 +++++++++++++ materials/source/index.rst~ | 118 ++++++++++++++ materials/source/notes/session01.rst | 9 ++ materials/source/syllabus.rst | 169 +++++++++++++++++++ materials/source/syllabus.rst~ | 166 +++++++++++++++++++ 16 files changed, 1060 insertions(+), 1 deletion(-) create mode 100644 README.md~ create mode 100644 materials/LICENSE create mode 100644 materials/Makefile create mode 100755 materials/build_gh_pages.sh create mode 100755 materials/build_gh_pages.sh~ create mode 100644 materials/make.bat create mode 100644 materials/requirements.txt create mode 100644 materials/source/_static/dummy create mode 100644 materials/source/_static/python100.png create mode 100644 materials/source/conf.py create mode 100644 materials/source/index.rst create mode 100644 materials/source/index.rst~ create mode 100644 materials/source/notes/session01.rst create mode 100644 materials/source/syllabus.rst create mode 100644 materials/source/syllabus.rst~ diff --git a/README.md b/README.md index 417af84..3924d2f 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ The class repo has three top level directories: `students`: Used for the students to submit their work. Each student will create a directory in the students directory in which to put their work. +These materials are available in html rendered version here: - +https://UWPCE-PythonCert-ClassRepos.github.io/Wi2018-Classroom/ diff --git a/README.md~ b/README.md~ new file mode 100644 index 0000000..417af84 --- /dev/null +++ b/README.md~ @@ -0,0 +1,19 @@ +# Winter 2018 Classroom Class Repository + +This is a repository used by the UWPCE Python Certificate Program Winter 2018 Classroom based class. + +It can be used by the class to share information and for students to submit their work. + +## Structure of the Repo + +The class repo has three top level directories: + +`examples`: Used to put example code, etc in for the class. + +`solutions`: Used to post solutions to the exercises + +`students`: Used for the students to submit their work. Each student will create a directory in the students directory in which to put their work. + + + + diff --git a/materials/LICENSE b/materials/LICENSE new file mode 100644 index 0000000..8b88d6b --- /dev/null +++ b/materials/LICENSE @@ -0,0 +1,98 @@ +Creative Commons Attribution-ShareAlike 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + +Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. +Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. +BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. +Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. +Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. +Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. +License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. +Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. +Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. +Licensor means the individual(s) or entity(ies) granting rights under this Public License. +Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. +Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. +You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. +Section 2 – Scope. + +License grant. +Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: +reproduce and Share the Licensed Material, in whole or in part; and +produce, reproduce, and Share Adapted Material. +Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. +Term. The term of this Public License is specified in Section 6(a). +Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. +Downstream recipients. +Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. +Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. +No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. +No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). +Other rights. + +Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. +Patent and trademark rights are not licensed under this Public License. +To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + +Attribution. + +If You Share the Licensed Material (including in modified form), You must: + +retain the following if it is supplied by the Licensor with the Licensed Material: +identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); +a copyright notice; +a notice that refers to this Public License; +a notice that refers to the disclaimer of warranties; +a URI or hyperlink to the Licensed Material to the extent reasonably practicable; +indicate if You modified the Licensed Material and retain an indication of any previous modifications; and +indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. +You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. +If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. +ShareAlike. +In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. + +The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. +You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. +You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + +for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; +if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and +You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. +Section 5 – Disclaimer of Warranties and Limitation of Liability. + +Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. +To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. +The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. +Section 6 – Term and Termination. + +This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. +Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + +automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or +upon express reinstatement by the Licensor. +For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. +For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. +Sections 1, 5, 6, 7, and 8 survive termination of this Public License. +Section 7 – Other Terms and Conditions. + +The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. +Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. +Section 8 – Interpretation. + +For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. +To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. +No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. +Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. \ No newline at end of file diff --git a/materials/Makefile b/materials/Makefile new file mode 100644 index 0000000..9d0976e --- /dev/null +++ b/materials/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SPHINXPROJ = Py100 +SOURCEDIR = source +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file diff --git a/materials/build_gh_pages.sh b/materials/build_gh_pages.sh new file mode 100755 index 0000000..7809807 --- /dev/null +++ b/materials/build_gh_pages.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# simple script to build and push to gh-pages +# designed to be run from master + +# this version used a separate copy of the repo in a parallel dir +# to keep the gh-pages branch nicely separate from the main branch. +# this makes it easier to have the index.html in the root dir +# -- to be nicely served by gh-pages + + +GHPAGESDIR=../../Wi2018-Classroom.gh-pages/ + +# make sure gh-pages dir is there -- exit if not +if [ ! -d $GHPAGESDIR ]; then + echo "To build the gitHub pages, you must first create a parallel repo: $GHPAGESDIR" + exit +fi + +if [ ! -d $GHPAGESDIR/.git ]; then + echo "To build the gitHub pages, you must first create a parallel repo: $GHPAGESDIR" + echo "It must be a git repo -- do a new git clone" + exit +fi + +# make sure that the main branch is pushed, so that pages are in sync with master +git push + +# make sure the gh pages repo is there and in the right branch +pushd $GHPAGESDIR +git checkout -b gh-pages +popd + +# make the docs +make html +# copy to other repo (on the gh-pages branch) +cp -R build/html/ $GHPAGESDIR + +pushd $GHPAGESDIR +git add . # in case there are new files added +git commit -a -m "updating presentation materials" +git pull -s ours --no-edit +git push --set-upstream origin gh-pages + diff --git a/materials/build_gh_pages.sh~ b/materials/build_gh_pages.sh~ new file mode 100755 index 0000000..fd28ffa --- /dev/null +++ b/materials/build_gh_pages.sh~ @@ -0,0 +1,44 @@ +#!/bin/sh + +# simple script to build and push to gh-pages +# designed to be run from master + +# this version used a separate copy of the repo in a parallel dir +# to keep the gh-pages branch nicely separate from the main branch. +# this makes it easier to have the index.html in the root dir +# -- to be nicely served by gh-pages + + +GHPAGESDIR=../../IntroPython-2017.gh-pages/ + +# make sure gh-pages dir is there -- exit if not +if [ ! -d $GHPAGESDIR ]; then + echo "To build the gitHub pages, you must first create a parallel repo: $GHPAGESDIR" + exit +fi + +if [ ! -d $GHPAGESDIR/.git ]; then + echo "To build the gitHub pages, you must first create a parallel repo: $GHPAGESDIR" + echo "It must be a git repo -- do a new git clone" + exit +fi + +# make sure that the main branch is pushed, so that pages are in sync with master +git push + +# make sure the gh pages repo is there and in the right branch +pushd $GHPAGESDIR +git checkout -b gh-pages +popd + +# make the docs +make html +# copy to other repo (on the gh-pages branch) +cp -R build/html/ $GHPAGESDIR + +pushd $GHPAGESDIR +git add . # in case there are new files added +git commit -a -m "updating presentation materials" +git pull -s ours --no-edit +git push --set-upstream origin gh-pages + diff --git a/materials/make.bat b/materials/make.bat new file mode 100644 index 0000000..49f9445 --- /dev/null +++ b/materials/make.bat @@ -0,0 +1,36 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build +set SPHINXPROJ=Py100 + +if "%1" == "" goto help + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% + +:end +popd diff --git a/materials/requirements.txt b/materials/requirements.txt new file mode 100644 index 0000000..175b81b --- /dev/null +++ b/materials/requirements.txt @@ -0,0 +1,8 @@ +Jinja2 +MarkupSafe +Pygments +Sphinx +docutils +hieroglyph +ipython +libsass diff --git a/materials/source/_static/dummy b/materials/source/_static/dummy new file mode 100644 index 0000000..e69de29 diff --git a/materials/source/_static/python100.png b/materials/source/_static/python100.png new file mode 100644 index 0000000000000000000000000000000000000000..738f6ed41f499d1f57fd4db356dc1d64769bf725 GIT binary patch literal 11155 zcmdUVWn5IzyDmd_NQaal2t$J+ol*jVbf+L4(%q$k_$O4P6i{-=p&38~1f+zaLz)mfY@00XQM~#e_i5LqDi%dgZMIQ?b+Z22sAjAis zmi_Vf!5>^-B@F{Y@Cqe#NCdx$ywpv7v9O2_{=Fee<>J}kB;6}jlUK?0TYDc*cSnbpw(L({`Zxx7`ndYC zYn!l(3JZ%T_?Hi3VX(%->L@DUDIuIY)C`>CCbyk_-T<}6^)I*C_H@QqdIY1*i>j@X(n9|*#px% zxcYZq+^^6(T%6O_J8ke+2j`4c&-7?jhPr8u#C44H+_G1AD~D4&%N_=2YL#@cHE7OK zpyP7k(<5fmZeax#@G6*@+Q+A)qM{xhK7TKgZV~f=$6MSsIlVkN0Et% zT?Hs9z6@e$he33Oa=hAq-Vxh^)RKw0WgQ9I&5eHcPSa z2n^f&Ex<7Up(}Uv?o?(o_s;+zEAc6Yn)s0qzWkEcM?pE^Ycjuc%sa<=g3WEPM~DsL zn}#<-$ug0df`6)CExWk39F2J*f0a+R3HXsLNCZo>w(frpJPX)YT+hA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Iqi(}c zbCJKIwMSj9qHKg}YLlC7FrJ^^lv2P8TbNsJ-fc)tO#H^iP-C~sT#4J2=J~BgCP3m+Qyf&L&|26GI@^z zBpadt^~i(NRPT7J!e=|EMvk7y!o%^pVYgS(y@hHws%GDJwgLYuyW-%Dg~KN>7F2Om z)SnYsxt>mAlH$wQ3kGkRXEUNbAnM{4)9`E7>r=?iD3D1f!mp-qRhXd6ef*FTgRb6j zyu!{yg>&&cQt=nfBi=dJ7NjPCjR#yH?=;Rk_t^)p9^(my1eN4Fu)2DfhkVY7 z-z(n`n{N$z9=Ml28w!OZV>c{_2K#-acx0lPR%ofH&^SEpYD3`?9MRh0aJl_#m`9_~ zJiCvCE!>zPS+Ig~)kXPT5liE196*-?wfxho=-18&pScanKhd$@t-^7yGW8E;dG1tN z3`jhhJiT!-QN{-Ep}gP-jQdxWbq19ylM6a+l{a=eUej z`3{TZ`gC4IM%eEE_=(KQlUUwYMuf3~aQhhia&~#*aM>sA#yHJ8zR>Z|&Hy%GM4*wx zWT3PB%T<0(Ieif>S)R17_^UCFtLorKfdZhQ-T6lhA~eaZ!h1k{rz5v`lHVih*G3>v z5yjp#2~w5r_d!LrvD$|ux_8$YzXD5D2k4$H%r@qrbbWq-SvWCY5l|`_ approach -- We will generally have reading (or video) assignments that cover a topic, and then in class, we will work through exercises as a group to cement your understanding. We will also be doing frequent "pair programming" -- teaming the students up in pairs to work through exercises together. + +Logistics +========= +Location: Puget Sound Plaza, 4th and Union, Seattle + +Room 406 (4th floor) + +Wednesday nights, 6 - 9pm: Jan 17 - Mar 21, 2017 (10 Sessions) + +Your Instructors: +----------------- + +Maria Mckinley -- parody@uw.edu + +Summer Rae -- summerrae78@gmail.com + +Course website: https://github.com/UWPCE-PythonCert-ClassRepos/Wi2018-Classroom + + +Python Version: +=============== + +There are two main supported versions of Python: the 2.* series and the 3.* series (py3k). In this class we will be using "cPython" version 3.6, the version distributed by `python.org `_. Each student is expected to have access to a laptop with permission to install software -- both during class and for homework assignments. Any modern operating system is fine: OS-X, Linux, or Windows. + +Note that Python3 and Python2 have some slightly different syntax and semantics. Many of the examples you will find on the web are in Python2 syntax. We will cover the differences early in class so you will know how to translate. + +Assignments And Assessment +=========================== + +Homework: +--------- +There will generally be weekly homework assignments. They will include primarily reading and video watching and completing programming exercises started in class. You are not required to turn in the assignments to pass the course, however, we learn by doing, so I do encourage you to put some time in to the homework. we will review your work if you submit it, and do mini code-reviews of selected assignments during class. + +`Teach Yourself Programming in Ten Years `_ + + +Lightning Talks: +----------------- + +Each student is expected to give one "lightning talk" during the class -- this is a simple 5-minute talk on something related to Python -- totally up to you. We will randomly assign the talks schedule (using Python, of course) during the first class. + +Grading And Attendance +---------------------- + +This course is graded pass/fail, based on attendance and participation in class. Students are required to attend at least 8 of the 10 classes. + +Policies And Values +------------------- + +Active learning requires students to participate in the class, as opposed to sitting and listening quietly. In class students will follow the instructor in creating demonstrative examples. Outside of class, students are expected to read the assignments, perform the homework, and post questions (about recent session topics) that they have on the class mailing list or slack before the next class session. Other students are strongly encouraged to answer these questions if possible. Answers to common and unanswered questions will be reviewed in the next class session. + +Your feedback on the course and instruction +------------------------------------------- + +After the 3rd class session, we solicit anonymous feedback from all students regarding the pacing and instruction of the course. Students will also be invited to provide comments at the end of the course. + +Student Handbook +----------------- + +The student handbook can be found online http://www.pce.uw.edu/resources/certificates/ + +Communication +============= + +Office Hours: +------------- + +Physical location to be determined week to week. + +Usually Saturdays and Sundays, 10:00 a.m. to noon Pacific Time (Seattle time) but day and time may change week to week. + +Office hours are completely optional + +Slack +----- + +We will be using Slack for communication. Join us there. + +https://pythonwinter2018.slack.com + +If you have a uw email address, you should be able to join here, otherwise email one of your instructors for an invite + +https://join.slack.com/t/pythonwinter2018/signup + +gitHub +------ + +All class materials will be up on gitHub (where you probably found this). This allows me to update things at the last minute, and the students can all have easy access to the latest versions. It also familiarizes you with a very useful tool for software development. + +We will also be using gitHub to communicate during the class -- turn in assignments, post questions, etc. + +We'll spend a bit of time during the first couple classes getting everyone up and running with git and gitHub. + +https://github.com/UWPCE-PythonCert-ClassRepos/Wi2018-Classroom + +for rendered and ready to read version of the class lecture notes: + +https://UWPCE-PythonCert-ClassRepos.github.io/Wi2018-Classroom + +Mailinglist +----------- + +There is a mailing list for the class: + +python210b_wi18@uw.edu + +Please let us know if you have not received any emails through the mailing lsit. + +Course Textbook +--------------- + +There is no textbook to purchase. + +We have determined over time that a one-size-fits-all approach does not work well for the diverse skills and backgrounds of students in class. Thus, rather than requiring that everyone purchase a single text, we supply many resources, most of which are free (as in free beer) and available online. + +We also encourage you to purchase or find your own texts and references. If you have a special interest in, for instance, data visualization, machine learning or game programming, find a reference and bring it and your questions to class and/or weekly office hours. By the time you get to the third course in the series this will feel natural. Indeed it is the way we work as professionals in the field, each of us individually or in small teams finding the tools and resources we need to further our interests, skills and careers. + +A few you may want to consider: :ref:`python_learning_resources` + +Disability Accommodation +======================== + +Your experience in this class is important to us, and it is the policy and practice of the University of Washington to create inclusive and accessible learning environments consistent with federal and state law. If you experience barriers based on disability, please seek a meeting with DRS to discuss and address them. If you have already established accommodations with DRS, please communicate your approved accommodations to your instructor at your earliest convenience so we can discuss your needs in this course. + +Disability Resources for Students (DRS) offers resources and coordinates reasonable accommodations for students with disabilities. Reasonable accommodations are established through an interactive process between you, your instructor(s) and DRS. If you have not yet established services through DRS, but have a temporary or permanent disability that requires accommodations (this can include but not limited to; mental health, attention-related, learning, vision, hearing, physical or health impacts), you are welcome to contact DRS at 206-543-8924 or uwdrs@uw.edu or disability.uw.edu + + diff --git a/materials/source/syllabus.rst~ b/materials/source/syllabus.rst~ new file mode 100644 index 0000000..2edf3b3 --- /dev/null +++ b/materials/source/syllabus.rst~ @@ -0,0 +1,166 @@ +.. _syllabus: + +##################### +PYTHON 210A Syllabus +##################### + +.. image:: ./_static/python100.png + +UW Adult and Continuing Education Program +============================================ + +Certification in Python Programming: Program Description +--------------------------------------------------------- + +The Python Certificate program is a 9-month curriculum divided into three courses. By the end of the program students will have gained a fundamental understanding of programming in Python by creating a variety of scripts and applications for the Web and for systems development. Python is a versatile programming language, suitable for projects ranging from small scripts to large systems. The certificate program emphasizes best practices such as version control, unit testing and recommended styles and idioms. Students will explore the large standard library of Python 3.6, which supports many common programming tasks. + +First Course: Introduction to Python +===================================== + +Tuesdays 6-9 pm: Oct 3 - Dec 12, 2016 (10 Sessions) +--------------------------------------------------- + +NOTE: in the spirit of the dynamic nature of Python, this Syllabus (and the class) will be a dynamic document -- evolving as the class progresses. The general structure is fixed, but the details will change to meet the evolving needs of the class. + +Learning Goals +=============== + +By the end of this course, students will be able to “do something useful with Python”. + * Identify/characterize/define a problem + * Design a program to solve the problem + * Create executable code + * Read most Python code + * Write basic unit tests + +Approach: +========= +This class assumes a basic knowledge of programming. Thus I will try to emphasize what is unique about Python, with less focus on general programing concepts. + +One learns programming by doing -- I'll be demonstrating as I talk about concepts, and I will pause frequently to give you a chance to try things out, so plan on having a laptop up and running with python and your text editor of choice during each class. + +We will be using a combination of traditional lecture format and +`"Flipped Classroom" `_ approach -- We will generally have reading (or video) assignments that cover a topic, and then in class, we will work through exercises as a group to cement your understanding. We will also be doing frequent "pair programming" -- teaming the students up in pairs to work through exercises together. + +Logistics +========= +Location: Puget Sound Plaza, 4th and Union, Seattle + +Room 506 (5th floor) + +Tuesday nights, 6 - 9pm; Oct 3 - Dec 12, 2017 + +Your Instructors: +----------------- + +Christopher Barker -- pythonchb@gmail.com + +TA: Maria Mckinley -- mariak@mariakathryn.net + +Course website: https://github.com/UWPCE-PythonCert/IntroPython-2017 + + +Python Version: +=============== + +There are two main supported versions of Python: the 2.* series and the 3.* series (py3k). In this class we will be using "cPython" version 3.6, the version distributed by `python.org `_. Each student is expected to have access to a laptop with permission to install software -- both during class and for homework assignments. Any modern operating system is fine: OS-X, Linux, or Windows. + +Note that Python3 and Python2 have some slightly different syntax and semantics. Many of the examples you will find on the web are in Python2 syntax. We will cover the differences early in class so you will know how to translate. + +Assignments And Assessment +=========================== + +Homework: +--------- +There will generally be weekly homework assignments. They will include primarily reading and video watching and completing programming exercises started in class. You are not required to turn in the assignments to pass the course, however, we learn by doing, so I do encourage you to put some time in to the homework. I will review your work if you ask me to, and do mini code-reviews of selected assignments during class. + +`Teach Yourself Programming in Ten Years `_ + + +Lightning Talks: +----------------- + +Each student is expected to give one "lightning talk" during the class -- this is a simple 5-minute talk on something related to Python -- totally up to you. We will randomly assign the talks schedule (using Python, of course) during the first class. + +Grading And Attendance +---------------------- + +This course is graded pass/fail, based on attendance and participation in class. Students are required to attend at least 8 of the 10 classes. + +Policies And Values +------------------- + +Active learning requires students to participate in the class, as opposed to sitting and listening quietly. In class students will follow the instructor in creating demonstrative examples. Outside of class, students are expected to read the assignments, perform the homework, and post questions (about recent session topics) that they have on the class mailing list or slack before the next class session. Other students are strongly encouraged to answer these questions if possible. Answers to common and unanswered questions will be reviewed in the next class session. + +Your feedback on the course and instruction +------------------------------------------- + +After the 3rd class session, we solicit anonymous feedback from all students regarding the pacing and instruction of the course. Students will also be invited to provide comments at the end of the course. + +Student Handbook +----------------- + +The student handbook can be found online http://www.pce.uw.edu/resources/certificates/ + +Communication +============= + +Office Hours: +------------- + +Physical location to be determined week to week. + +Usually Saturdays and Sundays, 10:00 a.m. to noon Pacific Time (Seattle time) but day and time may change week to week. + +Office hours are completely optional + +Slack +----- + +We will be using Slack for communication. Join us there. + +https://python2017-fall.slack.com/ + +gitHub +------ + +All class materials will be up on gitHub (where you probably found this). This allows me to update things at the last minute, and the students can all have easy access to the latest versions. It also familiarizes you with a very useful tool for software development. + +We will also be using gitHub to communicate during the class -- turn in assignments, post questions, etc. + +We'll spend a bit of time during the first couple classes getting everyone up and running with git and gitHub. + +https://github.com/UWPCE-PythonCert/IntroPython-2017 + +for rendered and ready to read version of the class lecture notes: + +http://UWPCE-PythonCert.github.io/IntroPython-2017 + +Mailinglist +----------- + +There is a google groups mailing list for the class: + +https://groups.google.com/forum/#!forum/programming-in-python + +You should have received an invitation to join the group. If you have not, please let us know and we can get you added. + + +Course Textbook +--------------- + +There is no textbook to purchase. + +We have determined over time that a one-size-fits-all approach does not work well for the diverse skills and backgrounds of students in class. Thus, rather than requiring that everyone purchase a single text, we supply many resources, most of which are free (as in free beer) and available online. + +We also encourage you to purchase or find your own texts and references. If you have a special interest in, for instance, data visualization, machine learning or game programming, find a reference and bring it and your questions to class and/or weekly office hours. By the time you get to the third course in the series this will feel natural. Indeed it is the way we work as professionals in the field, each of us individually or in small teams finding the tools and resources we need to further our interests, skills and careers. + +A few you may want to consider: :ref:`python_learning_resources` + +Disability Accommodation +======================== + +Your experience in this class is important to us, and it is the policy and practice of the University of Washington to create inclusive and accessible learning environments consistent with federal and state law. If you experience barriers based on disability, please seek a meeting with DRS to discuss and address them. If you have already established accommodations with DRS, please communicate your approved accommodations to your instructor at your earliest convenience so we can discuss your needs in this course. + +Disability Resources for Students (DRS) offers resources and coordinates reasonable accommodations for students with disabilities. Reasonable accommodations are established through an interactive process between you, your instructor(s) and DRS. If you have not yet established services through DRS, but have a temporary or permanent disability that requires accommodations (this can include but not limited to; mental health, attention-related, learning, vision, hearing, physical or health impacts), you are welcome to contact DRS at 206-543-8924 or uwdrs@uw.edu or disability.uw.edu + + From 4b2aca58187a89a037cf439c454a6f61cf151d43 Mon Sep 17 00:00:00 2001 From: Maria Mckinley Date: Wed, 10 Jan 2018 22:17:14 -0800 Subject: [PATCH 05/17] updated index for new quarter --- .gitignore | 3 + materials/source/index.rst | 6 +- materials/source/index.rst~ | 118 ------------------------------------ 3 files changed, 6 insertions(+), 121 deletions(-) delete mode 100644 materials/source/index.rst~ diff --git a/.gitignore b/.gitignore index 88b03d4..5d26c43 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,6 @@ ENV/ # mypy .mypy_cache/ + +# emacs +*.*~ \ No newline at end of file diff --git a/materials/source/index.rst b/materials/source/index.rst index 6bbcc4e..ef82652 100644 --- a/materials/source/index.rst +++ b/materials/source/index.rst @@ -1,7 +1,7 @@ -########################## -Intro to Python: Fall 2017 -########################## +############################ +Intro to Python: Winter 2018 +############################ .. :ref:`syllabus` diff --git a/materials/source/index.rst~ b/materials/source/index.rst~ deleted file mode 100644 index 6b0d307..0000000 --- a/materials/source/index.rst~ +++ /dev/null @@ -1,118 +0,0 @@ - -########################## -Intro to Python: Fall 2017 -########################## - -.. :ref:`syllabus` - -.. toctree:: - :maxdepth: 1 - - syllabus - -Class Schedule -============== - -Orientation: Jan 10 -.................... - -:ref:`orientation` - -Week 1: Jan 17 -............. - -:ref:`session_1_01` - -Week 2: Jan 24 -.................. - -:ref:`session_1_02` - -:ref:`notes_session02` - -Week 3: Jan 31 -.................. - -:ref:`session_1_03` - -:ref:`notes_session03` - -Week 4: Feb 7 -.................. - -:ref:`session_1_04` - -:ref:`notes_session04` - - -Week 5: Feb 14 -.................. - -:ref:`session_1_05` - -:ref:`notes_session05` - - -Week 6: Feb 21 -.................. - -:ref:`session_1_06` - -:ref:`notes_session06` - - -Week 7: Feb 28 -................... - -:ref:`session_1_07` - -:ref:`notes_session07` - - -Week 8: Mar 7 -................... - -:ref:`session_1_08` - -:ref:`notes_session08` - - -Week 9: Mar 14 -.................. - -:ref:`session_1_09` - -:ref:`notes_session09` - - -Week 10: Mar 21 -.................... - -:ref:`session_1_10` - -:ref:`notes_session10` - -Lightning Talks -=============== - -:ref:`lightning_talks` - - -Supplemental Materials -====================== - -:ref:`installing_python` - -:ref:`setting_up_dev_environment` - -References: -=========== - -:ref:`references` - -Indices and tables -================== - -.. * :ref:`genindex` - -* :ref:`search` From 06ceb6746281d76496bfec65b5939260eb38c3e6 Mon Sep 17 00:00:00 2001 From: Maria Mckinley Date: Wed, 10 Jan 2018 22:21:16 -0800 Subject: [PATCH 06/17] added templates for notes --- materials/source/notes/session02.rst | 9 +++++++++ materials/source/notes/session03.rst | 9 +++++++++ materials/source/notes/session04.rst | 9 +++++++++ materials/source/notes/session05.rst | 9 +++++++++ materials/source/notes/session06.rst | 9 +++++++++ materials/source/notes/session07.rst | 9 +++++++++ materials/source/notes/session08.rst | 9 +++++++++ materials/source/notes/session09.rst | 9 +++++++++ materials/source/notes/session10.rst | 9 +++++++++ 9 files changed, 81 insertions(+) create mode 100644 materials/source/notes/session02.rst create mode 100644 materials/source/notes/session03.rst create mode 100644 materials/source/notes/session04.rst create mode 100644 materials/source/notes/session05.rst create mode 100644 materials/source/notes/session06.rst create mode 100644 materials/source/notes/session07.rst create mode 100644 materials/source/notes/session08.rst create mode 100644 materials/source/notes/session09.rst create mode 100644 materials/source/notes/session10.rst diff --git a/materials/source/notes/session02.rst b/materials/source/notes/session02.rst new file mode 100644 index 0000000..15376cb --- /dev/null +++ b/materials/source/notes/session02.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session02: + +#################### +Notes for Session 02 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session03.rst b/materials/source/notes/session03.rst new file mode 100644 index 0000000..80b2978 --- /dev/null +++ b/materials/source/notes/session03.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session03: + +#################### +Notes for Session 03 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session04.rst b/materials/source/notes/session04.rst new file mode 100644 index 0000000..01e9124 --- /dev/null +++ b/materials/source/notes/session04.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session04: + +#################### +Notes for Session 04 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session05.rst b/materials/source/notes/session05.rst new file mode 100644 index 0000000..c4e20bc --- /dev/null +++ b/materials/source/notes/session05.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session05: + +#################### +Notes for Session 05 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session06.rst b/materials/source/notes/session06.rst new file mode 100644 index 0000000..89ef549 --- /dev/null +++ b/materials/source/notes/session06.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session06: + +#################### +Notes for Session 06 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session07.rst b/materials/source/notes/session07.rst new file mode 100644 index 0000000..15955c5 --- /dev/null +++ b/materials/source/notes/session07.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session07: + +#################### +Notes for Session 07 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session08.rst b/materials/source/notes/session08.rst new file mode 100644 index 0000000..e1a37c4 --- /dev/null +++ b/materials/source/notes/session08.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session08: + +#################### +Notes for Session 08 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session09.rst b/materials/source/notes/session09.rst new file mode 100644 index 0000000..916e81c --- /dev/null +++ b/materials/source/notes/session09.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session09: + +#################### +Notes for Session 09 +#################### + +Notes for class \ No newline at end of file diff --git a/materials/source/notes/session10.rst b/materials/source/notes/session10.rst new file mode 100644 index 0000000..7b0f8e7 --- /dev/null +++ b/materials/source/notes/session10.rst @@ -0,0 +1,9 @@ +:orphan: + +.. _notes_session10: + +#################### +Notes for Session 10 +#################### + +Notes for class \ No newline at end of file From e6a935810ccef22c0780afbfaffb621c4c15b577 Mon Sep 17 00:00:00 2001 From: Maria Mckinley Date: Wed, 10 Jan 2018 22:24:16 -0800 Subject: [PATCH 07/17] got rid of some emacs file leftovers --- README.md~ | 19 ---- materials/build_gh_pages.sh~ | 44 --------- materials/source/syllabus.rst~ | 166 --------------------------------- 3 files changed, 229 deletions(-) delete mode 100644 README.md~ delete mode 100755 materials/build_gh_pages.sh~ delete mode 100644 materials/source/syllabus.rst~ diff --git a/README.md~ b/README.md~ deleted file mode 100644 index 417af84..0000000 --- a/README.md~ +++ /dev/null @@ -1,19 +0,0 @@ -# Winter 2018 Classroom Class Repository - -This is a repository used by the UWPCE Python Certificate Program Winter 2018 Classroom based class. - -It can be used by the class to share information and for students to submit their work. - -## Structure of the Repo - -The class repo has three top level directories: - -`examples`: Used to put example code, etc in for the class. - -`solutions`: Used to post solutions to the exercises - -`students`: Used for the students to submit their work. Each student will create a directory in the students directory in which to put their work. - - - - diff --git a/materials/build_gh_pages.sh~ b/materials/build_gh_pages.sh~ deleted file mode 100755 index fd28ffa..0000000 --- a/materials/build_gh_pages.sh~ +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh - -# simple script to build and push to gh-pages -# designed to be run from master - -# this version used a separate copy of the repo in a parallel dir -# to keep the gh-pages branch nicely separate from the main branch. -# this makes it easier to have the index.html in the root dir -# -- to be nicely served by gh-pages - - -GHPAGESDIR=../../IntroPython-2017.gh-pages/ - -# make sure gh-pages dir is there -- exit if not -if [ ! -d $GHPAGESDIR ]; then - echo "To build the gitHub pages, you must first create a parallel repo: $GHPAGESDIR" - exit -fi - -if [ ! -d $GHPAGESDIR/.git ]; then - echo "To build the gitHub pages, you must first create a parallel repo: $GHPAGESDIR" - echo "It must be a git repo -- do a new git clone" - exit -fi - -# make sure that the main branch is pushed, so that pages are in sync with master -git push - -# make sure the gh pages repo is there and in the right branch -pushd $GHPAGESDIR -git checkout -b gh-pages -popd - -# make the docs -make html -# copy to other repo (on the gh-pages branch) -cp -R build/html/ $GHPAGESDIR - -pushd $GHPAGESDIR -git add . # in case there are new files added -git commit -a -m "updating presentation materials" -git pull -s ours --no-edit -git push --set-upstream origin gh-pages - diff --git a/materials/source/syllabus.rst~ b/materials/source/syllabus.rst~ deleted file mode 100644 index 2edf3b3..0000000 --- a/materials/source/syllabus.rst~ +++ /dev/null @@ -1,166 +0,0 @@ -.. _syllabus: - -##################### -PYTHON 210A Syllabus -##################### - -.. image:: ./_static/python100.png - -UW Adult and Continuing Education Program -============================================ - -Certification in Python Programming: Program Description ---------------------------------------------------------- - -The Python Certificate program is a 9-month curriculum divided into three courses. By the end of the program students will have gained a fundamental understanding of programming in Python by creating a variety of scripts and applications for the Web and for systems development. Python is a versatile programming language, suitable for projects ranging from small scripts to large systems. The certificate program emphasizes best practices such as version control, unit testing and recommended styles and idioms. Students will explore the large standard library of Python 3.6, which supports many common programming tasks. - -First Course: Introduction to Python -===================================== - -Tuesdays 6-9 pm: Oct 3 - Dec 12, 2016 (10 Sessions) ---------------------------------------------------- - -NOTE: in the spirit of the dynamic nature of Python, this Syllabus (and the class) will be a dynamic document -- evolving as the class progresses. The general structure is fixed, but the details will change to meet the evolving needs of the class. - -Learning Goals -=============== - -By the end of this course, students will be able to “do something useful with Python”. - * Identify/characterize/define a problem - * Design a program to solve the problem - * Create executable code - * Read most Python code - * Write basic unit tests - -Approach: -========= -This class assumes a basic knowledge of programming. Thus I will try to emphasize what is unique about Python, with less focus on general programing concepts. - -One learns programming by doing -- I'll be demonstrating as I talk about concepts, and I will pause frequently to give you a chance to try things out, so plan on having a laptop up and running with python and your text editor of choice during each class. - -We will be using a combination of traditional lecture format and -`"Flipped Classroom" `_ approach -- We will generally have reading (or video) assignments that cover a topic, and then in class, we will work through exercises as a group to cement your understanding. We will also be doing frequent "pair programming" -- teaming the students up in pairs to work through exercises together. - -Logistics -========= -Location: Puget Sound Plaza, 4th and Union, Seattle - -Room 506 (5th floor) - -Tuesday nights, 6 - 9pm; Oct 3 - Dec 12, 2017 - -Your Instructors: ------------------ - -Christopher Barker -- pythonchb@gmail.com - -TA: Maria Mckinley -- mariak@mariakathryn.net - -Course website: https://github.com/UWPCE-PythonCert/IntroPython-2017 - - -Python Version: -=============== - -There are two main supported versions of Python: the 2.* series and the 3.* series (py3k). In this class we will be using "cPython" version 3.6, the version distributed by `python.org `_. Each student is expected to have access to a laptop with permission to install software -- both during class and for homework assignments. Any modern operating system is fine: OS-X, Linux, or Windows. - -Note that Python3 and Python2 have some slightly different syntax and semantics. Many of the examples you will find on the web are in Python2 syntax. We will cover the differences early in class so you will know how to translate. - -Assignments And Assessment -=========================== - -Homework: ---------- -There will generally be weekly homework assignments. They will include primarily reading and video watching and completing programming exercises started in class. You are not required to turn in the assignments to pass the course, however, we learn by doing, so I do encourage you to put some time in to the homework. I will review your work if you ask me to, and do mini code-reviews of selected assignments during class. - -`Teach Yourself Programming in Ten Years `_ - - -Lightning Talks: ------------------ - -Each student is expected to give one "lightning talk" during the class -- this is a simple 5-minute talk on something related to Python -- totally up to you. We will randomly assign the talks schedule (using Python, of course) during the first class. - -Grading And Attendance ----------------------- - -This course is graded pass/fail, based on attendance and participation in class. Students are required to attend at least 8 of the 10 classes. - -Policies And Values -------------------- - -Active learning requires students to participate in the class, as opposed to sitting and listening quietly. In class students will follow the instructor in creating demonstrative examples. Outside of class, students are expected to read the assignments, perform the homework, and post questions (about recent session topics) that they have on the class mailing list or slack before the next class session. Other students are strongly encouraged to answer these questions if possible. Answers to common and unanswered questions will be reviewed in the next class session. - -Your feedback on the course and instruction -------------------------------------------- - -After the 3rd class session, we solicit anonymous feedback from all students regarding the pacing and instruction of the course. Students will also be invited to provide comments at the end of the course. - -Student Handbook ------------------ - -The student handbook can be found online http://www.pce.uw.edu/resources/certificates/ - -Communication -============= - -Office Hours: -------------- - -Physical location to be determined week to week. - -Usually Saturdays and Sundays, 10:00 a.m. to noon Pacific Time (Seattle time) but day and time may change week to week. - -Office hours are completely optional - -Slack ------ - -We will be using Slack for communication. Join us there. - -https://python2017-fall.slack.com/ - -gitHub ------- - -All class materials will be up on gitHub (where you probably found this). This allows me to update things at the last minute, and the students can all have easy access to the latest versions. It also familiarizes you with a very useful tool for software development. - -We will also be using gitHub to communicate during the class -- turn in assignments, post questions, etc. - -We'll spend a bit of time during the first couple classes getting everyone up and running with git and gitHub. - -https://github.com/UWPCE-PythonCert/IntroPython-2017 - -for rendered and ready to read version of the class lecture notes: - -http://UWPCE-PythonCert.github.io/IntroPython-2017 - -Mailinglist ------------ - -There is a google groups mailing list for the class: - -https://groups.google.com/forum/#!forum/programming-in-python - -You should have received an invitation to join the group. If you have not, please let us know and we can get you added. - - -Course Textbook ---------------- - -There is no textbook to purchase. - -We have determined over time that a one-size-fits-all approach does not work well for the diverse skills and backgrounds of students in class. Thus, rather than requiring that everyone purchase a single text, we supply many resources, most of which are free (as in free beer) and available online. - -We also encourage you to purchase or find your own texts and references. If you have a special interest in, for instance, data visualization, machine learning or game programming, find a reference and bring it and your questions to class and/or weekly office hours. By the time you get to the third course in the series this will feel natural. Indeed it is the way we work as professionals in the field, each of us individually or in small teams finding the tools and resources we need to further our interests, skills and careers. - -A few you may want to consider: :ref:`python_learning_resources` - -Disability Accommodation -======================== - -Your experience in this class is important to us, and it is the policy and practice of the University of Washington to create inclusive and accessible learning environments consistent with federal and state law. If you experience barriers based on disability, please seek a meeting with DRS to discuss and address them. If you have already established accommodations with DRS, please communicate your approved accommodations to your instructor at your earliest convenience so we can discuss your needs in this course. - -Disability Resources for Students (DRS) offers resources and coordinates reasonable accommodations for students with disabilities. Reasonable accommodations are established through an interactive process between you, your instructor(s) and DRS. If you have not yet established services through DRS, but have a temporary or permanent disability that requires accommodations (this can include but not limited to; mental health, attention-related, learning, vision, hearing, physical or health impacts), you are welcome to contact DRS at 206-543-8924 or uwdrs@uw.edu or disability.uw.edu - - From ca830c0bec980c09bcc48653392910053e351c7a Mon Sep 17 00:00:00 2001 From: Maria Mckinley Date: Wed, 17 Jan 2018 17:48:05 -0800 Subject: [PATCH 08/17] added fake students --- examples/Session01/students.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/Session01/students.txt diff --git a/examples/Session01/students.txt b/examples/Session01/students.txt new file mode 100644 index 0000000..2e79dc2 --- /dev/null +++ b/examples/Session01/students.txt @@ -0,0 +1,8 @@ +Name: Languages +Donald Duck +Mickey Mouse +Minnie Mouse +Daisy Duck +Huey Duck +Dewey Duck +Louie Duck From 163ec57542c20a69c5123e90ae78525b847eac9b Mon Sep 17 00:00:00 2001 From: Maria Mckinley Date: Wed, 17 Jan 2018 17:49:10 -0800 Subject: [PATCH 09/17] added some files for tonight --- examples/Session01/schedule.py | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 examples/Session01/schedule.py diff --git a/examples/Session01/schedule.py b/examples/Session01/schedule.py new file mode 100644 index 0000000..48d7c09 --- /dev/null +++ b/examples/Session01/schedule.py @@ -0,0 +1,44 @@ +""" +Schedule students for lightning talks, winter 2018 +""" +import random + +students = open('students.txt').readlines() + +# remove the header line +del students[0] + +# strip the whitespace +students = [line.strip() for line in students] + +# remove the languages, colon, etc. +students = [line.split(":")[0] for line in students] + +# reverse the first, last names +# separate them: +students = [line.split(",") for line in students] +# put them back together +students = ["{} {}".format(first.strip(), last) for last, first in students] + +# put them in random order +random.shuffle(students) + +# make a list from 1 to 10 +weeks = list(range(2, 11)) + +# make three of them... +weeks = weeks * 4 + +# put the students together with the weeks +schedule = zip(weeks, students) + +# sort it for output +schedule = sorted(schedule) + +# write it to a file (and print to screen) +with open('schedule.txt', 'w') as outfile: + for week, student in schedule: + line = 'week {}: {}\n'.format(week, student) + print(line) + outfile.write(line) + From 616a56495d17431828ad7f5723094f5833476b31 Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Wed, 17 Jan 2018 19:51:27 -0800 Subject: [PATCH 10/17] added a readme --- students/shawn/readme.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 students/shawn/readme.txt diff --git a/students/shawn/readme.txt b/students/shawn/readme.txt new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/students/shawn/readme.txt @@ -0,0 +1 @@ +test \ No newline at end of file From 5efe42689e2cdcd5fc229e1c1ecc7ef7c2670f23 Mon Sep 17 00:00:00 2001 From: Ravi Sundararaman Date: Wed, 17 Jan 2018 19:57:15 -0800 Subject: [PATCH 11/17] I made a readme --- students/ravi/readme.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 students/ravi/readme.txt diff --git a/students/ravi/readme.txt b/students/ravi/readme.txt new file mode 100644 index 0000000..5078012 --- /dev/null +++ b/students/ravi/readme.txt @@ -0,0 +1 @@ +Hi There! This is Ravi. From 9609bc8e1691048794237e8120bfab3c850e7dfc Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Wed, 17 Jan 2018 19:58:57 -0800 Subject: [PATCH 12/17] added a readme --- students/shawn/lesson01/readme.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 students/shawn/lesson01/readme.txt diff --git a/students/shawn/lesson01/readme.txt b/students/shawn/lesson01/readme.txt new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/students/shawn/lesson01/readme.txt @@ -0,0 +1 @@ +test \ No newline at end of file From e2f4936e301dfbd1ae2dba9e86eac37360efd7be Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Thu, 18 Jan 2018 17:41:33 -0800 Subject: [PATCH 13/17] Test commit --- .gitignore | 1 + students/shawn/class_02/class_02.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 students/shawn/class_02/class_02.py diff --git a/.gitignore b/.gitignore index 5d26c43..dae5017 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Mac files .DS_Store +.idea/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/students/shawn/class_02/class_02.py b/students/shawn/class_02/class_02.py new file mode 100644 index 0000000..f04949f --- /dev/null +++ b/students/shawn/class_02/class_02.py @@ -0,0 +1,2 @@ +import csv + From 9192e29bcf1893214128d24fc1402836d3212c7c Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Thu, 18 Jan 2018 17:58:20 -0800 Subject: [PATCH 14/17] Test commit 2 --- students/shawn/class_02/class_02.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/students/shawn/class_02/class_02.py b/students/shawn/class_02/class_02.py index f04949f..a6dfde9 100644 --- a/students/shawn/class_02/class_02.py +++ b/students/shawn/class_02/class_02.py @@ -1,2 +1,4 @@ +# Homework 02 import csv + From 073f260921f50202850ba49f082590cda296f810 Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Thu, 18 Jan 2018 21:23:37 -0800 Subject: [PATCH 15/17] Test commit 2 --- students/shawn/class_02/class_02.py | 46 +++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/students/shawn/class_02/class_02.py b/students/shawn/class_02/class_02.py index a6dfde9..803a78d 100644 --- a/students/shawn/class_02/class_02.py +++ b/students/shawn/class_02/class_02.py @@ -1,4 +1,46 @@ -# Homework 02 -import csv +# Class 02 Exercises +def print_grid(cols=2, rows=2, width=5, height=5): + """Grid Printer Exercise - Print a grid of cols x rows with cells width x height""" + sline = [] + bline = [] + sep = "" + body = "" + for col in range(cols): + sline.append("-" * width) + sep="+{}+".format("+".join(sline)) + bline.append(" " * width) + body="|{}|".format("|".join(bline)) + for row in range(rows): + is_sep = True + for h in range(height): + if is_sep: + print(sep) + else: + print(body) + is_sep = False + + print(sep) + + +print_grid(cols=5, rows=5,width=5,height=5) + + +def fizz_buzz(): + """Fizz Buzz Exercise""" + for i in range(1,100): + is_fiz = i%3==False + is_buz = i%5==False + + if (is_fiz and is_buz): + print("FizzBuzz") + elif is_fiz: + print("Fizz") + elif is_buz: + print("Buzz") + else: + print (i) + + +fizz_buzz() From 9b0925ad248765c9fd3b3420d4a628229da487fe Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Thu, 18 Jan 2018 22:18:35 -0800 Subject: [PATCH 16/17] Lesson 02 Homework - inital commit --- students/shawn/class_02/class_02.py | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/students/shawn/class_02/class_02.py b/students/shawn/class_02/class_02.py index 803a78d..99fb669 100644 --- a/students/shawn/class_02/class_02.py +++ b/students/shawn/class_02/class_02.py @@ -1,8 +1,8 @@ # Class 02 Exercises def print_grid(cols=2, rows=2, width=5, height=5): """Grid Printer Exercise - Print a grid of cols x rows with cells width x height""" - sline = [] - bline = [] + sline = [] #separator line + bline = [] #body line sep = "" body = "" for col in range(cols): @@ -25,6 +25,7 @@ def print_grid(cols=2, rows=2, width=5, height=5): print_grid(cols=5, rows=5,width=5,height=5) +############################################################# def fizz_buzz(): """Fizz Buzz Exercise""" @@ -44,3 +45,26 @@ def fizz_buzz(): fizz_buzz() +############################################################# + +from enum import Enum + + +class Series(Enum): + Fibonacci = 1 + Lucas = 2 + +def fib_luc(nth,series=Series.Lucas): + """Return the nth number of either the Lucas or Fibonacci series""" + + list=[0,1] if series == Series.Fibonacci else [2,1] + for i in range(2,nth): + val=list[i-2] + list[i-1] + list.append(val) + + print(list[-1]) + +fib_luc(15,series = Series.Fibonacci) + + +fib_luc(15,series = Series.Lucas) From 9f59e9f5d13304a7caf00e29720aa411c6e8e9da Mon Sep 17 00:00:00 2001 From: Shawn Hopkins Date: Thu, 18 Jan 2018 22:24:54 -0800 Subject: [PATCH 17/17] Lesson 02 Homework - added comments per instructions --- students/shawn/class_02/class_02.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/students/shawn/class_02/class_02.py b/students/shawn/class_02/class_02.py index 99fb669..22d3c10 100644 --- a/students/shawn/class_02/class_02.py +++ b/students/shawn/class_02/class_02.py @@ -49,7 +49,7 @@ def fizz_buzz(): from enum import Enum - +# Instead of redundant functions, add series type as keyword enum to remove ambiguity class Series(Enum): Fibonacci = 1 Lucas = 2