through APIs, we can access structured data stored on remote servers
techred home > python 2 sequence > API integration

playlist_add_checkPeer tutorial subjects

Goals

  1. 1: Using modules: (Lutz 2013, 5th ed: Part V chapters 22-24 are all on modules. We want to ingest the highest level concepts here with a short exercise and challenge. Modules on python.org
  2. 2: Comprehensions and generators: List, dictionary, etc. (Lutz 2013, 5th ed: chapter 14 with emphasis on pages 441+ for comprehensions. Ch. 20 for comprehensions and generators)
  3. 3: Regexps: (Use python.org's regexp howto and the more detailed module documentation on re)
  4. 4: Object-oriented python: (Lutz 2013, 5th ed: The entire part VI is on classes and OOP--good luck!)
  5. 5: Exceptions: (Lutz 2013, 5th ed: Basics are in ch. 33 with the rest of part VII related to more advanced topics)
  6. 6: Functions and tools: global/nonlocal., lamda, yield, etc. (Lutz 2013, 5th ed: review ch. 16 on function basics; read chapter 19 on advanced functions. Steer clear of yield, since generators will use these.)

sendPeer tutorial specs

mini-project objective

Provide us pythons with 15-20 minute "crash courses" on topics that may not be worthy of an entire evening in python II

quick reference 1/2

Read the book and python.org documentation on your subject. Run some code. Distill down the example code provided in the references to the essential module and topics only. Also, boil down the reference content to diagrams, figures, or bulleted lists of core ideas or topics.

Assemble a 1/2 page (with the page in landscape orientation) quick reference for your topic that neatly arranges this information

prepare a sample activity

Drawing from examples of others, create a 10-15 minute coding exercise that you write entirely on your own using some sort of consolidating topic of your choosing (i.e. Eric using airline safety and metallurgy to discuss statistics). The example should include essential functionality of your topic and should be expandable.

Comment your example code and push it up to your GitHub account

Keep in mind that students in our course have a broad range of skills and the more you can provide an exercise with some more straightforward tasks and some other more complicated tasks, the more broadly engaging your code will be.

propose extension exercises

Create a short list of continuation exercises for somebody to guide their further explorations into your topic. Review one of Eric's extension exercise examples from Java.

Document these extensions either in a text file on GitHub or in comments in your sample code.

Archive peer topics materials

Lambda expressions practice (Vajiheh)

Regular expressions (Judy)

Regular expressions X2 - With DOT operator (Judy)

Generator functions (Sitian)

Exceptions (Xiaohong)