0

This is maybe a dumb question, but I was just wondering, is iterating through a set as fast as iterating through a list in python if their length was n? I'm guessing that getting an item from a set is not the same as a list.

for example:

set = {1, 4, 6, 8}
list = ['a', 'b', 'c', 'd']
Ikkjo
  • 1

0 Answers0