SyntaxFix
Write A Post
Hire A Developer
Questions
You could use a list comprehension or a generator expression instead:
', '.join([str(x) for x in list]) # list comprehension ', '.join(str(x) for x in list) # generator expression