Write a function that returns a number, given an uppercase letter, as

Write a function that returns a number, given an uppercase letter, as follows: 
def getNumber(uppercaseLetter):

Write a test program that prompts the user to enter a phone number as a string. The input number may 
contain letters. The program translates a letter (upper- or lowercase) to a digit and leaves all other 
characters intact. 
Here is a sample run of the program: 
Enter a string: 1-800-Flowers 
1-800-3569377 
Enter a string: 1800flowers 
18003569377

 

 

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer