Python Forum
delete identical entries in a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
delete identical entries in a list
#4
Post your code in python tags, not quote tags. See the BBCode link in my signature below for instructions.

Don't loop over indexes to lists, loop over the lists directly. Your error is exactly why you don't do that. j is looping over the indexes of errors when it should be looping over the indexes of studentNumbersWithErrors.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
delete identical entries in a list - by Pedroski55 - Sep-18-2017, 11:27 PM
RE: delete identical entries in a list - by Larz60+ - Sep-18-2017, 11:30 PM
RE: delete identical entries in a list - by ichabod801 - Sep-19-2017, 12:41 AM
RE: delete identical entries in a list - by Mekire - Sep-19-2017, 01:27 PM
RE: delete identical entries in a list - by wavic - Sep-19-2017, 02:00 PM
RE: delete identical entries in a list - by wavic - Sep-20-2017, 08:00 AM

Forum Jump:

User Panel Messages

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