How do you remove brackets and quotes from a list in Python?

shubham
Aug 5, 2021

There are various methods to remove brackets and quotes from a list in python.

Using * operator

The * administrator in Python can be utilized to unload objects. It unloads every one of the components from a rundown and prints it without the square brackets and quotation as displayed underneath.

list = [‘shubham’,’anurag’,’ankit’,’pravin’]

print(*lst, sep = ‘,’)

READ MORE:

--

--