Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
List
When I use a list or something like that in my code the output is always just like the list obviously. How can I print a list without "" and []?
1 Answer
+ 1
You can also use join() method
alist = ["cat","foo","bar","spam"]
print(" ".join(alist))