Convert String to List in Python:
We can use the PyCharm code editor for this example. If you do not know about it then follow this link- How to install PyCharm for Python and create a program in it. |
(1) split()– The split() function breaks a string down into substrings, using the delimiter specified by the user i.e. the split() function does not take any parameter. It takes a string from the user and breaks that string into a list by the separator, that is, space.

(2) For Multiple Inputs, use the following method as shown below.

Tutorial MySQL Tutorial Python Artificial Intelligence (AI) Cloud Computing Database Management System (DBMS) Secondary Storage Devices Characteristics of Computer Python (programming language)– Wikipedia |
Comments (No)