On 02/06/16 18:05, Olaoluwa Thomas wrote:

> lst = list()
> for line in fhand:
>     words = line.split()

words is now a list of words

 a test that a portion of my code was working)
>     lst.append(words)

So you append that list to lst and get a list of lists.
Try using + instead:

lst += words

> would give me the output in the attached screenshot
> [image: Inline image 2]

This is a text based list attachments often get
stripped out by the server

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to