Python Forum
Make one thing act like another
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make one thing act like another
#3
Do I understand correctly that you want:

- bind val_index name to value (object)
- calculate list index (val_index + 30) and change corresponding value in list to 0. Or do you need change all values to 0 where indices are i % 30 == 0
- do some magic
- change value in list back to original value

Question:

- can you use throwaway lists? Every time you just create new list, use it and discard? This way original list remains same
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
Make one thing act like another - by Zman350x - Aug-15-2018, 11:24 PM
RE: Make one thing act like another - by ichabod801 - Aug-16-2018, 12:50 AM
RE: Make one thing act like another - by perfringo - Aug-16-2018, 06:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I am confused with the key and value thing james1019 3 1,011 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  Need help i just started the whole thing gabriel789 16 3,314 Sep-12-2022, 08:04 PM
Last Post: snippsat
  i making a terminal sign up website thing Kenrichppython 1 1,737 Nov-04-2021, 03:57 AM
Last Post: bowlofred
  use thing before self sylvanas 3 2,374 Jul-21-2021, 04:54 PM
Last Post: sylvanas
  Not able to make a specific thing pause in pygame cooImanreebro 4 3,262 Dec-13-2020, 10:34 PM
Last Post: cooImanreebro
  Help with list thing please Yeyzon 1 2,073 Apr-19-2019, 07:51 AM
Last Post: snippsat
  Printing one thing from a list bidoofis 1 2,369 Feb-05-2019, 09:02 PM
Last Post: ichabod801
  I found weird thing. catastrophe_K 1 2,123 Sep-29-2018, 09:59 AM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

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