Example & Tutorial understanding programming in easy ways.

How we can convert the List to Sets in Python ?

program:

l=[1,2,3,4,1,2]

s=set(l)

print(s)

output:

{1,2,3,4}


-Here set() function are able to do this, and it remove the duplicate items.

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!