Skip to content

Commit

Permalink
#1 {TP} - Update per the review comments
Browse files Browse the repository at this point in the history
Updates based on the review comments f6595f8
  • Loading branch information
acorbin3 authored Jan 24, 2019
1 parent 29ef462 commit c4bb343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 5_Software/math_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c4bb343

Please sign in to comment.