From 3d8721aaeb1138c0cc1c537794d9ff205122f2c3 Mon Sep 17 00:00:00 2001 From: marina <138340846+bt3gl-cryptographer@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:08:53 -0700 Subject: [PATCH] Update pascal_triangle.py --- math/pascal_triangle.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/math/pascal_triangle.py b/math/pascal_triangle.py index 740ac25..d1c5424 100644 --- a/math/pascal_triangle.py +++ b/math/pascal_triangle.py @@ -3,11 +3,11 @@ # author: bt3gl -def get_row(self, irow: int) -> list[int]: +def get_row(self, row: int) -> list[int]: - if irow == 0: + if row == 0: return [1] - result = self.get_row(irow - 1) + result = self.get_row(row - 1) return [1] + [sum(_) for _ in zip(result, result[1:])] + [1]