manipulate string

Michel Claveau/Hamster No.Spam.mc at No.Spam.mclaveau.No.Spam.com
Tue Oct 28 12:24:30 EST 2003


2 by 2 :


    import string
    a='0123456789'
    l=list(a[::2])
    b=string.join(l,' - ')
    print b






More information about the Python-list mailing list