Question: Write a Python program called 'right - align. py ' where the user can repeatedly enter a list of strings. Use the sentinel DONE to

Write a Python program called 'right-align. py' where the user can repeatedly enter a list of
strings. Use the sentinel "DONE" to end the input list. The list of strings is then printed out right-aligned
with the longest string.
Sample IO (The input from the user is shown in bold font - do not program this):
Enter strings (end with DONE):
Tume1o
Marcus
Rufaro
Dominique
Amanda
Elizabeth
Panayioti
Amiera
Absolom
Oge
Page 1 of 5
Version 11/09/202413:53
Christopher
DONE
Right-aligned list:
Tumelo
Marcus
Rufaro
Dominique
Amanda
Elizabeth
Panayioti
Amiera
Absolom
Oge
Christopher
Write a Python program called 'right - align. py

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!