+ 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 []?

31st Mar 2022, 5:38 AM
Tremor
Tremor - avatar
2 Answers
+ 1
You can also use join() method alist = ["cat","foo","bar","spam"] print(" ".join(alist))
31st Mar 2022, 12:32 PM
Simba
Simba - avatar