[Newbie Q on String & List Manipulation]

Gabriel Cooper gabriel.cooper at mediapulse.com
Thu Apr 15 09:15:20 EDT 2004



Matthew wrote:

>Hello All,
>
>    today is the first day i try to programming in Python,
>    my assignment is, write a silly script that probably
>    will run a few times a day to check if the Gmail services
>    is ready or not. ;)
>
>    however, i encountered some problem when playing with the
>    list and string.
>
>[...]
>
>        for item in thecookies:
>            mycookies += item
>[...]
>  
>
Try:

mycookies = string.join(thecookies, "")




More information about the Python-list mailing list