Initial commit: Python learning project with examples and exercises
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#5.6.2
|
||||
def f(n):
|
||||
if len(n) == 1:
|
||||
return n
|
||||
else:
|
||||
return f(n[1:])+n[0]
|
||||
|
||||
word = input("")
|
||||
print(f(word))
|
||||
Reference in New Issue
Block a user