Skip to content

Update chap6_challenge3.py#32

Open
ChadH1971 wants to merge 1 commit into
calthoff:masterfrom
ChadH1971:patch-4
Open

Update chap6_challenge3.py#32
ChadH1971 wants to merge 1 commit into
calthoff:masterfrom
ChadH1971:patch-4

Conversation

@ChadH1971

Copy link
Copy Markdown

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.

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

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant