>>> a="sruthi"
>>>
>>> list([a])
['sruthi']
>>>
or like in the comments above…
>>> a="sruthi"
>>> a = [a]
>>> a
['sruthi']
pick your flavor…
solved How to convert a string into a list as a single element?
>>> a="sruthi"
>>>
>>> list([a])
['sruthi']
>>>
or like in the comments above…
>>> a="sruthi"
>>> a = [a]
>>> a
['sruthi']
pick your flavor…
solved How to convert a string into a list as a single element?