0

Sets internal structure

Are python sets like link list in c++? If not what are some good applications of sets in python programming?

26th Sep 2018, 4:50 AM
John Ortiz
John Ortiz - avatar
2 Answers
+ 2
No, a set in python has a different characteristic to a link list in c++ "A set object is an unordered collection of distinct hashable objects. Common uses include membership testing, removing duplicates from a sequence, and computing mathematical operations such as intersection, union, difference, and symmetric difference. (official documentation python.org). A link list in c++ is a structure, that can contain the same value in different nodes at the same time.
1st Oct 2018, 7:34 PM
P.W.R.
P.W.R. - avatar
0
Awesome answer! I am very capable python programmer, but still I liked to master the language. Do you suggest any particular book, or any other resource?
13th Oct 2018, 5:43 PM
John Ortiz
John Ortiz - avatar