How to print a list without brackets in Python

Printing a list to the console creates a text representation of the object and its contents, such as [“a”, “b”, “c”]. Printing only the list contents without brackets and markup can make the output easier to understand, for example: a, b, c.

Solution for How to print a list without brackets in Python : You can use * to print a list without brackets Call print(*value, sep=” “) with value as a list to unpack and print the elements of the list seperated by the zero or many characters contained in sep. To seperate each element with a comma followed by a space, set sep to “, “.


how-to-print-a-list-without-brackets-in-python