Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

a= [{'w', 'r', 't', 'y', 'e'}, {'f', 'g', 'w', 's', 'd'}]

How to change the above data set into a separate list so that

b = ['w', 'r', 't', 'y', 'e']

c = ['f', 'g', 'w', 's', 'd']

1 Answer

0 votes
by (36.8k points)

Use the below code:

assert len(a) == 2

b, c = [list(s) for s in a]

 If you want to know more about the Data Science then do check out the Data Science which will help you in understanding Data Science from scratch

Related questions

Browse Categories

...