Skip to content

Instantly share code, notes, and snippets.

@thatandromeda
Created November 29, 2018 20:13
Show Gist options
  • Save thatandromeda/98fdf51dc18f48250a80dfb796fc498a to your computer and use it in GitHub Desktop.
Save thatandromeda/98fdf51dc18f48250a80dfb796fc498a 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
@glamrock
Copy link

glamrock commented Nov 29, 2018

  * delightful hack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment