Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = "The quick brown fox jumps over the lazy dog."
- def reverse_words(text):
- words_list = text.split(" ")
- reversed_words_list = []
- for word in words_list:
- reversed_words_list.append(word[::-1])
- return " ".join(reversed_words_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement