subject

Write a program that asks the user to enter a 10 character telephone number in the format xxx-xxx-. the application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. for example, if the user enters 555-get-food the application should display 555-438-3663.

def main():
#character string
numeric_phone=" "

#user inputs phone number
alpha_phone = input('enter 10-digit phone number: ')

digit_list = ["2", "3","4", "5", "6", "7", "8", "9", "0"]

for ch in alpha_phone:
if ch. isalpha():
ch = ch is upper()

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Anewly established internet company with 40 employees needs your advice. they are looking for a collaboration tool and have narrowed their choices to gotomeeting, webex, and my web conferences. after reading the information presented in this chapter and other sources, prepare a two- page document ( double spaced) that includes two advantages and two disadvantages of each tool. which one is your final recommendation? why did you choose that tool over the other two?
Answers: 3
question
Computers and Technology, 25.06.2019 00:00
To remove text from a specific location and keep it to use again, you should select
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
Feedback is one of the basic elements games have in common true false
Answers: 2
You know the right answer?
Write a program that asks the user to enter a 10 character telephone number in the format xxx-xxx-....
Questions
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
English, 11.09.2020 15:01
question
History, 11.09.2020 15:01
question
English, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Mathematics, 11.09.2020 15:01
question
Chemistry, 11.09.2020 15:01