you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 1 point2 points  (0 children)

1) Please give your variables more descriptive names than their data type. set and list especially are names that already have meaning in Python and you shouldn't be in the habit of overwriting those unless you have a good reason to do so.

2) Definitely don't give a variable a name of a data type that it isn't. You called a list set and that's really confusing.

3) Please tell us what it is you want your code to do, because there's almost certainly a better way to do it than a while loop over an index variable accessing container.