Write a function that returns a number Essay Dissertation Help – Write My School Essay

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

 

Click here to have a similar A+ quality paper done for you by one of our writers within the set deadline at a discounted rate!

The question first appeared on Write My Essay