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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -