Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program called countLowerCase the program should read a string from the user it should then output the number of letters in lower case

write a program called countLowerCase
the program should read a string from the user
it should then output the number of letters in lower case
but it should count each lower case letter only once (see examples)
all the code for your solution should be in a single file: the only file that is going to be tested is countLowerCase.py
you can only use what we have covered from ch1 to ch7
Examples
% python3 countLowerCase.py
enter a sentence: abcdefgh
number of different lower case letters found: 8
% python3 countLowerCase.py
enter a sentence: ABCDEFGH
number of different lower case letters found: 0
% python3 countLowerCase.py
enter a sentence: XXXXaXXXXaXXXXaaXXXXaaa
number of different lower case letters found: 1
% python3 countLowerCase.py
enter a sentence: ABccDEeeeFGHIJjjjjKLMNOPpQRSTUVWXYZ
number of different lower case letters found: 4
%
HINT
keep track of the lower case letters you count.

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions