In this we are going to see a basic program of reverse and swap case sentence in Python Programming Language.
def reverseAndSwapCase(sentence):
newSentence = sentence.swapcase()
words = newSentence.split()
words.reverse()
newSentence = ""
for word in words:
newSentence += word+" "
return newSentence
print(reverseAndSwapCase("aWESOME is cODING"))
# Coded by Shreya Idate
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP