0
How do i use replace function to replace "[ ]" These brackets
I want to replace bracket and comas from list how can I do that
6 odpowiedzi
+ 4
You mean, when you want to print it out? (If not, please ask.)
print(*your_list)
will do the trick.
+ 3
Try it like I wrote, with a star.
['a', 'b', 'c']
will become
a b c
+ 2
Thank you so much it works
+ 2
Try it like HonFu wrote:
your_list = [4, 'a', 8, 'z']
print(*your_list)
#output will be:
4 a 8 z
0
[1,4,3,5,6,8,'k',8,'j',9,0,2,4,'k',9,'y',7,3] I want replace all comas, brackets and Parenthesis while printing it
0
Thank you but I have done