+ 1

How to convert a string into list in Python??

String to list convertion ??

10th Oct 2020, 7:16 AM
Lakshya Mittal
Lakshya Mittal - avatar
3 Respuestas
+ 1
Just pass the string to `list()` and it will return a list from the string you give it
10th Oct 2020, 7:54 AM
Shahil Ahmed
Shahil Ahmed - avatar
+ 1
list([string_var])
10th Oct 2020, 8:30 PM
Kirabo Ibrahim
Kirabo Ibrahim - avatar
0
Yes Jan Markus I wanna to put every character as a separate element into the list .
10th Oct 2020, 8:51 AM
Lakshya Mittal
Lakshya Mittal - avatar