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

Minor addition to list assignments (*splat unpacking with fewer values) #242

Merged
merged 1 commit into from
Oct 4, 2021
Merged

Minor addition to list assignments (*splat unpacking with fewer values) #242

merged 1 commit into from
Oct 4, 2021

Conversation

100cube
Copy link
Contributor

@100cube 100cube commented Aug 23, 2021

Hi Greg,

Minor addition to demonstrate what happens to the rest variable when there are fewer values.

title, *first_names, last_name = ["Mr", "Bond"]

Feel free to amend/reject as you see fit.

Copy link
Owner

@gregmalcolm gregmalcolm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, nice addition!

@gregmalcolm gregmalcolm merged commit 800cdf5 into gregmalcolm:master Oct 4, 2021
YasenYordanov pushed a commit to YasenYordanov/python_koans that referenced this pull request Oct 15, 2021
Minor addition to list assignments (*splat unpacking with fewer values)
bjbishop pushed a commit to bjbishop/python_koans that referenced this pull request Oct 21, 2022
Minor addition to list assignments (*splat unpacking with fewer values)
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

Successfully merging this pull request may close these issues.

None yet

2 participants