Skip to content

Instantly share code, notes, and snippets.

@matt-bernhardt
Last active December 1, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-bernhardt/e47ac032ea7ad1b4186b to your computer and use it in GitHub Desktop.
Save matt-bernhardt/e47ac032ea7ad1b4186b to your computer and use it in GitHub Desktop.
This takes a string of format "(x,y") and rebuilds to a list of "x", "y"
# initial setup
foo = "(x,y)"
newFoo = foo.replace('(', '').replace(')', '').split(',')
print(str(newFoo))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment