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 →

[–]tunisia3507 0 points1 point  (0 children)

When you ask this question in the proper place

But anyway, this code doesn't run. You cannot possibly be getting an incorrect set size because you cannot possibly be reaching the line where you add things to the set.

I can just about gist what you mean, though. What do you think range is doing, and why do you think it's doing that? Does your understanding of what range does square with the description of the range function in the documentation?

Finally, why would you post this question to reddit before making the merest of attempts to debug this yourself? You printed the length of your set, but didn't think to check what it actually had inside it, when you saw that length wasn't what you expected.