ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 06 Jun 2017 My Price 8.00

Python3Develop and test a funcTon containing args

In Python 3, turn letter phone number into numeric one, requirements in doc :)..do not use break , and only create one function that can be called in terminal.. with atleast one argument ie. def getNumber(phone):

 

Python3Develop and test a funcTon containing args, (def getNumber():) that will prompt a user to entertelephone numbers containing le±ers and then output the corresponding numeric phone number.e.g.764-HELP is equivalent to 764-4357.Requirements:• Use a Python dicTonary container object to perform the le±er-to-number conversion.• Phone numbers must have either 7 or 10 "digits" (numbers or le±ers) and can be input in upper orlower case using any or no punctuaTon:e.g., '612.GO².MILK','(612) GO² MILK','612gotMilk',and '612GO²#MILK' are all valid inputs.• Validate the input to ensure it contains the correct number of "digits"• Output the converted phone number using hyphen characters in one of the following forms asappropriate:nnn-nnn-nnnnnnn-nnnn• ConTnue converTng telephone numbers unTl the user enters a null string, at which point your funcTonshould terminate.Constraints:• Do not import/use any library modules.Examples: >>>getNumber()Enter a telephone number: 612.got.milkNumeric telephone number is: 612-468-6455Enter a telephone number: 612.not.milkyInvalid number!Enter a telephone number: Voo doo DudeNumeric telephone number is: 866-366-3833Enter a telephone number: got#milkNumeric telephone number is: 468-6455Enter a telephone number:

Attachments:

Answers

(11)
Status NEW Posted 06 Jun 2017 01:06 AM My Price 8.00

-----------

Not Rated(0)