Question: Your prefix is 5 2 0 . Multiply this by 5 0 0 , and the result is: 2 6 0 0 0 0 Add
Your prefix is Multiply this by and the result is:
Add to that result and multiply it by and the result is:
Your line number is Add this to the previous result three times, and the result is:
Subtract from that result and divide it by and the result is:
nb In order to process a phone number eg into prefix and line number
you will need to use the floor division ie and modulo ie operators. Consider
trying the following exercise with Python running in interactive mode to help you
accomplish this:
What is the result of the expression
What is the result of the expression
What happens when you change the second operand ie the in the expressions?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
