174일차 - Stop gninnipS My sdroW!

------------------------------------------🤞 My Solution -----------------------------------------

def spin_words(sentence):
    sentence = sentence.split(' ')
    for i in range(len(sentence)):
        if len(sentence[i]) >= 5:
            sentence[i] = sentence[i][::-1]
    return ' '.join(sentence)

좋은 웹페이지 즐겨찾기