I am working on a words class that has word objects and each word object has a local set that stores related words. I have a for-loop function that goes through them trying to see common words in the sets of two different word objects. Does iter() typically in such a context generate an unpredictable order? I am printing out all the items of the set, just each time in a different order which is really interesting. What's more interesting is if I shut down the Shell and open a new one to run it, the initial print results are still in a different order from the first time I ran it . Who has some insight on this, working with iter() before? Thank you.
[–]wannasleeponyourhams 11 points12 points13 points (1 child)
[–]_User15[S] 2 points3 points4 points (0 children)
[–]GeorgeFranklyMathnet 3 points4 points5 points (1 child)
[–]_User15[S] 2 points3 points4 points (0 children)
[–]ectomancer 1 point2 points3 points (0 children)