Hi Charles -
I wouldn't want you to write the procedure for me - but I am asking for your help (when you have time). I am a physician. I studied programming years ago. I don't know python syntax, but I am familiar with the process of writing a short program.
I know that I'll need to include a loop that evaluates each word in the series starting with the first word, and 'decides' whether to discard /keep the word. The loop would terminate after collecting /keeping 3 words (or when there are no more words to evaluate), whichever comes first.
I saw your example but it lost me from the first line, sadly...likely because of my lack of familiarity with python syntax. Python documentation was of little help. I just need some help to explain what each line does in your example (or if possible, in an example that relates fairly closely to what I need to do) - so I can hopefully mix/match and create a function that does what I need.
I would be grateful for any help you can offer.
Thanks for taking the time to reply to me.
Persistence
|