2021-07-31 17:10:28 +04:00

17 lines
248 B
Python

characters = 'wasitar'
output = ''
length = len(characters)
i = 0
while (i < length):
output = output + characters[i]
i += 1
length = length * -1
i = -2
while (i >= length):
output = output + characters[i]
i = i -1
print(output)