Skip to content

Instantly share code, notes, and snippets.

@qmaruf
Last active August 29, 2015 13:57
Show Gist options
  • Save qmaruf/9723939 to your computer and use it in GitHub Desktop.
Save qmaruf/9723939 to your computer and use it in GitHub Desktop.
mylist = ['apple', 'orange', 'mango']
print ', '.join(mylist)
mylist = [1, 2, 3]
print str(mylist).strip('[]')
mylist = ['1', '2', '3']
print [int(item) for item in mylist]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment