18/19 Inheritance


#1

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 .

https://www.codecademy.com/en/courses/python-intermediate-en-WL8e4/3/4?curriculum_id=4f89dab3d788890003000096#


#2

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


#3

Thanks again,for the fast response.


#4

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