[Tutor] Splitting

Abhinav Gaurav abhinavtester at yahoo.co.uk
Mon Jul 10 05:54:03 CEST 2006


HI,
   
  I was working on example of splitting using delimiter ;
   
  Example :-
  >>> a="43;dsds;d" 
>>> 
>>> b=a.split(';')
   
  Here I encountered the following error :-
   
  Traceback (innermost last):
  File "<stdin>", line 1, in ?
AttributeError: 'string' object has no attribute 'split'
   
  Can anybody help on resolving this issue?
   
  Thanks
  Abhinav

 		
---------------------------------
 Try the all-new Yahoo! Mail . "The New Version is radically easier to use" – The Wall Street Journal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060710/5f519c26/attachment.html 


More information about the Tutor mailing list