БГ
Size: a a a
БГ
E
A
RS
print(" ".join([i[::-1] for i in "hello world".split(" ")]))RS
БГ
rev_phrase = ""
terminators = ".,:; "
word = ""
for symb in string:
if symb not in terminators:
word += symb
else:
rev_phrase = reversed(word) + symb + rev_phrase
word = ""
А
БГ
А
E
А
E
Д
А
>>> "hello \n world".split()
['hello', 'world']
>>> "hello \n world".split(" ")
['hello', '', '\n', 'world']БГ
БГ
[а-яА-Я] 🌚👌Д
[а-яА-Я] 🌚👌А