Thanks for the link, the history of modulo is very interesting but it was not what I was looking for. The problem is with my question. Let me clarify my question because you’re going to get an answer that is as good as your question. In the Code Challenge : Python Functions, Lots of Math it asks to create a function as shown below. The code challenge is asking you to create an algorithm inside the function by adding a to b and subtracting d from c and then multiplying the results together. Is this particular algorithm of any importance mathematically or is it just lots of math?
lots_of_math()
1.
Create a function named lots_of_math() . This function should have four parameters >named a , b , c , and d . The function should print 3 lines and return 1 value.
First, the sum of a and b .
Second, d subtracted from c .
Third, the first number printed, multiplied by the second number printed.
Finally, it should return the third number printed mod a
Practice and exercise, with a little bit of arithmetic that is none too difficult if we know how to add, subtract, multiply and find a remainder in division. It’s also a test on how well we can follow instructions.
Instruction is added bonus to help us learn and cement concepts so that eventually we can tackle problems on our own steam.