Thinkcspy Chapter 18: Classes and Objects Part 2
If you haven't already, take a look at Chapter 17, before you read this one, as this set of exercises relies on what was built in the last chapter. Just…
If you haven't already, take a look at Chapter 17, before you read this one, as this set of exercises relies on what was built in the last chapter. Just…
Because the code for this and the next chapter build on each other, I'm approaching the way I talk about these two sets of exercises a bit differently than previous…
The exercises in this chapter were some of the most challenging exercises I have encountered in this book. It took me a while to wrap my head around recursion and…
This lab builds on the previous one, so check that one out before reading this one. Here are the instructions: The previous lab wrote a function to return a dictionary…
The goal for this lab was to count the number of times a specific letter shows up in a given string. This is what they started me out with: def…
Problem 1 Write a program that allows the user to enter a string. It then prints a table of the letters of the alphabet in alphabetical order which occur in…
This lesson only had five problems, and thank goodness for that, because problem 4 really threw me for a loop. I've included all 5 here, because there are so few…
I'm not sure I'm starting to get a better handle on this stuff or if they were giving me a break this chapter, but this chapter was not as challenging…
This one was fun! I had no idea that manipulating strings could be as interesting as manipulating numbers or pixels. These exercises were certainly some of the more challenging ones…