ISTM-6200 Assignment 4 Updated
ISTM-6200 Assignment 4 Updated
Prof. Chad Ho
Individual Assignment 4
Due: Wednesday, 11/6
3. [4 pts]
Consider a sentence: “I love Python and Python loves me.” Write a function to print the sentence in
the reverse order (word by word). In your code, you must call the function to show the result.
Hint: You may find .split() useful.
ü You will earn half credit if your function can print the following:
ü You will earn full credit if your function can take care of the period and capitalizations. Pay
attention that the last word must be in lower case.
Hint: How to request inputs continuously? See Q3, Assignment 2. You may use .append() here.
Use break to terminate your while loop when certain conditions are met.