Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Print list without brackets in a single row

Asked by Yash Jaiteley Apr 13, 2021 1.3K views 1 answer
Share

About this question

I have a list in Python e.g.

letters = ["t", "h", "e"]
I want to print the array in a single line without the normal " []
names = ["t", "h", "e"]
print (letters)
Will give the output as;
["t", "h", "e"]
That is not the format I want instead I want it to be like this;
t, h, e

Note: It must be in a single row.

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.