How would I convert a string into a table in python? Example:
s = "hello"
s.TurnIntoTable -> s = ["h","e","l","l","o"]
How would I convert a string into a table in python? Example:
s = "hello"
s.TurnIntoTable -> s = ["h","e","l","l","o"]
list(s)
should do what your asking
or maybe
[list(line) for line in s.splitlines()]
Simple turn it to a list:
s = "hello"
print( list(s) )
#['h', 'e', 'l', 'l', 'o']