Reference no: EM132360881
String Report
In this programming assignment you are going to use the material covered in Chapter 8 More About Strings to write a program called stringreport.py that creates a report about a string entered by the user at a prompt.
Requirements
Request a string from the user using the prompt "Enter a string: " and do the following:
• Determine the length of the entered string and do one of the following:
o If it is zero characters in length output the message "You did not enter anything!" and exit the program.
o If the entered string is one or more characters in length display the following information about the string and exit the program.
The length of the string. That is, the number of characters it contains.
The first character of the string.
The last character of the string.
Indicate if the string contains the word "open".
Indicate if the string contains only alphabetic letters and spaces.
Indicate if it contains only numeric digits.
Indicate if the entire string is lower case.
Indicate if the entire string is upper case.
Note: For the items above that say "Indicate if...", the output is to present a "yes" or "no".