Answers for "list to string python without brackets"

8

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='')
Posted by: Guest on March-11-2020
1

python list to string without brackets

names = ["Sam", "Peter", "James", "Julian", "Ann"]
print(", ".join(names))
#OR
names = ["Sam", "Peter", "James", "Julian", "Ann"]
print(*names, sep=", ")
Posted by: Guest on January-25-2021
1

how do i remove the brackets around a list in python

l = ['a', 2, 'c']
print str(l)[1:-1]
'a', 2, 'c'
Posted by: Guest on March-14-2020
1

python list to string without brackets

print(', '.join(names))
Posted by: Guest on November-02-2020

Code answers related to "list to string python without brackets"

Python Answers by Framework

Browse Popular Code Answers by Language