Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
I can’t see your example, but I had the same problem. Here ist my solution. By assigning a space as a value to Str., the elements of the list are output with spaces between them, but without commas or paragraphs. str = " " print(str.join(list)) Examle: list = ["a","b","c"] str = "" print(str.join(list) Output: abc Because str does not contain a space, the elements of list are not separated with spaces.
21st Jan 2023, 8:28 PM
Flinn