Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methods do not *return* the modified list, they just modify the original list. #54

Open
HariharasudhanAS opened this issue Aug 5, 2018 · 0 comments

Comments

@HariharasudhanAS
Copy link

When discussing lists, I think it is imperative to mention that lists are modified in the original space.
Also, when assigning one list to another, mentioning that modifications to the second list is reflected in the first list would be helpful.

l=[] 
l.append('a')
print(l)
a=l
a.append('b')
print(l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant