Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why doesn't strip work?
Post: RE: Why doesn't strip work?

Thanks all. Pydoc is Really unclear on that. It makes it look like it replaces all characters. strip(...) S.strip([chars]) -> str Return a copy of the string S with leading and trailin...
cybervigilante General Coding Help 5 7,371 Dec-27-2018, 12:51 AM
    Thread: Why doesn't strip work?
Post: Why doesn't strip work?

import string dogs = "All.Good,Dogs.. Eat.! Shoes?" dogs = dogs.strip(string.punctuation) print(dogs)My result is All.Good,Dogs.. Eat.! Shoes with no punctuation removed. Correction: The ? disappeare...
cybervigilante General Coding Help 5 7,371 Dec-26-2018, 10:10 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020