Skip to main content
Home Python with Pets
Main navigation
  • Lists
    Lessons Exercises Patterns Principles Data machines
  • Search
  • Login
Lessons
  • + How the course works
    • What you'll learn
    • How to learn programming
    • Fear and AI
    • Using this site
    • Exercises
    • Uploading Python
    • About me
    • Let's talk
    • Social isolation
    • Let's go!
  • + Name tags
    • Spyder
    • Making name tags
    • How the program works
    • Pop the hood
    • Practice: string expressions
    • Patterns and mad libs
    • Structure diagrams
    • Exercises: basic strings
  • + Useful calculators
    • Tip calculator
    • More examples
    • Numeric expressions
    • Service level
    • Nested ifs
    • Practice: if
    • Ray codes
    • Exercises: calculators
  • + Validation
    • Check the service level
    • Check the meal cost
    • Looping for pets
    • Counted whiles
    • Practice: while
    • Keep asking: strings
    • Keep asking: numbers
    • Bonus: Round-off error
    • Exercises: validation
  • + Reuse
    • Making Easter eggs
    • Functions
    • Adela functionates
    • Practice: functions
    • Multiple functions
    • More functions
    • Practice: more functions
    • A string input function
    • Mars or bust!
    • Code library
    • Bonus: making webpages
    • Bonus: transactions
    • Exercises: functions
  • + Data analysis
    • Data sets
    • Reading data sets
    • Cleaning
    • Even cleaner
    • Pipey pipes
    • Showing bad data
    • Bonus: Plotting
    • Bonus: Regression
    • Record subsets
    • Computed fields
    • Stats
    • Relationships
    • Exercises: analysis
  • What now?
  • + Extras
    • Code standards
    • Data types

Incremental testing

Test code as you write it. Write a bit, test a bit, write a bit, test a bit.

It's more efficient than writing an entire program at once, and then testing it.

Where referenced
Ray codes
Mars or bust!

DO NOT START HERE

Read the lessons on the left of the screen. All exercises are embedded in the lessons.

Creative Commons Attribution-ShareAlike 4.0      Terms of use