Mirror mode message

Write codeEasy10 min

Your task

A chat app ships a playful 'mirror mode': every word in a message is reversed, but the words stay in their original order. Given a message of lowercase words separated by single spaces, return the mirrored message. For example, 'hello there' becomes 'olleh ereht'. The message may be empty; there are never leading, trailing, or repeated spaces.

Examples

reverse_each_word(message: str) -> str
Example 1
Inputreverse_each_word("hello there")
Output"olleh ereht"