Monday 8/28
Lecture
- Key Python concepts:
- Variables, assignments, literals (Check out the "Variables" pane in Thonny)
- Expressions vs. Statements
- Functions and arguments
- Strings, unicode, escape sequences
- Code Formatting and style
Practice Questions
Exercise
- Download these two files:
- Run
!flake8 payroll.py
in the shell
- You should see several lines of output
payroll.py:4:18
means "Line 4, Char 18"
- Fix the formatting and style issues
- When finished:
- Compare notes with a neighbor
- Have the instructor or TA look it over with you
To-Do For Next Time
- Finish HW1, Course Survey, and Syllabus Quiz
- Get started on Chapter 2 reading.