fix(curriculum): Fixing Typo in Learn Interfaces by-Building an Equation Solver Step 11 (#55577)

This commit is contained in:
Sze Yeung
2024-07-20 04:23:20 +08:00
committed by GitHub
parent 210a0b75dd
commit 044adc8487

View File

@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
The `hasatttr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
The `hasattr` built-in function takes an object as its first argument and a string representing an attribute name as its second argument. It returns a boolean indicating if the object has the specified attribute.
Now you are going to use the `__init_subclass__` method to check if the child class has the `degree` attribute at the moment of the instantiation.