Python Forum
What is distinction between 'sent3' and 'set(sent3)'?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is distinction between 'sent3' and 'set(sent3)'?
#2
sets are unordered. That is why they are not subsrcriptable. Try this:
a_set = {1, 2, 3, 4, 5}
a_set[0]
Reply


Messages In This Thread
RE: What is distinction between 'sent3' and 'set(sent3)'? - by deanhystad - Jul-09-2020, 12:29 AM

Forum Jump:

User Panel Messages

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