Practical Coding in Python
Learn to write and validate your own code
Darren Kessner, PhD
(revised September 1, 2025)
Introduction
About the book
About the author
0. Hello, world!
hello
basics
loops
sequences
Coding Exercises: Hello
1. Functions and Testing
functions
monkey_trouble
Coding Exercises: Functions and Testing
2. Strings and Math
hello_strings
hello_math
hello_random
Coding Exercises: Strings and Math
3. Loops & Algorithms
hello_loops
hello_algorithms
binimate
Coding Exercises: Loops and Algorithms
4. Classes and Objects
person
circle
Coding Exercises: Classes and Objects
Appendix A: Virtual Environments and Libraries
Exercises: Installing and using libraries
hello_emoji
hello_requests
Hello, Juypter Lab!
Hello py5
Next:
Introduction