Original User: dkwiens
I'm not sure what the technical term is (possibly "object"), but the purple note stack means "it's something the Python window knows about". I can only assume that you assigned something to the variable "lyr" before your first example, so the window knows what "lyr" is. If it's a string and you type "lyr." it will give you a list of properties and methods available to strings (capitalize, center, count, etc.). If you start typing "mxd." in your second example, it knows mxd is a map document, so it gives you properties and methods available to a map document.