18 Aug 2013, 03:28
Generic-user-small

Aaron Perlmutter (1 post)

Where are they?

18 Aug 2013, 14:12
Paul_mugshot_pragsmall

Paul Gries (44 posts)

We’re going to start posting them this week. I’ll reply here again when we’ve got some up.

20 Aug 2013, 17:27
Paul_mugshot_pragsmall

Paul Gries (44 posts)

We’ve started posting them here:

http://pragprog.com/wikis/wiki/PracProg2

Cheers, -Paul

12 Sep 2013, 16:16
Generic-user-small

George Daglaridis (4 posts)

hi,

The solution of the example b and c of the exercise 11 in the 7th chapter is given for the first occurrence of ‘0’ and not of ‘2’ as the announcement of the exercise is asking.

12 Sep 2013, 16:15
Generic-user-small

George Daglaridis (4 posts)

Could you please explain to me this: ‘Boolean’[0].islower(), which is the correct solution of the example d of the exersize 11 in chapter 7, because i wrote ‘Boolean’.lower().islower().

Thank you in advance!

08 Oct 2013, 23:55
Generic-user-small

Ionel Miu (1 post)

Hi Paul,

Any plans to post the complete solutions?

Cheers, I.

13 Oct 2013, 01:52
Images_pragsmall

David McCarthy (1 post)

This is helpful. I’ve watched all the videos & kept idle running, as was recommended, to emulate what is done just as the instructors do but haven’t kept up w/ the exercises. This will allow me to study the material whenever I can.

14 Jan 2014, 09:27
Generic-user-small

pietro reale (1 post)

hi, it seems that complete solutions are still missing. when are they going to be published?thank you, cheers

24 Jan 2014, 02:04
Campbell_pragsmall

Jennifer Campbell (9 posts)

We just added solutions for chapters 11 and 12. The rest are in progress and we’ll keep you updated.

24 Jan 2014, 04:31
Generic-user-small

Jason Montojo (6 posts)

Just posted the solutions for chapter 15. Stay tuned for more!

25 Jan 2014, 17:03
Generic-user-small

Jason Montojo (6 posts)

Solutions for chapters 16 and 17 have been posted.

27 Jan 2014, 02:16
Paul_mugshot_pragsmall

Paul Gries (44 posts)

Solutions for chapters 13 and 14 have been posted.

07 Feb 2014, 18:33
Generic-user-small

Asif Aziz (2 posts)

I found the solution to chapter 12 exercise 6 confusing. As per the problem specification we simply have to arrange a series of strings according to the colors of the dutch flag. The solution provided is complex and iterates through the list, but a better solution would have been simply to count the numbers of each type of string, i.e.


def dutch_flag(L):

    """ (list of strings) -> (list of strings)

    >>> dutch_flag(['green', 'blue', 'green', 'red'])
    ['red', 'green', 'green', 'blue']

    """

    reds = L.count('red')
    greens = L.count('green')
    blues = L.count('blue')

    return(['red'] * reds + ['green'] * greens + ['blue'] * blues)

Is that what you were looking for?

  You must be logged in to comment