DEV Community

Discussion on: 11 Tips And Tricks To Write Better Python Code

Collapse
 
jingxue profile image
Jing Xue

Understood. Actually come to think of it, when you have only a few items, a list is not necessarily slower and definitely more memory efficient than a set. :-)