getting list without brackets code example
Example 1: python program to print list without brackets
lst = [1,2,3,4,5]
print(*lst,end="")
#output
1 2 3 4 5
Example 2: how to print list without brackets python
print(', '.join(names))
lst = [1,2,3,4,5]
print(*lst,end="")
#output
1 2 3 4 5
print(', '.join(names))