Software engineering and personal development

Tag: title

How to Quickly Capitalize First Letters in Python

One of the essential features of any programming language is the ability to manipulate strings. In this article, we’ll explore a simple yet powerful Python string method called title(). We will see how to use this method to capitalize the first letter of each word in a given string.

The title() method is a built-in Python string method that capitalizes the first letter of each word in a given string. It returns a new string where the first letter of each word is capitalized, and all other letters are in lowercase. Here is the syntax of the title() method:

string.title()
Continue reading

How to Quickly Change the Case of Strings in Python

laptop on brown wooden table
Photo by XPS on Unsplash

Strings are pretty common in our day-to-day programming lives. One common task that we may need to do is perform a switch from one case to another one.

Of course, it’s not supposed to be a standalone task in Jira. Rather, it can be just a tiny portion of a larger task. 

Since your time is valuable and you can invest it in more useful things, it is worth knowing that you can do such switches quickly in Python with built-in functions without having you do any implementation.

Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