Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glamrock/da78be919ded11bcb799b2af111b7526 to your computer and use it in GitHub Desktop.
Save glamrock/da78be919ded11bcb799b2af111b7526 to your computer and use it in GitHub Desktop.
awful hack
def insert_comma(mystring, position):
mystring[:position] + ',' + mystring[position:]
offset = 0
for magic_number in magic_numbers:
position = magic_number + offset
mystring = insert_comma(mystring, position)
offset += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment