If you're looking to learn some Python, I have plenty of practice problems to get you started.
Tag: Strings
How to Capitalize a String in Python: Upper(), Capitalize(), And More
When it comes to capitalizing strings in Python, you have a few options. Use the tools Python provides or roll your own.
How to Convert an Integer to a String in Python: Type Casting and f-Strings
Today, we'll take a look at a few different ways to convert an integer to a string in Python. As it turns out, each solution takes just a couple characters.
How to Split a String by Whitespace in Python: Brute Force and split()
There are a lot of ways to manipulate strings. For instance, we might be interested in splitting a string by a separator like whitespace.
How to Convert a String to Lowercase in Python: lower() and More
As this series grows, I've started poking at seemingly simple problems to expose their complexity. This time, I thought it would be interesting to look at how to convert a string to lowercase. As...
In Python, if you want to compare strings, you need to understand the difference between equality and identity.