+ 1

How do you change a string from “xyz” to “x,y,z”?

Is there anyway to do this, and if so, could you tell me what it is?

22nd Aug 2019, 12:14 AM
Evan
1 Answer
+ 5
s = ",".join(list("xyz"))
22nd Aug 2019, 12:21 AM
Aymane Boukrouh
Aymane Boukrouh - avatar