def shift_reverse(string):
    words = string.split()
shifted_words = [words[-1]] + words[:-1]
return ' '.join([word[::-1] for word in shifted_words])
how to shift a string to right and reverse it in python?