Question: Python Please Write a program that reads in a letter of the alphabet and prints out two simple statistics about this letter: whether it's an
Python Please
Write a program that reads in a letter of the alphabet and prints out two simple statistics about this letter: whether it's an uppercase or lowercase letter and its position in the alphabet. For example, given the input letter 'R', we would report that this letter is uppercase and occurs at position 18 in the alphabet. For our purposes, the first letter of the alphabet is at position 1 in the alphabet, the second letter of the alphabet is at position 2 in the alphabet, and so on. Input Format For Custom Testing The only line of input contains a single letter. Sample Case 1 Sample Input For Custom Testing R Sample Output uppercase 18 Sample Case 2 Sample Input For Custom Testing a Sample Output Lowercase 1 Sample Case 3 Sample Input For Custom Testing Z Sample Output uppercase 26
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
