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

How to print array/ list without brackets in python?

Asked by Chandralekha Debbie Apr 12, 2021 1.0K views 1 answer
Share

About this question

I have a list in Python e.g.

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

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.