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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started