def reverse_neighbour(s):
x = [i for i in s.split()]
for i in range(1, len(x), 2):
x[i], x[i - 1] = x[i - 1], x[i]
return ' '.join(x)
#pythonзадача #coбес Post #1220
2.66K
Ответ к предыдущей задаче для новичков.
- 👍 2
- 😱 2
- 🐳 2
- 🤡 1