Python Challenge | Spin Words

Опубликовано: 17 Апрель 2026
на канале: Cosmin in Tech
8
0

In this solution:
The string is split into a list of words using split().
A list comprehension processes each word, reversing those with five or more letters using slice notation [::-1].
The join() method reassembles the processed words into a single string, preserving the original spaces.
The final string is returned, completing the challenge.