+ 1
Switch a list in a String
How I can switch a list in a String. I can split a String in a list with split but how I can switch a list in a String in Python?
8 Answers
+ 4
"".join(['1', '2', '3'])
# because you can always join() what you have split()
+ 4
@Ninj4 Nothing, the code works alright. If you want to join the words without a space, just remove it ("" instead of " ").
0
Okay thank You đ
0
Hmm I try it but the Console printed that the object still is a list đ€
0
Okay thx
0
Okay and whats wrong here đ
https://code.sololearn.com/cnivc04na8TH/?ref=app
0
okay đ