def string_reverse(str1):#coding #beginner
rstr1 = ''
index = len(str1)
while index > 0:
rstr1 += str1[index - 1]
index = index - 1
return rstr1
print(string_reverse('1234abcd'))
Post #1438
5.97K
Задачка для начинающих. Ответ
- 💩 19
- 👎 5
- 👍 3
- 🤔 2
- 🌚 1