write two functions use python
is_phone_num: This Boolean function takes a string and returns True if it is in the format ddd- ddd-dddd,where d is adigit,False otherwise. Examplecalls:
is_phone_num('123-456-7890') --> True
is_phone_num('123-4556-7890') --> False
is_phone_num('(123)456-7890') --> False
redact_line: This function takes a string and returns a new string that has all of the phone numbers (as defined in the previous function description) in the original string replaced by ‘XXX-XXX-XXXX’. Assume that the argument ends in a newline. Phone numbers are bracketed by spaces, newlines, and/or the beginning of the string.
example:redact_line(‘123-456-7890n’) –> ‘XXX-XXX-XXXXn’ redact_line(‘123-456-7890 123-456-78901 123-456-7890n’) –>
‘XXX-XXX-XXXX 123-456-78901 XXX-XXX-XXXXn’ biggest: This function returns the largest value in its sole argument, a nonempty matrix.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more