Created
July 18, 2020 22:25
-
-
Save raeq/b448a7fb69c37e852d489c3ed8e858d1 to your computer and use it in GitHub Desktop.
List to csv
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
def from_list(line: list = []) -> str: | |
ret = ", ".join(e for e in line) | |
return ret | |
assert from_list(["a", "b", "c"]) == "a, b, c" | |
assert from_list(["one", "two", "three"]) == "one, two, three" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment