I have a list in Python e.g.
names = [\"Sam\", \"Peter\", \"James\", \"Julian\", \"Ann\"]
I want to print the array in a single line withou
Here is a simple one.
names = ["Sam", "Peter", "James", "Julian", "Ann"] print(*names, sep=", ")
the star unpacks the list and return every element in the list.