Ask coding questions

← Back to all posts
How do I join two stirbgs
TaylorSharp (0)

It keeps giving me an error

Comments
hotnewtop
RYANTADIPARTHI (6019)

try this.

'string' + 'string2'

that's it.

Coder100 (18071)

"A" + "B"

To join array, make the array a string first:

arr = [1, 2, 3]
print(",".join([str(a) for a in arr]))
FloCal35 (667)

What do you mean, I get no errors?