Overview
This week we will begin Chapter 2: Values, expressions and statements in our online textbook. By the end of this chapter, you should be comfortable interacting with the Python interpreter in both shell mode and script mode. You will also need to begin getting comfortable using the Unix CLI and a console text editor (nano will work fine at this stage), so be sure to begin practicing if you can't yet do those things.
Thursday, September 10th
Classwork
Today we will discuss Chapter 2: Values, expressions and statements in our textbook, running some of the examples and discussing any questions you have about the ideas presented in the chapter.
By the time you finish studying this chapter, you should be familiar with the following terms, and be able to provide a rough definition of them:
data, value, data type, class, bit, int, str, float, '\n', Python shell, Python script, expression, operator, operand, assignment statement, assignment operator, modulus operator, converter functions, input function, print function
We'll also walk you through the begining of Exercise Set 1: Introducing Doctest to get you started with this wonderful tool.
Homework
Complete Exercise Set 0: Chapter Review and Exercise Set 1: Introducing Doctest. Be prepared for a quiz on this material at the beginning of class on Monday.
Tuesday, September 8th
Classwork
Grades are in Synergy for the first assignment. The results: A: 16 and E: 6. We'll start class with a discussion of how to interpret these results within the context of our learning environment.
Check out the Student Git Repos page for our class. If you are already familiar with git, and your name is not yet a link to your git repo for this class, please git on that ASAP ;-)
If you are not yet familiar with the unix CLI, check out the first item under Resources on our class homepage to see a link to the Terminus game. This seems to be a great way to begin learning the Unix CLI if you don't already feel comfortable with it. We highly encourage you to use it!
We will then summarize the important ideas from Chapter 1: Why program? in our text.
By the end of this discussion you should understand:
- the four things computers do
- how information is represented in a computer
- what a computer program is
- why Python is a high-level, interpreted programming language
- the difference between shell mode and script mode in running Python code
Homework
Read Chapter 2: Values, expressions and statements in our online textbook. Remember, you are a college student now, so you should be reading for understanding. You can test your understanding by seeing how easily you can complete some of the exercises in Exercise Set 0: Chapter Review. We'll show you in class where you can look for solutions to these exercises.