Coding question?

I am working on a project and am wondering how to access the first word from different sets. What I mean is, say I have something like this: blue is my fav color red is my fav color green is my fav color ------------------------ yellow is my fav color purple is my fav color black is my fav... show more I am working on a project and am wondering how to access the first word from different sets. What I mean is, say I have something like this:

blue is my fav color
red is my fav color
green is my fav color
------------------------
yellow is my fav color
purple is my fav color
black is my fav color
---------------------
pink is my fav color
orange is my fav color

where the dashed lines have some other text (if it helps, the text in between each set is almost identical each time)
I only want the words (in a list) blue, yellow, and pink. I have figured out how to get all the first words using split, but I cant figure out how to only access the first word in each set. anyone have any tips??
thanks in advance!
Update: language is python!!
4 answers 4