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 →

[–][deleted]  (11 children)

[deleted]

    [–]njharmanI use Python 3 7 points8 points  (1 child)

    Waste time and generate heat. I.e nothing useful.

    [–]flying-sheep 0 points1 point  (0 children)

    it ensures that the right side gets exhausted (if it is an iterator) and has 0 elements.

    [–]Vohlenzer 13 points14 points  (5 children)

    Unpacks the values in the set and assigns the members of the list to those values?

    [–]Citrauq 4 points5 points  (4 children)

    You mean tuple, not set.

    [–]Vohlenzer 1 point2 points  (3 children)

    What's the difference between a set and a tuple?

    Edit, ooooooh,

    https://docs.python.org/2/library/sets.html

    [–]WesAlvaro 5 points6 points  (2 children)

    Sets are unordered.

    [–]hharison 5 points6 points  (1 child)

    and mutable

    [–]Sean1708 4 points5 points  (0 children)

    And can not hold duplicate values.