Python: Replace text in a string

0 Comments

Straight forward snippet to replace some text within a string.

1.import string
2. 
3.string.replace("TAB", "A", "B")

This will produce "TBB"

[ Source ]

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog