+ 1
How to convert list value to string?
I used the list function on a str and got the return value in the form of one char per index. I used the del function on myList[-1] till I get myList[-1] as '='. Now I want to convert this list to a string. How can I do that ? I am using Python3
2 Answers
+ 1
myList=["a","b","c"]
myString=""
print(myString.join(myList))
+ 2
Thnx Joker