#Thing you want to do
#'hello' ⇒ ['h','e','l','l','o']
a = 'hello'
print(list(a))
The execution result is as follows
['h', 'e', 'l', 'l', 'o']
b = 123456789
print(list(str(b)))
The execution result is as follows
['1', '2', '3', '4', '5', '6', '7', '8', '9']
Recommended Posts