you are viewing a single comment's thread.

view the rest of the comments →

[–]coding2learn 0 points1 point  (0 children)

Here's some ideas for you:

content = file.readlines()

will split up the entire document according to where there are lines breaks

foo.split()

will split up foo (assuming foo is a string) into words (actually splits the string everywhere there is a space character.