Hi Annet,

I haven't coded this in python, did something similar in .NET using LINQ.
A quick search shows the following might fit what you need.

itertools.groupby().
http://docs.python.org/library/itertools.html#itertools.groupby




rAm

i Think, i Wait, i Fast -- Siddhartha
http://sodidi.ramjeeganti.com


On Tue, Sep 28, 2010 at 11:51 AM, annet <[email protected]> wrote:

> Thanks for your reply. The content of the <style> tag now reads like:
>
> body {background-color:#4169E1;}
> body {color:#FFFFFF;}
> body {font-family:Verdana,Geneva,Arial,Helvetica,Sans-Serif;}
>
> Which produces the correct styling. What I had in mind was:
>
> body {background-color:#4169E1;color:#FFFFFF;font-
> family:Verdana,Geneva,Arial,Helvetica,Sans-Serif;}
>
> but I'll figure that out on a rainy Sunday afternoon.
>
>
> Kind regards,
> Annet.
>

Reply via email to