About this question
I want to print a list in python without the square brackets. It is always coming printing like [“a”,”b”,”c”]
I want to print a list in python without the square brackets. It is always coming printing like [“a”,”b”,”c”]
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Python Expert
Asutosh Jha JanBask Expert
Answered on Jul 25, 2021
To solve print list without brackets python you can follow the following code:
name=["a","b","c"]
print (', '.join(name))
It will simply take all the elements in a list(name), and joins them with ‘, ’