how to print a list without the brackets in python

29

# 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='')
print(', '.join(names))

Comments

Submit
0 Comments