Hi All,

As promised, I’m sharing my Python code for 3.1 worksheet problems #1, #2 and #3 here. The code in problem 3 wasn’t working properly in class because I had one line tabbed too far in on my loop – beware that nasty whitespace! It works fine now, feel free to sort with it. For a bit of practice, try translating he pseudo code for  Algorithm 6 Greedy Change-Making Algorithm from section 3.1 in your text (pg. 199). We can review in class on Tuesday before we move on to section 3.2.

Enjoy your weekend.

Kind Regards,
Prof. Bonanome