How to convert a string into a list in Python?

 

How to convert a string into a list in Python?

- Use list() function or .split() for converting a string into a list. This tutorial explains it all. - Learn how to check the data type of string or list in python.

Leave a comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.