Answers for "python printing lists 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
0

how to print a list without the brackets in python

names = ["jeff", "Mike", "Mario"]

#if you want to print in seperate lines
for x in range(len(names)):
	print(names[x])
 
#If you want to print in same line
for x in range(len(names)):
	print(names[x], end=" ")
Posted by: Guest on May-30-2021

Code answers related to "python printing lists without brackets"

Python Answers by Framework

Browse Popular Code Answers by Language