Overview
Welcome to 2nd Quarter! With the PCEP now behind us, it's time for the promised flip in how we conduct class. Tests and quizzes are out, programs and presentations are in! We will now move from learning to read Python code to learning to write it.
Friday, November 8th
Classwork
Shout outs to Roey, Joshua, Adam H., Kidus, Kara (show this as a model!), Yara, and Ta-Yu (show this too) for meeting or exceeding expectations on the first go-round of using our git repos.
After looking over your repos (a few of you still don't have links to them), it is clear that we need to spend more time showing you how to use them. Specifically we need to discuss:
- what goes in git repos - text files, not binary files!
- commit messages - how to write them.
- the
.gitignorefile and what goes in it (.DS_Storeand*.sw?are two things!). - the role of Markdown files and how to create them.
- the
README.mdand what goes there. - how doctest works and where doctests need to go.
- how to use the doctests in a doctest exercise to guide you towards solutions to the exercises.
- how to leave a commit history the shows evidence of iterative development.
Today in class Jeff will model the processes listed above and you will follow along, so that by the end of class you will have a git repo ready to use.
Homework / Evaluation
Using the process we practiced today during class today to complete several exercises on your own (as much as 90 minutes permits). Be sure to use the interactive write test, make it pass, commit pattern demonstrated during class.
Your git repo will be evaluated using our class git repo rubric.
Wednesday, November 5th
Classwork
Welcome to 2nd Quarter! About 79% of you have now earned your PCEP certification. That's not a shabby result, and we should generally be pleased with ourselves. There is still time this quarter for those of you not yet certified to become so. Our main concern is that you all have the Python language literacy you need to use it to write Python programs. We now switch our focus to that aim.
At the beginning of the year we shared a little program with you, choose_pairs.py that randomly pairs you with classmates in our class. Well, we've come a long way since then, and you should now be able to read this program and understand it.
We'll run it during class, and see what pairs it picks for our first assignment of 2nd quarter:
And the Pairs Are... ==================== Kidus will pair with Gabriel on Ex. 1. Roey will pair with AdamA on Ex. 2. Kendyl will pair with Jackson on Ex. 3. Owen will pair with Isaac on Ex 4. Yara will pair with Clara on Ex. 5. Madi will pair with Daniel on Ex. 6. Korben will pair with Ben on Ex 7. AdamH will pair with Tai-Yu on Ex. 8. Joshua will pair with Kara on Ex. 9. Poor Keamlack will have to work alone
During the first part of class, we will use Chapter 7: Classes and objects to introduce Python's syntax for creating programmer defined objects.
You will be introduced to several new vocabulary words, including class, instance, data attribute, method, instance, instantiation, initialization method, operator overloading, and polymorphism.
Homework
After we discuss the chapter, you will work with your partner to complete Exercise Set 0: Chapter Review. While you will collaborate with your partner on writing the exercise solutions, you each need to commit your own code to your own git repository. Your presentation will be evaluated using our presentation rubric and your git repo will be evaluated using our class git repo rubric.
