Posts by Denis Demoulidor • 21 points
1 post
-
2
votes5
answers42959
viewsA: Function equivalent to Trim (function to remove extra spaces at the beginning and end) in Python?
To make a python Trim function that serves to trim string, removing extra spaces at the beginning and end, just use Regular Expression indicating white space at the end (r' s+$') and at the…