Question: Write a program which repeatedly reads strings until the user enters O (the digit zero). Once O is entered, print out the alphabetically highest string

 Write a program which repeatedly reads strings until the user enters

Write a program which repeatedly reads strings until the user enters "O" (the digit zero). Once "O" is entered, print out the alphabetically highest string while converting all strings to lower case. For example, if the user enters the string s 'DUMBO', internally the program will convert it with s.lowero to 'dumbo'. Submit a Python script containing the program. Example transcript: Enter a string: apple Enter a string: DUMBO Enter a string: Colorado Enter a string: 0 The highest string is: dumbo Note: Recall that Python string comparison ranks upper-case letters lower than lower-case letters which is counter-intuitive. If the program had not converted 'DUMBO' and 'Colorado' to lower case, then it would print that 'apple' is the highest string

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 Databases Questions!