Question: REMEMBER ITS PYTHON FOR BEGINNERS KEEP IT AS SIMPLE AS POSSIBLE Problem 2 Text Me Bill's trying to teach his dad how to text message.

REMEMBER ITS PYTHON FOR BEGINNERS KEEP IT AS SIMPLE AS POSSIBLE
Problem 2 Text Me Bill's trying to teach his dad how to text message. The problem is the letters on the numbered keys are too small, and his dad gets frustrated that it takes him too long to send a message. Bill's dad can type well, however, so your job is to help Bill create a program that will allow Bill's dad to type the message he'd like to text on a keyboard, and output the numbers that he should press on the phone. Below is the conversion table. a-2 b-22 C-222 d-3 e - 33 f-333 j-5 k - 55 1 - 555 m - 6 n - 66 0 - 666 P-7 4 - 77 r- 777 S-7777 t-8 u - 88 V-888 W-9 X - 99 y - 999 Z-9999 space - * g - 4 h - 44 i - 444 Items of note: 1) If two consecutive alphabetic letters in the message require pressing the same key on the phone, you must pause between entering the letters. 2) All output letters will be in lower case. 3) Bill's dad's service limits text messages to 300 characters. Input Each line contains a string of at most 300 spaces and/or alphabetic characters on each line. The end of the input will be denoted by a line containing an asterisk * as the first character. Output The numeric characters to send each text message on the cell phone on a separate line. The text (PAUSE) should output between alphabetic characters that require pressing the same cell phone key. Sample Input Hello there no way Output Corresponding to Sample Input 4433555 (PAUSE) 555666*8443377733 66 (PAUSE) 666**92999
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
