Skip to content

9.Mutation Typo found  #146

@Payuing

Description

@Payuing

Second example

foo = ['hi']
print(foo)
# Output: ['hi']

bar = foo
bar += ['bye']

print(foo)
# Output: ['hi'] 
***#THE OUTPUT HERE SHOULD BE ['hi', 'bye']***

print(bar)
# Output: ['hi', 'bye']

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