Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python reverse words in string

def reverse(st):
    s = st.split()
    return ' '.join(s[::-1])
 
PREVIOUS NEXT
Tagged: #python #reverse #words #string
ADD COMMENT
Topic
Name
5+1 =