This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------------------- | |
Python Notes | |
---------------------------------------------------------------------------------- | |
#when you equate a list to a new list, it doesn't actually copy the list | |
but instead points to the locations in your original list thus any changes | |
made in the new list reflects in the old one as well | |
my_list = your_list | |
#to avoid this do: |
NewerOlder