How to convert set into list in python?

A set is an unordered collection data type with no duplicate elements. Sets are iterable and mutable. The elements appear in arbitrary order when sets are iterated.
Here we’ll see how to convert set into lists in python.
e.g.,
s={'A', 'B', 'C', 'D', 'E'} l=list(s) print(type(l))

e.g.,
s={'python', 'C', 'C++', 'Java', 'JavaScript'} l=list(s) print(l)

This is all about converting set into list in python.
Subscribe
Login
Please login to comment
0 Discussion