small medium large xlarge

Paul_mugshot_pragsmall
18 Aug 2013, 14:12
Paul Gries (44 posts)

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

Generic-user-small
12 Sep 2013, 16:16
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.

Generic-user-small
12 Sep 2013, 16:15
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!

Generic-user-small
08 Oct 2013, 23:55
Ionel Miu (1 post)

Hi Paul,

Any plans to post the complete solutions?

Cheers, I.

Images_pragsmall
13 Oct 2013, 01:52
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.

Generic-user-small
14 Jan 2014, 09:27
pietro reale (1 post)

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

Campbell_pragsmall
24 Jan 2014, 02:04
Jennifer Campbell (10 posts)

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

Generic-user-small
24 Jan 2014, 04:31
Jason Montojo (8 posts)

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

Generic-user-small
25 Jan 2014, 17:03
Jason Montojo (8 posts)

Solutions for chapters 16 and 17 have been posted.

Paul_mugshot_pragsmall
27 Jan 2014, 02:16
Paul Gries (44 posts)

Solutions for chapters 13 and 14 have been posted.

Generic-user-small
07 Feb 2014, 18:33
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