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 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...
How to Round a Number in Python: Truncation, Arithmetic, and More
Remember learning to round in grade school? Me too! The only problem is I don't use the idea very often. As a result, I don't always remember how to round a number in programming contexts like...
How to Create a List in Python: Loops, Comprehensions, and More
As this series grows, I find myself digging back into the basics. Today, we'll look at a few ways to create a list in Python.
How to Compute Absolute Value in Python: Control Flow, Abs(), and More
Today, I'm sharing a few ways to compute absolute value in Python. If you thought the standard library was the only way to get it done, buckle up!
Are you worried that people might reverse engineer your script? One way to combat that issue is to obfuscate your code. Luckily, it's not too hard to d