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

typo in section 1.2 user_record

Open rasrobo opened this issue 9 years ago • 0 comments

i finally got this working by defining 'record' instead of user_record.

Just wanted to share .. thanks!

on-input-37-fd835976edf3> in () ----> 1 user_record = name, email, *phone_numbers

NameError: name 'email' is not defined

In [38]: phone_numbers

NameError Traceback (most recent call last) in () ----> 1 phone_numbers

NameError: name 'phone_numbers' is not defined

#here where i set to record instead of user_record In [39]: name, email, *phone_numbers = record

In [40]: name Out[40]: 'Dave'

In [41]: email Out[41]: '[email protected]'

In [42]: phone_numbers Out[42]: ['773-555-1212', '555-555-5555']

In [43]:

rasrobo avatar Dec 14 '16 16:12 rasrobo