Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list to string without brackets

names = ["Sam", "Peter", "James", "Julian", "Ann"]
print(", ".join(names))
#OR
names = ["Sam", "Peter", "James", "Julian", "Ann"]
print(*names, sep=", ")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #list #string #brackets
ADD COMMENT
Topic
Name
4+8 =