From 044adc8487018a49bb751384cd8a7db298be7349 Mon Sep 17 00:00:00 2001 From: Sze Yeung <87453738+SzeYeung1@users.noreply.github.com> Date: Sat, 20 Jul 2024 04:23:20 +0800 Subject: [PATCH] fix(curriculum): Fixing Typo in Learn Interfaces by-Building an Equation Solver Step 11 (#55577) --- .../6675a38a8b535e4ff3274520.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-interfaces-by-building-an-equation-solver/6675a38a8b535e4ff3274520.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-interfaces-by-building-an-equation-solver/6675a38a8b535e4ff3274520.md index 12f942a3996..e3d3aa3d2ac 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-interfaces-by-building-an-equation-solver/6675a38a8b535e4ff3274520.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-interfaces-by-building-an-equation-solver/6675a38a8b535e4ff3274520.md @@ -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.