130
I have a list like below,
a = ["x","y","z"]
I want to convert the list into a string like x/y/z How to do that?
x/y/z
To convert a list to string, we can use the join() method
join()
l = ["x","y","z"] s = "/".join(l) print(s)