Python How to trim a string in Python Jul 4, 2014 Administrator To trim a string in Python you can use the following snippet. Sample Python