Alle 14:12, sabato 18 novembre 2006, [EMAIL PROTECTED] ha 
scritto:
> la lista fino a 9 ha spazi e poi no
> c=['1',' ','2',' ',3,' ','4',' ','5',' ','6',' ','7',' ','8','
> ','9','10','11','12','13']
>
> come meglio mi consigliate di farlo

Devi toglierli tutti gli spazi, no?

[x for x in c if x is not ' ']

-- 
 Eriol - *p = NULL; - EIBTI 
 GPG Key ID 297BE0CA
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a