How can I assign my Equilateral angle values?


#1

Question

How can I assign my Equilateral angle values?

Answer

Just like we did with the Triangle’s angle values, we are going to now assign the angle1, angle2, and 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.


FAQ: Learn Python - Introduction to Bitwise Operators - Inheritance