Skip to main content

Timeline for Sort band names

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Aug 3, 2016 at 11:13 history edited atlasologist CC BY-SA 3.0
deleted 10 characters in body
Aug 3, 2016 at 11:00 comment added manatwork That replace() is not much better: 'what the snake'.replace('the ','',1) results 'what snake'.
Aug 3, 2016 at 10:53 history edited atlasologist CC BY-SA 3.0
added 409 characters in body
Aug 3, 2016 at 8:54 comment added Chris H I'm not convinced. Adding "The animals" to the last list gives ['The The', 'The', 'The Animals', 'Thermodynamics', 'The They']. The 2nd edge case suggest sit should be ['The Animals', 'The The', 'The', 'Thermodynamics', 'The They'] (or swap the 2nd and 3rd items). A little fiddling suggests the space inside strip('the ') is being ignored - try for x in ['The The', 'The They', 'Thermodynamics', 'The', 'The Animals']: print (x.lower().strip('the '))
Aug 2, 2016 at 20:40 history answered atlasologist CC BY-SA 3.0