There is no built in reverse function for Python\'s str object. What is the best way of implementing this method?
reverse
str
If supplying a very conci
This is simple and meaningful reverse function, easy to understand and code
def reverse_sentence(text): words = text.split(" ") reverse ="" for word in reversed(words): reverse += word+ " " return reverse