Fixing Python’s title Function
home // page // Fixing Python’s title Function

Fixing Python’s title Function

Python’s title function has some weird side-effects when you’re titlizing a string like, for example, a street name:

Here’s how you can fix this:

A simple fix that produces the right result: