Skip to content

Commit 59bf2c6

Browse files
committed
Putting docstring inside the function.
1 parent 437254b commit 59bf2c6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

divide_and_conquer/power.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11

2-
"""
3-
Function using divide and conquer to calculate a^b.
4-
It only works for integer a,b.
5-
"""
2+
63
def power(a,b):
4+
"""
5+
Function using divide and conquer to calculate a^b.
6+
It only works for integer a,b.
7+
"""
78
if b == 0:
89
return 1
910
elif ( (b%2) == 0 ):

0 commit comments

Comments
 (0)