Sets_remove | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Sets_remove

If there are two same elements in a set , If I use remove method which element will be removed ?

18th May 2018, 5:30 AM
NIKHIL KOMALLA
NIKHIL KOMALLA - avatar
2 Answers
+ 6
Sets don't allow duplicate values
18th May 2018, 5:48 AM
NIKHIL KOMALLA
NIKHIL KOMALLA - avatar
+ 5
The two same elements got removed,
18th May 2018, 5:32 AM
NIKHIL KOMALLA
NIKHIL KOMALLA - avatar