Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Best Practices: Python OOP

Accessing AttributesAccessing Attributes

You can access the attributes of an object using the dot notation.

Task

  1. Access the name attribute of the object dog1;
  2. Access the breed attribute of the object dog1.

Mark tasks as Completed

Everything was clear?

Section 1. Chapter 4
AVAILABLE TO ULTIMATE ONLY
course content

Course Content

Best Practices: Python OOP

Accessing AttributesAccessing Attributes

You can access the attributes of an object using the dot notation.

Task

  1. Access the name attribute of the object dog1;
  2. Access the breed attribute of the object dog1.

Mark tasks as Completed

Everything was clear?

Section 1. Chapter 4
AVAILABLE TO ULTIMATE ONLY
some-alt