Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Accessing Attributes | OOP project
Best Practices: Python OOP
course content

Kursinnehåll

Best Practices: Python OOP

book
Accessing Attributes

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

Uppgift

Swipe to start coding

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

Lösning

Mark tasks as Completed
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 4
Vi beklagar att något gick fel. Vad hände?
some-alt