python-cookbook icon indicating copy to clipboard operation
python-cookbook copied to clipboard

Typo Error - 1.2. Unpacking Elements from Iterables of Arbitrary Length

Open carlosdiaz opened this issue 9 years ago • 0 comments

In example of section 1.2 the first variable with name record must be replaced by user_record `

user_record = ('Dave', '[email protected]', '773-555-1212', '847-555-1212') name, email, *phone_numbers = user_record name 'Dave' email '[email protected]' phone_numbers ['773-555-1212', '847-555-1212'] `

carlosdiaz avatar Oct 13 '16 18:10 carlosdiaz