Concept
list()
This function is used to convert any data type to a list type.
s = 'word' c = list(s) print(c)
['w', 'o', 'r', 'd']
0
0
Updated 2021-07-27
Tags
Python Programming Language
Data Science
list()
This function is used to convert any data type to a list type.
s = 'word' c = list(s) print(c)
['w', 'o', 'r', 'd']
0
0
Tags
Python Programming Language
Data Science