Learn to Code by Solving Problems: A Python Programming Primer Homepage for the book Learn to Code by Solving Problems: A Python Programming Primer

Learn to Code Book Q&A

Want to know whether Learn to Code by Solving Problems is the right book to help you start coding? When I mention the book below, I’ll use the shorthand LTC (for Learn to Code). Q: I don’t know any programming at all! Can I start here? A: yes! We start at the beginning of your Python programming journey. In addition, the book contains checkpoi... Read more

Book Review: Dive Into Data Science

Hi everyone, What do you do next after finishing Learn to Code by Solving Problems? That’s a good question I receive often. There are many possible answers, including practicing more problem solving, reading a follow-up Python book, working on larger programming projects… or specializing in a certain area! Speaking of specializing: Data Scien... Read more

How I Chose the Chapter Problems and Exercises

Hi everyone, How did I choose the problems that drive each chapter, and the chapter exercises? I’ve had more than a few readers now email me and ask me this question. I like to reflect on my writing processes, so this question is interesting to me. I didn’t think it would be interesting to anyone else. But since some readers have asked, I fee... Read more

What Beginning Coders Might Care About in Python 3.11

Hello, Python learners, My Learn to Code by Solving Problems book uses Python to teach you how to program. About once a year, a new Python version is released with new features and improvements. And here we are with the latest version of Python, version 3.11! As always with Python, you can continue to program as you have before. But I make a h... Read more

Finding a Bug

… It looks like my code has a glitch. I’m not really sure where it is. I check pairs of flavors with good count behavior. Does anyone know what’s the sitch? The problem that we’re trying to solve is Icecream. Make sure you’ve read through Chapter 9 of Learn to Code by Solving Problems. Here’s the code that doesn’t quite work: lst = input().... Read more