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 11 Feb 2023 - 6 minute read
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 15 Jul 2022 - 5 minute read
… 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 21 Jun 2022 - less than 1 minute read
Hello! We’re going to solve a problem here using Python dictionaries. I’m assuming that you’ve already studied the first eight chapters of Learn to Code by Solving Problems. If you have, you know how powerful Python dictionaries can be. Whenever you need to make an association between two groups of data, a dictionary is likely what you want to ... Read more 11 Jun 2022 - 9 minute read
Hello, readers, To write a good book, one important and time-consuming process is to read many good books. Prior to writing Learn to Code by Solving Problems, I had read dozens of Python programming books. Here are five of the best ones, including a mini review that I wrote for each one. My main criterion here was building a rock-solid Pytho... Read more 02 May 2022 - less than 1 minute read