LET'S LEARN PYTHON
COURSE INTRODUCTION
UNITS
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!
UNIT 1 - TOPIC 1
Setting things up
Installing Notepad++
Installing Python 3
Accessing Windows Powershell
Writing our first program
Coding along without windows
CHALLENGE
No Challenge
UNIT 1 - TOPIC 2
Print statements
Variables
Concatenation of Strings
CHALLENGE
Write a hard-coded MadLibs game
UNIT 1 - TOPIC 3
Topic 2 Challenge solution
Console programs
Math in Python
Randoms
User input
CHALLENGE
Modify your MadLibs game to incorporate user input instead of hard coding the chosen words.
UNIT 1 - Project
Topic 3 Challenge Solution
End of Unit 1 Project Description:
Dice roller
UNIT 2 - Topic 1
Boolean variables
Boolean statements with logical and conditional operators
No challenge!
UNIT 2 - Topic 2
If/Elif/Else structure for decision making
Short-circuit evaluation
Challenge:
Build a quadratic formula root solver
UNIT 2 - Topic 3
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.
UNIT 2 - Topic 4
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.
UNIT 2 - Topic 5
Turtle Graphics
Nested Loops
Challenge:
Olympic Rings
UNIT 2 - Project
Creating a user menu driven calculator
UNIT 3 - Topic 1
Functions that do not take parameters and do not return values.
Challenge: A simple turtle graphics program using functions
UNIT 3 - Topic 2
Functions that take parameters but do not return values.
Challenge: A tricky user menu driven drawing program
UNIT 3 - Topic 3
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.
UNIT 3 - Topic 4
Try/Except Statements
Global variables
NO CHALLENGE
UNIT 3 - End of unit project
Creating a Turtle graphics drawing program using a console user menu.
UNIT 4 - Topic 1
String indexing, substrings, and immutability
Challenge: A simple substring printer
UNIT 4 - Topic 2
Looping through Strings - 2 different approaches
Challenge: A simple vertical printer that prints a user inputted string vertically.
UNIT 4 - Topic 3
String functions
Challenge: A palindrome checker using word reversal
UNIT 4 - Project
Create a palindrome checker that does NOT use string reversal
UNIT 5 - Topic 1
Data Structures Description and Tuples
Challenge: Use tuples to create two points and calculate the slope of the line connecting them.
UNIT 5 - Topic 2
Lists!
Challenge: MadLibs with lists
UNIT 5 - Topic 3
2 Dimensional Lists!
Challenge: Maze Game
UNIT 5 - Topic 4
Dictionaries!
No challenge for this lesson
FINAL COURSE PROJECT
The final course project. Pick your poison and good luck!
Student examples: