Python disable list string "breaking" -
is there way disable breaking string list. example:
>>> = "foo" >>> b = list() >>> b.append(list(a)) >>> b >>>[['f', 'o', 'o']]
is there way have list inside of list string not "broken", example [["foo"],["bar"]]
?
very esay:
>>> = "foo" >>> b = list() >>> b.append([a]) >>> b [['foo']]
Comments
Post a Comment