Exemplo simples de função de tira de python
string = "softhunt.net"
print(string)
print(string.strip())
print(string.strip('softhunt'))
Outrageous Ostrich
string = "softhunt.net"
print(string)
print(string.strip())
print(string.strip('softhunt'))