Question: Write a program that ask the user to type some text (small letters), this text consist of words separated by space or blanks and End

Write a program that ask the user to type some text (small letters), this text consist of words separated by space or blanks and End with a carriage return. Display the same text in sequence but only change the letters of words reversed. (Using Stack)

Sample Output:
my name is ali
ym eman si ila

8086 assembly cod

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def reversewordstext words textsplit stack for word in words stackappendword1 return joinstack ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!