ENGI 1020
News
Schedule
Lectures
Assignments
Exercises
Labs
Resources
Lectures
Functions
More fun with lists
Testing
Slices
Ranges and lists
Iteration and strings
Loops
If statements
Organization and control Flow
Variables
Logic
Functions
Expressions
Introduction
Lectures
The course’s lecture content (slides and notes) will be posted here.
Functions
Writing (rather than just calling) functions
Slides
Notes
functions.py
More fun with lists
List comprehensions and the
in
keyword
Slides
Notes
eopa.py
Testing
How can we check our code’s behaviour?
Slides
Notes
Slices
Slicing and dicing Python iterables
Slides
Notes
indices.py
Ranges and lists
The
range()
function and the
list
data structure
Slides
Notes
squares.py
Iteration and strings
The
for
loop, iterating over strings
Slides
Notes
strings.py
Loops
Repeating things over and over and over and over and …
Slides
Notes
light.py
If statements
Examples of working with control flow
Slides
Notes
coat.py
stress.py
Organization and control Flow
Valid names and non-linear control flow
Slides
Notes
quest.py
Variables
Variables in programming and how they differ from mathematics
Slides
Notes
Logic
Propositional logic
Slides
Notes
Functions
A few more details about expressions and how we evaluate them, plus our first use of functions
Slides
Notes
Expressions
How are expressions in programming similar to (and different from) those in mathematics?
Slides
Notes
Introduction
Why study programming? How can I succeed? How do we solve problems with software?
Slides
Notes