# swapcase() method string = "thE big BROWN FoX JuMPeD oVEr thE LAZY Dog" print(string.swapcase()) >>> THe BIG brown fOx jUmpEd OveR THe lazy dOG
def reverse_words_order_and_swap_cases(sentence): words = sentence.split(' ') reverse_sentence = ' '.join(reversed(words)).swapcase() return reverse_sentence