Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Title vs capitalize? #1

@cogginproductions

Description

@cogginproductions

In the book you talk about using capitalize() for capitalizing the first letter of a sentence, but in the solution file you show using title(). And in the challenge question you have "Huxley" with a capital "H" but in the solution its lower case.

Now when I use capitalize, it makes the first letter of the sentence capital but makes every other words first letter lower case (i.e. "aldous Huxley was born in 1984." becomes "Aldous huxley was born in 1984.").

Then when I use title(), "aldous Huxley was born in 1984." becomes "Aldous Huxley Was Born In 1984."

I'm a little confused on what's going on....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions