I bought the book Python Crash Course and I'm going through all the exercises from the beginning. I'm only on Chapter 2: Variables and Simple Data Types so a lot of this is review but I did learn something new just now about stripping whitespace.

To strip whitespace from the right side of a string, you use rstrip() and to strip from the left side of a string it's lstrip(). To strip from both sides at once, it's strip()