python?
For instance in JS:
var arr = ["a","b"]
arr.join("") // output "ab"
How do it in python?
in this case, list comphrension
I got it
i found other way like this ''.join([1,2,3])
this works for lists that contain only strings
oh Good to know tks man
''.join(map(str, [1, 2, 3]))
Обсуждают сегодня