Patterns to KNOW
Know these!
Lectures given in Spring 2021
- First day - Syllabus and Introduction
Tuesday, January 26, 2021
- Introduction, parts of a computer, design
- First Look at Python Syntax,Semantic/Runtime errors, comments, structure of a program
- Data Types and Arithmetic
data types in detail: ints, floats, bools, strings, math operators in detail, typecasts, input, print, sep=, end=, testing
- Augmented Operators
- Importing Libraries, and a F-to-C project
importing, rounding, complete walkthrough of writing a program
- Conditionals, if statements
- Boolean Logic Operators,
- Random Numbers
- Therac-25
- Wikipedia article on Therac-25
- Structured Programming
- More slides on Structured Programming
- For Loops
for loops, ranges, accumulators, tracing, testing loops, prev/curr pattern
- Debugging
- Flags
- While loops
- Lists Part 1
- Example code:
- List algorithms
- Example code:
- Functions
- Strings Part 1: searching, stripping, traversal
- Strings Part 2: split, join
- 2D lists
- Example code:
- Exceptions and files
- Example Code:
- Using files, Files II
- Example code:
- quicksort.py
- Graphics Part I
- Example code (Graphics I)
- Graphics Part II
- Example code (Graphics II):
pdfs