I want to convert strings into blank list objects, which can then be updated/appended. How do I do this / can it even be done?
Imagine I have a string, 'blah'. I want to change this string, so that 'blah' becomes the object name of a blank list. In other words:
'blah'
def some_function('blah'):
...
...
return(blah)
some_function(blah)
OUTPUT: blah = []
I know that if I pass
list('blah')
this returns
['b','l','a','h']
But instead I want the opposite, where
list('blah')
returns
blah = []