Python strip() – How to Trim a String or Line 08/02/2025 • desarrollo web, python, strip • Por Alfonso Sánchez Uzábal When you specify as arguments . and !, all instances of both will get removed: phrase = ".....Python !!!" stripped_phrase = phrase.strip(".!") print(stripped_phrase) #output #Python Fuente Ir al contenido original Compartir