Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toooo slow....
#2
Start with clarity in mind. Your problem description:

  • go through list 't' and check if any object from it is smaller than the first object in list 'a'
    • if there is one, than it changes the value to '100001'
  • it goes to the next object in list 'a' and does that until it goes through the whole list 'a'. [just iterates over list 'a'?]
  • the values from list 't' can only be used once each [what means 'used'?]

I may only assume what you want to accomplish.... like finding minimum value in list 'a' and then checking which items in list 't' are smaller of it.
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
Toooo slow.... - by Radez - Nov-25-2020, 04:13 PM
RE: Toooo slow.... - by perfringo - Nov-25-2020, 04:34 PM
RE: Toooo slow.... - by deanhystad - Nov-25-2020, 10:59 PM

Forum Jump:

User Panel Messages

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