Skip to content

Instantly share code, notes, and snippets.

@metaperl
Created June 16, 2020 14:16
Show Gist options
  • Save metaperl/b716b460cf3e6d6c4d1a8ba73af5df69 to your computer and use it in GitHub Desktop.
Save metaperl/b716b460cf3e6d6c4d1a8ba73af5df69 to your computer and use it in GitHub Desktop.
I like creating lists of words using .split() in Python
csv_headers = 'name dob height weight'.split()
# I prefer this over
csv_headers = ['name', 'age', 'height', 'weight']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment