Why searching in a set is much faster than in a list ?

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Wed Sep 28 04:19:12 EDT 2016


On Wednesday, September 28, 2016 at 6:51:17 PM UTC+13, ast wrote:
> I noticed that searching in a set is faster than searching in a list.

That’s why we have sets.



More information about the Python-list mailing list