reverses words in a given string reversewordsi love python python love i reversewordsi love python python love i reverses words in a given string reverse_words i love python python love i reverse_words i love python python love i
def reverse_words(input_str: str) -> str:
    
    return " ".join(input_str.split()[::-1])


if __name__ == "__main__":
    import doctest

    doctest.testmod()