Learn how to do substitutions at pattern matches in this video.
“sub” method of pattern objects will replace all the leftmost non-overlapping occurrences of a pattern in a given string and return the new string as result.
More awesome topics covered here:
RegEx in Python:
Introduction to Numpy:
Introduction to Matplotlib:
Introduction to Pandas:…