How can I take a string such as "hello world" and turn it into a list of its chars?
I have some code that managed to work but I'm wondering if there's a more efficient way that involves less code.
Here's what I have:
stringOne = "Hello World"
stringOneList = []
for i in stringOne:
stringOneList.append(i)
print(stringOneList)
this results in an output of ['h','e','l','l','o',' ','w','o','r','l','d'] which IS what I'm after. But it feels clunky. Is there a function I'm missing that would do this more efficiently?