Q:

How to convert a string to a list?

If I have a string:
a = 'hello'

How do I convert it into a list?
a = ['h', 'e', 'l', 'l', 'o']

A:

A string is an iterable, and a list can be constructed from an iterable. So all you need is
a = list(a)
print(a)

Output:

['h', 'e', 'l', 'l', 'o']

