Skip to content

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

Description

@HariharasudhanAS

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions