18/19 Inheritance


I am not able to understand the problem with the code.

Error obtained:Oops, try again. Failed to instantiate Equilateral, an error was thrown: global name 'angle' is not defined .



on line 17, you create a class variable angle, to access class variable in methods, you need to use self.class_variable_name


Thanks again,for the fast response.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.