Skip to content

Instantly share code, notes, and snippets.

@mwalling
Created October 7, 2009 15:30
Show Gist options
  • Save mwalling/204135 to your computer and use it in GitHub Desktop.
Save mwalling/204135 to your computer and use it in GitHub Desktop.
input = ['11.40', '10.20']
output = ','.join(["'%s'" % val for val in input])
print output
# will print "'11.40','10.20'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment