0

Python " relay race" test in beginner course isn't working for me.

https://sololearn.com/compiler-playground/cFzwc7Md10cU/?ref=app

8th Nov 2024, 11:12 AM
Abdur Rahman
Abdur Rahman - avatar
8 ответов
+ 3
you can change the value of sep to an empty string, e.g.: print("Group 1:\n",g1, sep="") Or you print g1 in an extra print() on the next line.
8th Nov 2024, 12:44 PM
Lisa
Lisa - avatar
+ 5
print() has a separate sep=" ". Look at the expected output: There is no blank space in front of the name lists
8th Nov 2024, 12:10 PM
Lisa
Lisa - avatar
+ 3
or use f-string, so you won't invoke the sep. print(f"Group 1:\n{g1}")
9th Nov 2024, 2:19 AM
Bob_Li