Which Data structures is faster list or Dictionary or set in Python ??
I would say, it depends on the operation you want to perform. Lists are generally slower than other two. Sets use hash tables for internal operations, so membership test and removal of element will be faster than list in general, but other operations will be as similar as on lists. Dictionaries also use hash tables internally and are faster than both of them.
Thank you !! That clarifies my doubt.
A place for coders and developers to share, learn and grow together.