Let us code for a whole week and practice with the exercises from chapter 5-7 from the book, Think Python. This will solidify all the concepts we have learned so far.
I am reluctant to post all the answers. The reason is that it is very rewarding (and I admit at times very frustrating) to create, develop and find our own answers.
Nevertheless, here is a fun twist:
I will be online most of this week working on the exercises. So, if you are stuck or just want to code in tandem, let me know.
There are great events in order to code in groups. Here are a few:
- NYC PyLadies organize or promote events such as:
- The NY Python Meetup Group organize great events as well:
If you have ideas on how to make it more challenging, interactive and interesting let me know.
I know I said I would code for a whole week. However, it took me a bit more time to fully understand Swampy World and finish questions from chapter 4. I did not want to just surf through the answers.
Furthermore, I will not post the answers because the questions are so masterfully thought that it is great to FINALLY understand the lines of code after the n-th attempts! If you are stuck though and want to discuss them, let me know. Now, I can help.
By the way, if you see a mistake or want to improve something, let me know. I will be glad to correct it.
March 3-7: I devoted a whole week to understand the intricacies of the code blocks for questions 4.1 to 4.5 from Section 4.12. So, as I mentioned above, playing with Bob (the Turtle) was somehow frustrating. Here are some of the outputs for those questions.
Exercise 4.1 (2)
Exercise 4.2 (Section 4.12)
Exercise 4.3 (Section 4.12)
March 14 (Pi Day):