Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove valueError for 0^0
  • Loading branch information
matssson committed Oct 5, 2021
commit f31e711b8799f6909eb54892a5122b4d51d27c6d
2 changes: 0 additions & 2 deletions maths/power_using_recursion.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def power(base: int, exponent: int) -> int:
True
"""
if exponent == 0:
if base == 0:
raise ValueError("0^0 is undefined!")
return 1
if exponent == 1:
return base
Expand Down