Write a test program that prompts the user to enter a phone


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: 1800 flowers

18003569377

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a test program that prompts the user to enter a phone
Reference No:- TGS01711102

Now Priced at $40 (50% Discount)

Recommended (90%)

Rated (4.3/5)