Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list not working
#2
Never name a list List it's not a good idea.
It's like naming your baby 'human'.
The MADList is a pointer or reference to List, it's not a copy of list.
You can do it this way:
MADLList = []
for item in List:
    MADList.append(item)
Reply


Messages In This Thread
list not working - by Zman350x - Mar-10-2018, 12:06 AM
RE: list not working - by Larz60+ - Mar-10-2018, 12:14 AM
RE: list not working - by Zman350x - Mar-10-2018, 12:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  os.list dir not working Kristenl2784 8 10,484 Jul-29-2020, 04:22 PM
Last Post: deanhystad
  python3: iterating through list not working wardancer84 3 2,471 Jul-08-2020, 04:30 PM
Last Post: DPaul
  Finding MINIMUM number in a random list is not working Mona 5 3,198 Nov-18-2019, 07:27 PM
Last Post: ThomasL
  Appending to list not working and causing a infinite loop eiger23 8 4,184 Oct-10-2019, 03:41 PM
Last Post: eiger23

Forum Jump:

User Panel Messages

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