python-cookbook
python-cookbook copied to clipboard
Typo Error - 1.2. Unpacking Elements from Iterables of Arbitrary Length
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'] `