Created
November 29, 2018 20:13
-
-
Save thatandromeda/98fdf51dc18f48250a80dfb796fc498a to your computer and use it in GitHub Desktop.
awful hack
This file contains 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 |
glamrock
commented
Nov 29, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment