Skip to content

Instantly share code, notes, and snippets.

@garydoranjr
Created October 10, 2012 02:58
Show Gist options
  • Save garydoranjr/3862902 to your computer and use it in GitHub Desktop.
Save garydoranjr/3862902 to your computer and use it in GitHub Desktop.
Pads your txt msgs
#!/usr/bin/python
PAD = '.......................................................................................................................................................987654321'
if __name__ == '__main__':
from sys import argv
msg = argv[1]
print '%s%s' % (msg, PAD[(len(msg) - len(PAD)):])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment