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

Commit 13e7d32

Browse files
committed
Create C-4-16.py
1 parent e05da9f commit 13e7d32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def reverse(str):
2+
3+
if str != '':
4+
return str[-1]+ reverse(str[:-1])
5+
else:
6+
return str
7+
8+
print(reverse('hello'))

0 commit comments

Comments
 (0)