Skip to content

Instantly share code, notes, and snippets.

@eyaltrabelsi
Created June 21, 2019 20:50
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 eyaltrabelsi/6b765afce1ce8816b5b61126e94c02fd to your computer and use it in GitHub Desktop.
Save eyaltrabelsi/6b765afce1ce8816b5b61126e94c02fd to your computer and use it in GitHub Desktop.
Python tricks aggregate elements in iterable to single text
>>> a = ["python","really", "rocks"]
>>> " ".join(a)
'python really rocks'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment