Question: Please help me break down the answer for this question *in Python*: -how do you get the 'FLOWERS' portion to work in python etc.? For
Please help me break down the answer for this question *in Python*: -how do you get the 'FLOWERS' portion to work in python etc.?
For this lab, write a program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (uppercase) or lowercase) to a digit and leaves all other characters intact.
Example execution:
$ python phonePad.py
Enter a string : 1-800-FLOWERS
1-800-3569377
Want to process another phone? y=yes, n=no : y
Enter a string : 1800flowers
18003569377
Want to process another phone? y=yes, n=no : y
Enter a string : 1-800-GOTJUNK
1-800-4685865
Want to process another phone? y=yes, n=no : n
Have a nice day!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
