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 520. Multiply this by 500, and the result is: 260000
Add 10 to that result and multiply it by 60, and the result is: 15600600
Your line number is 2600. Add this to the previous result three times, and the result is: 15608400
Subtract 600 from that result and divide it by 3, and the result is: 5202600
n.b., In order to process a phone number (e.g.,5202600) into prefix (520) and line number (2600),
you will need to use the floor division (i.e.,'//') and modulo (i.e.,'%') operators. Consider
trying the following exercise (with Python running in interactive mode) to help you
accomplish this:
What is the result of the expression 123456//100?
What is the result of the expression 123456%100?
What happens when you change the second operand (i.e., the 100) in the expressions?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!