How can I assign my Equilateral angle values?
Just like we did with the
Triangle’s angle values, we are going to now assign the
angle3 values. This can be done like
self.angleN = self.angle, since all angles are the same for an equilateral triangle.
The most common issues here are spelling-related, so double check your spelling! Also, be sure not to write the assignment backwards, like this:
self.angle = self.angleN.