Skip to content

Commit 8d7728b

Browse files
committed
committing an initial crack at mailroom
2 parents e97b685 + a2f972c commit 8d7728b

File tree

162 files changed

+6634
-523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+6634
-523
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ See the Syllabus for more detail.
1111

1212
Class lecture materials are available in a rendered version from:
1313

14-
http://uwpce-pythoncert.github.io/IntroPython2016a
14+
http://uwpce-pythoncert.github.io/IntroPython2016a

slides_sources/source/exercises/list_lab.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ to query the user for info at the command line, you use:
3131
Procedure
3232
---------
3333

34-
In your student dir in the IntroPython2015 repo, create a ``session02`` dir and put in a new ``list_lab.py`` file.
34+
In your student dir in the repo, create a directory for today's session and put in a new ``list_lab.py`` file.
3535

3636
The file should be an executable python script. That is to say that one
3737
should be able to run the script directly like so:

slides_sources/source/exercises/mailroom.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,4 @@ about so far. There is no need to go any farther than that for this assignment.
8484
Submission
8585
----------
8686

87-
As always, put the new file in your student directory in a ``session03``
88-
directory, and add it to your clone early. Make frequent commits with
89-
good, clear messages about what you are doing and why.
90-
91-
When you are done, push your changes and make a pull request.
87+
As always, put the new file in your student directory and git add it to your repo early. Make frequent commits with good, clear messages about what you are doing and why. When you are done, push your changes and make a pull request.

slides_sources/source/include.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1+
.. include.rst
2+
..
3+
.. Include this file at the top of project source files to effect substitutions in the source.
4+
.. Note that preformatted/code blocks ignore .rst style substitutions.
5+
6+
.. |course-name-short| replace:: Python300
7+
.. |course-name-long| replace:: Systems Programming with Python
8+
.. |course-term| replace:: Summer 2016
9+
.. |course-meeting-time| replace:: tbd
10+
.. |course-meeting-location| replace:: tbd
111

212
.. |instructor_1_name| replace:: Rick Riehle
313
.. |instructor_1_email| replace:: rriehle (at) uw (dot) edu
414

5-
.. |instructor_2_name| replace:: Kai Yang
6-
.. |instructor_2_email| replace:: hky2 (at) uw (dot) edu
15+
.. |instructor_2_name| replace:: tbd
16+
.. |instructor_2_email| replace:: tbd
717

818
.. |repo-url| replace:: https://github.com/UWPCE-PythonCert/IntroPython2016a
9-
1019
.. |gh-pages-url| replace:: http://uwpce-pythoncert.github.io/IntroPython2016a/
1120

1221
.. |cms| replace:: https://canvas.uw.edu/courses/1026775
13-
1422
.. |discussion-forum| replace:: https://canvas.uw.edu/courses/1026775/discussion_topics
1523

16-
.. |office-hours-time| replace:: 10 a.m. to noon on Sundays
24+
.. |office-hours-time| replace:: 10 a.m. to noon on Sundays
25+
.. |office-hours-location| replace:: tbd

slides_sources/source/session02.rst

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@ When you add a *remote* (existing git repository), it creates a directory with t
273273

274274
.. code-block:: bash
275275
276-
$ git remote add upstream https://github.com/UWPCE-PythonCert/IntroPython2015.git
276+
$ git remote add upstream https://github.com/UWPCE-PythonCert/IntroPython2016a.git
277277
278278
$ git remote -v
279-
origin https://github.com/PythonCHB/IntroPython2015.git (fetch)
280-
origin https://github.com/PythonCHB/IntroPython2015.git (push)
281-
upstream https://github.com/UWPCE-PythonCert/IntroPython2015.git (fetch)
282-
upstream https://github.com/UWPCE-PythonCert/IntroPython2015.git (push)
279+
origin https://github.com/UWPCE-PythonCert/IntroPython2016a.git (fetch)
280+
origin https://github.com/UWPCE-PythonCert/IntroPython2016a.git (push)
281+
upstream https://github.com/UWPCE-PythonCert/IntroPython2016a.git (fetch)
282+
upstream https://github.com/UWPCE-PythonCert/IntroPython2016a.git (push)
283283
284284
.. nextslide::
285285

@@ -322,7 +322,7 @@ Start by making sure you are on your own master branch:
322322
$ git checkout master
323323
324324
This is **really really** important. Take the time to ensure you are where you
325-
think you are, iow, not on a remote. Use git status to find out where you are, if necesary.
325+
think you are, in other words, not on a remote. Use git status to see where you are.
326326

327327
.. nextslide:: Merging Upstream Changes
328328

@@ -387,12 +387,12 @@ You can incorporate this into your daily workflow: ::
387387
Because of the way we have set up the class, you will be able
388388
to see all work submitted to us from everyone in the class in
389389
the students directory on your machine. This is not a bad thing.
390-
And the files tend to be small.
390+
The files tend to be small.
391391

392392
We encourage sharing of knowledge in this class. Helping your
393393
fellow students will also help you to better understand. Share
394-
your code, and get use to giving/receiving feedback on how to
395-
improve your code, if you are not already.
394+
your code, and get used to giving and receiving feedback on how
395+
to improve your code, if you are not already.
396396

