r/pythontips • u/yiriwer • Sep 23 '21
Data_Science 15 Must-Know Python String Methods
Python is a great language. It is relatively easy to learn and has an intuitive syntax. The rich selection of libraries also contribute to the popularity and success of Python. Visit here: https://www.thinkdataanalytics.com/python-string-methods/
41
Upvotes
14
u/boojieboy Sep 23 '21
These are all pretty elementary methods, and I think a person learns them almost by osmosis if you do any project that involves some degree of text processing.
For me, the must-know string methods--the ones that will do the most for levelling up your skills--are those methods involving regular expressions.
Each language has its own way of implementing them, but they are always and without exception sueprcharged shortcuts to accomplishing fast, concise, high throughput find/replace algos