how to print python list without brackets code example
Example 1: 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 2: how to print list without brackets python
print(', '.join(names))