397397

398398
LAB: Grid Printer
@@ -455,7 +455,7 @@ Lightning Talk:
455455

456456
.. rst-class:: center medium
457457

458-
Brendan Fogarty
458+
459459

460460

461461
Beyond Printing
@@ -482,13 +482,13 @@ Making a Decision
482482
.. code-block:: python
483483
484484
if a:
485-
print 'a'
485+
print('a')
486486
elif b:
487-
print 'b'
487+
print('b')
488488
elif c:
489-
print 'c'
489+
print('c')
490490
else:
491-
print 'that was unexpected'
491+
print('that was unexpected')
492492
493493
494494
.. nextslide:: if
@@ -498,15 +498,15 @@ What's the difference between these two?
498498
.. code-block:: python
499499
500500
if a:
501-
print 'a'
501+
print('a')
502502
elif b:
503-
print 'b'
503+
print('b')
504504
505505
## versus...
506506
if a:
507-
print 'a'
507+
print('a')
508508
if b:
509-
print 'b'
509+
print('b')
510510
511511
512512
@@ -606,7 +606,7 @@ Lightning Talk:
606606

607607
.. rst-class:: center medium
608608

609-
Bruce Bauman
609+
610610

611611

612612
More on Functions
@@ -963,7 +963,7 @@ Lightning Talk:
963963

964964
.. rst-class:: center medium
965965

966-
Michelle Yu
966+
967967

968968

969969
Boolean Expressions
@@ -1209,7 +1209,7 @@ LAB: Booleans
12091209

12101210
Experiment with ``locals`` by adding this statement one of the functions you wrote today::
12111211

1212-
print locals()
1212+
print(locals())
12131213

12141214

12151215
Code Structure, Modules, and Namespaces
@@ -1245,7 +1245,7 @@ You can put a one-liner after the colon:
12451245
.. code-block:: ipython
12461246
12471247
In [167]: x = 12
1248-
In [168]: if x > 4: print x
1248+
In [168]: if x > 4: print(x)
12491249
12
12501250
12511251
But this should only be done if it makes your code **more** readable.
@@ -1516,11 +1516,13 @@ Next Class
15161516
* Strings and String Formatting
15171517

15181518
* Lightning talks by:
1519-
- Eric Rosko
1520-
- Michael Waddle
1521-
- Robert Stevens Alford
1519+
1520+
|
1521+
|
1522+
|
1523+
|
15221524
1523-
Office hours: Sunday 10:00 -- 12:00
1525+
Office hours: |office-hours-time|
15241526

15251527

15261528
Homework

slides_sources/source/session03.rst

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ Lightning Talks Today:
4545

4646
.. rst-class:: mlarge
4747

48-
Eric Rosko
48+
John Rudolph
4949

50-
Michael Waddle
50+
Mike Schincariol
5151

52-
Robert Alford
52+
Chi Ho
5353

5454

5555
Sequences
@@ -272,7 +272,6 @@ Indexing past the end of a sequence will raise an error, slicing will not:
272272
Out[132]: "
273273
274274
275-
(demo)
276275
277276
Membership
278277
----------
@@ -455,12 +454,7 @@ Slicing LAB
455454
Lightning Talks
456455
----------------
457456

458-
|
459-
| Eric Rosko
460-
|
461-
|
462-
| Michael Waddle
463-
|
457+
Ready.... go!
464458

465459

466460
Lists, Tuples...
@@ -931,6 +925,19 @@ This looks benign enough, but changing a list while you are iterating over it ca
931925

932926
For example:
933927

928+
.. code-block:: ipython
929+
930+
In [27]: l = list(range(10))
931+
In [28]: l
932+
Out[28]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
933+
In [29]: for item in l:
934+
....: l.remove(item)
935+
....:
936+
937+
.. nextslide:: Was this what you expected?
938+
939+
For example:
940+
934941
.. code-block:: ipython
935942
936943
In [27]: l = list(range(10))
@@ -942,8 +949,6 @@ For example:
942949
In [30]: l
943950
Out[30]: [1, 3, 5, 7, 9]
944951
945-
Was that what you expected?
946-
947952
.. nextslide:: The Solution
948953

949954
Iterate over a copy, and mutate the original:
@@ -1115,9 +1120,7 @@ Let's play a bit with Python lists...
11151120
Lightning Talk
11161121
---------------
11171122

1118-
|
1119-
| Robert Alford
1120-
|
1123+
Place holder... any more?
11211124

11221125

11231126
Iteration
@@ -1389,7 +1392,6 @@ You can also use ``str()``
13891392
In [256]: str(34)
13901393
Out[256]: '34'
13911394
1392-
(demo)
13931395
13941396
13951397
String Methods
@@ -1712,12 +1714,8 @@ Next Week:
17121714
17131715
**Lightning talks next week:**
17141716
1715-
Andrey Gusev
1716-
1717-
Cheryl Ohashi
1718-
1719-
Maxwell MacCamy
17201717
1718+
(Your name here)
17211719
17221720
17231721

0 commit comments

Comments
 (0)