Created
July 5, 2019 19:36
-
-
Save eyaltrabelsi/71cf7e76176c0ee9b9d8dcc6accd8fa5 to your computer and use it in GitHub Desktop.
Python trick for splitting string to list
This file contains 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
>>> s = "a,b,c" | |
>>> s.split(",") | |
["a", "b", "c"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment