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
Appendix A: Virtual Environments and Libraries
Exercises: Installing and using libraries
Hello emoji
Hello requests
Hello, Juypter Lab!
Hello py5
Next:
Introduction