Skip to content

Bug Report for python-list-pop #4238

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

Open
rickboot opened this issue Jun 6, 2025 · 0 comments
Open

Bug Report for python-list-pop #4238

rickboot opened this issue Jun 6, 2025 · 0 comments

Comments

@rickboot
Copy link

rickboot commented Jun 6, 2025

The text lesson explains that pop() mutates a list, but does not explain that it returns the value popped from the list.

A beginner might not realize that the following will return a number instead of the mutated list:

return mylist.pop(index)

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