Forked from thatandromeda/gist:98fdf51dc18f48250a80dfb796fc498a
Created
November 29, 2018 20:22
-
-
Save glamrock/da78be919ded11bcb799b2af111b7526 to your computer and use it in GitHub Desktop.
awful hack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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