RosettaCodeData/Task/Reverse-words-in-a-string/11l/reverse-words-in-a-string.11l
2023-07-01 13:44:08 -04:00

14 lines
322 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

V text =
---------- Ice and Fire ------------
fire, in end will world the say Some
ice. in say Some
desire of tasted I've what From
fire. favor who those with hold I
... elided paragraph last ...
Frost Robert -----------------------
L(line) text.split("\n")
print(reversed(line.split( )).join( ))