Skip to content

Instantly share code, notes, and snippets.

@nithyadurai87
Created April 2, 2018 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nithyadurai87/89b9253cba1a56989625408ee4c78ac2 to your computer and use it in GitHub Desktop.
Save nithyadurai87/89b9253cba1a56989625408ee4c78ac2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
for line in sys.stdin:
line = line.strip()
words = line.split()
for i in words:
print '%s\t%s' % (i, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment