Posts by viniciusfs • 11 points
1 post
-
1
votes3
answers222
viewsA: Removing characters from a string - Python
If you do not use regex as the colleague explained, you can do: >>> txt = "Address:58.200.133.200" >>> txt.split(':') ['Address', '58.200.133.200'] >>> txt.split(':')[0]…