Skip to content

Instantly share code, notes, and snippets.

@acrymble
Created July 6, 2011 09:43
Show Gist options
  • Select an option

  • Save acrymble/1066923 to your computer and use it in GitHub Desktop.

Select an option

Save acrymble/1066923 to your computer and use it in GitHub Desktop.
Python Print KWIC
width = 10
print '#' + ' '.join(kwic[:keyindex]).rjust(width*keyindex) + '#'
-> # amongst them a#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment