If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into ...
Python has some wonderful libraries for statistical analysis, but they might be overkill for simple tasks. The built-in statistics library might be what you want instead. Here are some things you can ...