Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set order
#8
I suggest to read documentation Set types:

Quote:A set object is an unordered collection of distinct hashable objects. Common uses include membership testing, removing duplicates from a sequence, and computing mathematical operations such as intersection, union, difference, and symmetric difference. (For other containers see the built-in dict, list, and tuple classes, and the collections module.)

Like other collections, sets support x in set, len(set), and for x in set. Being an unordered collection, sets do not record element position or order of insertion. Accordingly, sets do not support indexing, slicing, or other sequence-like behavior.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
Set order - by FreshEire - Jan-09-2023, 05:06 PM
RE: Set order - by deanhystad - Jan-09-2023, 05:25 PM
RE: Set order - by woooee - Jan-09-2023, 06:08 PM
RE: Set order - by deanhystad - Jan-09-2023, 06:21 PM
RE: Set order - by woooee - Jan-09-2023, 06:35 PM
RE: Set order - by deanhystad - Jan-09-2023, 07:18 PM
RE: Set order - by bowlofred - Jan-09-2023, 07:20 PM
RE: Set order - by perfringo - Jan-09-2023, 07:26 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020