Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 021bcaf

Browse files
committed
Update C-4-16.py
1 parent 8ae06c5 commit 021bcaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PythonDataStructsAndAlgo/Recursion/C-4-16.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
def reverse(str):
22

33
if str != '':
4+
print(str)
45
return str[-1]+ reverse(str[:-1])
56
else:
67
return str

0 commit comments

Comments
 (0)