Ex: If the input is 8005551212, the output is: 800-555-1212 Hint: Use % to get the desired rightmost digits. Ex: The rightmost 2 digits of 572 is gotten by 572 % 100, which is 72. Hint: Use // to shift right by the desired amount. Ex: Shifting 572 right by 2 digits is done by 572 // 100, which yields 5. (Recall integer division discards the fraction). For simplicity, assume any part starts with a non-zero digit. So for example: 999-011-9999 is not allowed. Do not type your input into the optional input box below, rather, input in response to the prompts in the output window (prompts are given to you in the program template). LAB ACTIVITY 22.10.1: LAB 6 B FALL 19: Phone number breakdown 0/30 ] main.py Load default template... 1 print("Following program reads 10 digits as a phone number and generates a formatted output.") 2 print("For example if the user enters: 8002345678, then the output will be: ", end=" ") 3 print("800-234-5678") 4 print 5 phone number = int(input("Please enter 10 digits:")) 7" Type your code here."

Respuesta :

Complete Question

The complete question is shown on the first uploaded image

Answer:

The Answer to the question is shown on the second uploaded image

Explanation:

The explanation to the solution above is shown the third uploaded image

Ver imagen okpalawalter8
Ver imagen okpalawalter8
Ver imagen okpalawalter8