Terry Reedy wrote: >>>>[site.replace('http://', '')for site in sites] Not exactly the same thing, as the original only replaced at the beginning of the string. An re substitution could be used, but that could be seen as overkill. -- Greg