Created
June 16, 2020 14:16
-
-
Save metaperl/b716b460cf3e6d6c4d1a8ba73af5df69 to your computer and use it in GitHub Desktop.
I like creating lists of words using .split() in Python
This file contains hidden or 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
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