Homework 4

Please, look at homework 4 assignments.
That is an easy one.  Just accumulate the leftover words on a separate
string and process it last.

A. K.
On Nov 3, 2014 8:30 PM, "codedragon" <notifications@github.com> wrote:

> In Students/A.Kramer/session04/kakta14.py:
>
> > +        words[l[0]] = [l[1]]
> > +    return words
> > +
> > +def printKata14(word, start):
> > +    """ Recursively print Kata14 """
> > +    if start in word:
> > +        if len(word[start]) > 0:
> > +            temp = word[start].pop()
> > +            print start, temp,
> > +            printKata14(word, str(start.split()[1]) + " " + temp)
> > +        else:
> > +            return
> > +
> > +if __name__ == "__main__":
> > +    """ Execute Kata14 algorythm """
> > +    kata14("sherlock.txt", "little use")
>
> Think about how you can use all of the words from the text (currently not
> using last couple of words of a line or words at the end of a paragraph if
> less than 3 words on the last line). Good work, this is a difficult one.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UWPCE-PythonCert/IntroToPython/pull/47/files#r19707311>
> .
>