Last active
April 11, 2021 00:22
-
-
Save ofelix03/e82789890bfc8968e3942be5f598112c to your computer and use it in GitHub Desktop.
string-concatenations-with-comma-delimeters-bad
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
| names = ['Samuel Mensah', 'Thomas Fynn', 'George Stone'] | |
| names_str = "" | |
| for name in names: | |
| names_str += name + ", " | |
| names_str = names_str.rstrip(", ") | |
| print("names_str: ", names_str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment