Question: 4- Write a program that reads characters from the standard input to end-of-file. For each character, have the program report whether it is a

4- Write a program that reads characters from the standard input to end-of-file. For each character, have the program report whether it is a letter. If it is a letter, also report its numerical location in the alphabet. For example, c and C would both be letter 3. Incorporate a function that takes a character as an argument and returns the numerical location if the character is a letter and that returns 1 otherwise.
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
To solve this problem you can write a program in Python that reads from the standard input and pr... View full answer
Get step-by-step solutions from verified subject matter experts
