Answers for "how to print list without brackets and spaces python"

2

python program to print list without brackets

lst = [1,2,3,4,5]
print(*lst,end="")

#output
1 2 3 4 5
Posted by: Guest on April-05-2021
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 "how to print list without brackets and spaces python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language