Python Forum
List modification returns none
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List modification returns none
#4
Line 1 does not make a copy of the list. It just creates another variable pointing to the original list.
In another thread one of the better programmers here posted a link that really helps to explain this (I think yesterday). Watch the video, it will become clear.
How variables work in Python
Reply


Messages In This Thread
List modification returns none - by Mark17 - Aug-30-2019, 02:59 PM
RE: List modification returns none - by Yoriz - Aug-30-2019, 03:15 PM
RE: List modification returns none - by Mark17 - Aug-30-2019, 03:45 PM
RE: List modification returns none - by jefsummers - Aug-30-2019, 04:09 PM
RE: List modification returns none - by Yoriz - Aug-30-2019, 04:10 PM
RE: List modification returns none - by Mark17 - Aug-30-2019, 07:16 PM
RE: List modification returns none - by Mark17 - Sep-02-2019, 05:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How returns behave in a function with multiple returns? khasbay 1 119 Yesterday, 08:48 AM
Last Post: deanhystad
  Filer and sort files by modification time in a directory tester_V 5 399 May-02-2024, 05:39 PM
Last Post: tester_V
  function returns dataframe as list harum 2 1,500 Aug-13-2022, 08:27 PM
Last Post: rob101
  function that returns a list of dictionaries nostradamus64 2 1,824 May-06-2021, 09:58 PM
Last Post: nostradamus64
  Scaled scatter modification yvrob 1 2,006 Nov-08-2019, 04:05 AM
Last Post: yvrob
  Python script modification rajannn 1 1,968 Oct-06-2019, 07:55 PM
Last Post: micseydel
  Inspect.getmembers with isclass returns an empty list Aldar 1 2,835 Oct-02-2019, 01:48 PM
Last Post: Aldar
  returns index of list if contains a word zarize 0 1,865 Sep-09-2019, 09:29 AM
Last Post: zarize
  Code modification okrus 0 1,852 Jun-24-2019, 01:23 PM
Last Post: okrus
  pyPDF2 nautilus columns modification AJBek 1 2,951 Jun-07-2019, 04:17 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

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