line error on no. 7

ltc.hotspot at gmail.com ltc.hotspot at gmail.com
Tue Jul 28 16:21:59 EDT 2015


Hi Everyone,


I'm writing python code to read a data text file, split the file into a list of words using the split(function) and to print the results in alphabetical order.


The raw python code is located at http://tinyurl.com/oua9uqx


The sample data is located at 
http://tinyurl.com/odt9nhe



Desired Output: ['Arise', 'But', 'It', 'Juliet', 'Who', 'already', 'and', 'breaks', 'east', 'envious', 'fair', 'grief', 'is', 'kill', 'light', 'moon', 'pale', 'sick', 'soft', 'sun', 'the', 'through', 'what', 'window', 'with', 'yonder']


There is a line error on no. 7
What is the cause of this error?



Regards,
Hal






Sent from Surface
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150728/4f564acd/attachment.html>


More information about the Python-list mailing list