Skip to content

Instantly share code, notes, and snippets.

@Lubba-64
Created April 13, 2022 02:15
Show Gist options
  • Save Lubba-64/abec09f05ead25407a882943425dd352 to your computer and use it in GitHub Desktop.
Save Lubba-64/abec09f05ead25407a882943425dd352 to your computer and use it in GitHub Desktop.
# pase poorly formatted school math assignment numbers here.
data = """32,33,21,51,44,25,35,82,55,47,52,38,39,43,48,51,53,37,40,15
"""
# run the program, copy the output, paste to google sheets. much faster than retyping by hand.
import re
spl = re.split(pattern='[\n,]',string=data)
print('\n'.join(spl))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment