They both do the same thing, removing the symbols table completely However, as @jimlewis pointed out strip allows finer control Strip returns a new string, so you need to assign that to something (better yet, just use a list comprehension) iterating over a file object gives you lines, not words So instead you can read the whole thing then split on spaces The with statement saves you from having to call close manually.
In short, i'd trust strip Maybe your application cannot be reduced any further without code changes. I was told it deletes whitespace but s = ss asdas vsadsafas asfasasgas print(s.strip()) prints out ss asdas vsadsafas asfasasgas shouldn't it be ssasdasvsadsafasasfasasgas? This is where my mind went since i like to strip whitespace earlier in my process flow and handle incoming data with variable headers (nans, ints, etc) The string.strip (), string.stripleading (), and string.striptrailing () methods trim white space [as determined by character.iswhitespace ()] off either the front, back, or both front and back of the targeted string /** * returns a string whose value is this string, with any leading and trailing * whitespace removed.
But i wonder why / if it is necessary. How could you remove all characters that are not alphabetic from a string Does this have to be a custom function or are there also more generalizable solutions? (in c#) asked 16 years, 11 months ago modified 2 years, 5 months ago viewed 279k times 100 people perform a striptease | keep it 100 | cut cut 12.3m subscribers subscribe Video analytics video hosting hire video pros resources help center blog our customers video school ott resources developers become a partner join vimeo experts guidelines apps vimeo for macos vimeo for ios vimeo for android vimeo create for ios vimeo create for android magisto vimeo for shopify vimeo for zoom vimeo pricing upload staff picks.
Watch the wildness unfold on escape club, sundays on e! Free videos youtube, vimeo & more Free videos youtube make sure you check out our youtube channel for more videos! Download and use 141,391+ sexy+hot+women+strip+tease stock videos for free #2 report franco ergoi freut sich auf nette leute 4 years ago sehr inspirierendes video :) #1 report 134 royalty free stock videos and video clips of slow strip tease
Power your marketing strategy with perfectly branded videos to drive better roi Host virtual events and webinars to increase engagement and generate leads Build a site and generate income from purchases, subscriptions, and courses. Download and use 133,852+ slow+strip+tease+videos stock videos for free
OPEN