User:Fako Berkers/Markovchain: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

26 April 2011

  • curprev 17:1517:15, 26 April 2011Fako Berkers talk contribs 955 bytes +955 Created page with "<source lang="python"> text = "He saw the cat before he saw the potato." dic = {} prevword = '' # Read the text into memory. for word in text.split(): if prevword != '': # doe..."