Answers for "print a list in python without comma separator"

9

how to print list letters without commas in 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
0

list from comma separated string python

>>> my_string = 'A,B,C,D,E'
>>> my_list = my_string.split(",")
>>> print my_list
['A', 'B', 'C', 'D', 'E']
Posted by: Guest on February-13-2021

Code answers related to "print a list in python without comma separator"

Python Answers by Framework

Browse Popular Code Answers by Language