Stripping Whitespace in Python

Stripping Whitespace in Python

Extra whitespace can be confusing in your programs. To programmers ‘python’ and ‘python ‘ look pretty much the same. But to a program, they are two different strings. Python detects the extra space in ‘python ‘ and considers it significant unless you tell it otherwise. It’s important to think about whitespace, because often you’ll want […]