Why does the following assignment statement generate an error?

>>> x.y = 5
Traceback (most recent call last):
File "", line 1, in
NameError: name 'x' is not defined

The x.y is not a valid name; Python parses it as “apply method y to object
x.” Python reports that x is not defined.

Computer Science & Information Technology

You might also like to view...

Your ________ is all the information that someone could find out about you by searching the web, including social networking sites

a.avatar b.digital footprint c.profile d.screen name

Computer Science & Information Technology

To sort customer records into numerical order by the amount ordered field, use the ________ button

Fill in the blank(s) with correct word

Computer Science & Information Technology