Python · Stage 9 – Intro to Objects · Lesson 44 of 50

What Is an Object?

See an object as a thing with stored properties and available actions.

You have already used objects. A string is an object with methods:

name = "maya"
loud_name = name.upper()
Line-by-line explanation
  1. The first line creates a string object.
  2. name.upper selects its upper method.
  3. The method call creates MAYA.
  4. That new string is stored.