strings.reverse_words

Functions

reverse_words(→ str)

Reverses words in a given string

Module Contents

strings.reverse_words.reverse_words(input_str: str) str

Reverses words in a given string >>> reverse_words(“I love Python”) ‘Python love I’ >>> reverse_words(“I Love Python”) ‘Python Love I’