Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions