0% found this document useful (0 votes)
8 views1 page

Python Assessment

Uploaded by

Haseeb IJaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Python Assessment

Uploaded by

Haseeb IJaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

def ReverseAlphabetsOfWordsInASentence(input):

reversed_words = “”

for i in range(0,len(input)):

words+=input[len(input) – i - 1]

return reversed_words

input_sentence = "My Name is Ali"

output_sentence = ReverseAlphabetsOfWordsInASentence(input_sentence)

print(output_sentence)

You might also like