Class and instance access
Input
Dog.species
Output
Canis familiaris
The species attribute is defined at the class level and should be accessible directly from the class.
Full lesson preview
Learn to create class-level attributes shared by all instances.
Problem statement
Task
Examples
Input
Dog.species
Output
Canis familiaris
The species attribute is defined at the class level and should be accessible directly from the class.
Input format
Output format
Constraints
Samples
Input
Dog('Rex', 2).name
Output
Rex
Instance attribute name should be set by the constructor.