Skip to content

Commit d98e156

Browse files
committed
change spelling in abstraction example
1 parent 60760cc commit d98e156

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

03.OOP_Pillars/01.oop_pillar_scripts/04b.OOP_Pillars_abstraction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def diameter(self):
6767
return "Rectangle Prism doesn't have a diameter."
6868

6969
def diagonal(self):
70-
lwh_saquare = (math.pow(self.length, 2) + math.pow(self.width, 2) +
71-
math.pow(self.height, 2))
72-
diagonal = math.sqrt(lwh_saquare)
70+
lwh_square = (math.pow(self.length, 2) + math.pow(self.width, 2) +
71+
math.pow(self.height, 2))
72+
diagonal = math.sqrt(lwh_square)
7373
return diagonal
7474

7575

0 commit comments

Comments
 (0)