Python Forum
list all the different options that are filled in
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list all the different options that are filled in
#2
You need to loop through itemtargetclasses, not just check the whole thing. But since itemtargetclasses is built with a loop anyway, you can just change how you build it:

itemtargetclasses = []
for item in Dataset:
    if item not in itemtargetclasses:
        itemtargetclasses.append(item)
That way, itemtargetclasses has no duplicates.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: help help SOS - by ichabod801 - Sep-13-2019, 03:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculator: several options, changing the number gus17 4 3,269 Dec-28-2019, 11:22 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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