Unit 1 - The Basics:
Comments
Printing
Variables and their types
Math & Randoms
User Input (console)
Unit 2 - Decision Making:
Boolean variables/statements
Conditional and Logical operators
If/Elif/Else statements
Short circuit evaluation
For & While Loops
Turtle Graphics basics
Nested Loops
Unit 3 - Functions:
No parameter or return functions
Functions that take parameters
Functions that return values
Try/Except statements
Global variables vs call/return structures
Unit 4 - Strings:
String indexing
Substrings
Immutability
Looping through strings
String functions
Unit 5 - Data Structures:
Tuples and index notation
Lists and list functions
2D lists, unpacking/packing lists
Dictionaries, keys, and 'in'
Unit 6 - End of course Project
Ideas will be presented for an end of course project
Be sure to share the results of your work with me!
Setting things up
Installing Notepad++
Installing Python 3
Accessing Windows Powershell
Writing our first program
Coding along without windows
No Challenge
Print statements
Variables
Concatenation of Strings
Write a hard-coded MadLibs game
Topic 2 Challenge solution
Console programs
Math in Python
Randoms
User input
Modify your MadLibs game to incorporate user input instead of hard coding the chosen words.
Topic 3 Challenge Solution
End of Unit 1 Project Description:
Dice roller
Boolean variables
Boolean statements with logical and conditional operators
No challenge!
If/Elif/Else structure for decision making
Short-circuit evaluation
Challenge:
Build a quadratic formula root solver
For loops using the range function
Covers the 1, 2, and 3 parameter versions of the range function.
Challenge:
Writing a program to print out the terms in an arithmetic and/or geometric sequence. As an extension it should also calculate the sum of the n terms and print the sum as well.
While loops
Break and Continue statements
Challenge:
Writing a program to print out a user choice or multiple user choices that allows the user to make choices and eventually make the choice to end the program. It should otherwise loop back to the original choice. Watch video for an example.
Turtle Graphics
Nested Loops
Challenge:
Olympic Rings
Creating a user menu driven calculator
Functions that do not take parameters and do not return values.
Challenge: A simple turtle graphics program using functions
Functions that take parameters but do not return values.
Challenge: A tricky user menu driven drawing program
Functions that return values
Challenge: A little re-do of the old age check program we did with if/elif structures early on in the course.
Try/Except Statements
Global variables
NO CHALLENGE
Creating a Turtle graphics drawing program using a console user menu.
String indexing, substrings, and immutability
Challenge: A simple substring printer
Looping through Strings - 2 different approaches
Challenge: A simple vertical printer that prints a user inputted string vertically.
String functions
Challenge: A palindrome checker using word reversal
Create a palindrome checker that does NOT use string reversal
Data Structures Description and Tuples
Challenge: Use tuples to create two points and calculate the slope of the line connecting them.
Lists!
Challenge: MadLibs with lists
2 Dimensional Lists!
Challenge: Maze Game
Dictionaries!
No challenge for this lesson
The final course project. Pick your poison and good luck!
Student examples: