how to print a list without brackets python code example
Example 1: print list without brackets int python
# you're using Python 3, or appropriate Python 2.x version with from __future__ import print_function then:
data = [7, 7, 7, 7]
print(*data, sep='')
Example 2: how to print a list without brackets and commas python
#How to remove brackets and commas from a list (Python)
#Converts list to a string, strips brackets from new string, then replaces all apostrophes with empty spaces
print(str(listData).strip('[]').replace('\'', ''))
Example 3: python program to print list without brackets
lst = [1,2,3,4,5]
print(*lst,end="")
#output
1 2 3 4 5
Example 4: how to print list without brackets python
print(', '.join(names))