list to string python without brackets code example
Example 1: print list without brackets int python
data = [7, 7, 7, 7]
print(*data, sep='')
Example 2: python list to string without brackets
names = ["Sam", "Peter", "James", "Julian", "Ann"]
print(", ".join(names))
names = ["Sam", "Peter", "James", "Julian", "Ann"]
print(*names, sep=", ")
Example 3: python list to string without brackets
print(', '.join(names))
Example 4: how do i remove the brackets around a list in python
l = ['a', 2, 'c']
print str(l)[1:-1]
'a', 2, 'c'