calthoff / tstp

This is an old repository for the exercises in "The Self-Taught Programmer." Please see /selftaught.
166 stars 193 forks source link

Update chap6_challenge3.py #32

Open ChadH1971 opened 5 years ago

ChadH1971 commented 5 years ago

The sample text from the book is not the same as the string in the code. The use of the title() capitalizes the first letter of each word without regard to the part of speech. Only "aldous" needs to be capitalized, so the capitalize() method is correct for what the challenge is asking for.

ChadH1971 commented 5 years ago

On running the code using the capitalize() method, Huxley receives lower case. This exercise would require a bit more coding to be rendered grammatically correct.