연습문제 답 #
1 #
def string_reverse(str1):
rstr1 = ''
index = len(str1)
while index > 0:
rstr1 += str1[ index - 1 ]
index = index - 1
return rstr1
print(string_reverse('1234abcd'))
2 #
list(map(lambda w: len(w), 'It is raining cats and dogs'.split()))