list of strings-newline

kavitha thankaian kavithapython at yahoo.co.in
Thu Feb 15 10:19:43 EST 2007


Hi
   
  i have a list as follows
   
  list="a1,b1,c1,d1,a2,b2,c2,d2,a3,b3,c3,d3,
   
  I would like to print as 
   
  a1,b1,c1,d1,
  a2,b2,c2,d2,
  a3,b3,c3,d3,
   
  and then i would like to delete the  comma at the end,,say like,,
   
  a1,b1,c1,d1
  a2,b2,c2,d2
  a3,b3,c3,d3
   
  (its always after the length is 4 i would like to write as the next line)
  if any one has any suggestions pls write to me,,
   
   
   

 				
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070215/eab06bc4/attachment.html>


More information about the Python-list mailing list