List | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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
1 Réponse
+ 1
You can also use join() method alist = ["cat","foo","bar","spam"] print(" ".join(alist))
31st Mar 2022, 12:32 PM
Simba
Simba - avatar