Algorithm Design-Seven Steps for Algorithm Design
Introduction to Python Programming Fundamentals
()
Plan First, Then Code
Overview of the 7 Steps
Algorithms
Stepping Through an Algorithm
()
Algorithm Design-Working an Example of the Seven Steps Process
Step 1: Work an Example Yourself
Step 2: Write Down What You Just Did
Step 3: Generalize Your Steps
Step 4: Test Your Algorithm
Testing an Algorithm for a Numerical Sequence
()
Algorithm Design-Creating an Algorithm
Intro to a Pattern of Squares
A Pattern of Squares
()
Testing a Pattern of Squares
()
Drawing a Rectangle
()
Closest Point
()
Generalizing Closest Point
()
Algorithm Design-Data Types
Everything is a Number
()
Non-Numbers
Translating Ideas into Code-Important Python Syntax
Semantics: What Does Code Mean?
()
Variables and Expressions
()
Functions
()
Printing
()
Conditional Statements
()
Loops
()
First Four Steps Revisited
Revisiting Intersection of Two Rectangles
()
Translating Ideas into Code-Translating an Algorithm into Python
Translating Algorithms to Code
Ending Blocks with Pass
Top Down Design and Composability
Stars Example
Planning isPrime
()
Generalizing isPrime
()
Translating isPrime to Code
()
Tuples
()
Translating Ideas into Code-Using VS Code
Why VS Code
()
Introduction to VS Code
Intro Lab
()
How to Reset Lab Files
Retirement Calculations
Validating Your Code-Approaches to Testing
Testing Means Finding Bugs
()
Black Box Testing
Test-Driven Approaches
()
Test-Driven Development
()
White Box Testing
Creating Test Cases
Asserts
Code Review
Code Review
()
Validating Your Code-Testing and Debugging
Debugging: The Scientific Method
()
Debugging: Hypotheses
()
Introduction to Debugging Tools
Principles and Tools for Debugging
Debugging Python in VS Code
Diving Deeper with Lists-Looking More into Lists
Lists: References to Mutable Objects
()
Lists: Iteration
()
Lists: Indexing and Slicing
()
Default Arguments Revisited
Diving Deeper with Lists-Heart Rate: An Example
Heart Rate Example Introduction
Heart Rate Introduction
()
Heart Rate Peaks
()
Heart Rate Code
()
Heart Rate isPeakAt
()
Moving Averages