Last active
December 1, 2015 20:09
-
-
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"
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
# 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