Question: Write a python program that reads in a string and prints whether it contains only letters contains only uppercase letters contains only lowercase letters contains

Write a python program that reads in a string and prints whether it

contains only letters

contains only uppercase letters

contains only lowercase letters

contains only digits

contains only letters and digits

starts with an uppercase letter

ends with a period

Hint: See substrings.py p.129

Sample output:

Please enter a string and I will analyze it for you: THIS

contains only letters

contains only uppercase letters

contains only letters and digits

starts with an uppercase letter

*note the bold THIS is the user input. Your program should be able to analyze any string entered at this point and print out the appropriate response.

Please be sure to include appropriate comment lines and your algorithm in your final code.

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!