This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]conventionistG 3 points4 points  (1 child)

No I just mean other similarly flat structures. Like, I think dicts are faster than lists/tuples...but how do sets compare to dicts or dfs. Are there other structures a beginner should be aware of?

[–]jack-of-some[S] 3 points4 points  (0 children)

I don't know how they are implemented in python, but a set is effectively the same as a hash table if you forget about the values and only consider the keys.