Question: Write a function countChars ( ) which counts the number of uppercase letters, lowercase letters and digits in a string. Your program will prompt the
Write a function countChars which counts the number of uppercase letters, lowercase letters and digits in a string. Your program will prompt the user to enter a string and print the total for each type. See sample below.
Sample:Implement the function printInitials that prompts the user to input two strings. The two strings represent a first and last name and the function should print the first letter of the first name followed by the first letter of the last name. The first and last initial should have no spaces between them and they should be capitalized, regardless of what the user entered. The information below shows how you would call the function printInitials and what it would print for a couple of different parameters:Python Shell
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
