From c4bb343fefec3be2d809737c4f6d036f797d9e70 Mon Sep 17 00:00:00 2001 From: Adam Corbin Date: Thu, 24 Jan 2019 14:07:01 -0500 Subject: [PATCH] #1 {TP} - Update per the review comments Updates based on the review comments f6595f8f60bb99f860fe6a821a551158a5100e28 --- 5_Software/math_lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/5_Software/math_lib.py b/5_Software/math_lib.py index cf717ef..5886ef2 100644 --- a/5_Software/math_lib.py +++ b/5_Software/math_lib.py @@ -7,7 +7,7 @@ def pow_native(number, exponent): """ if exponent == 0: return 1 - total = 0 - for i in range(0,exponent+1): - total += number + total = 1 + for i in range(1, exponent + 1): + total *= number return total