Question: I need help writing this program in python. Write a function that will take in three inputs: base, exponent, and divisor. The output would be
Write a function that will take in three inputs: base, exponent, and divisor. The output would be the values of the modulus operations such that when multiplied and then taken the modulus of the divisor, you will get the problem's remainder. The output should be a list data type Function name should be modulus. Example: modulus(3,644,645) means 364 mod 645. The function's output would be (81, 396, 111] because those are the remainders used in finding the overall problem's remainder. See the screenshot below for further details. 649 36 mod 6457 3" med C45 - 7 66,66 mo 123 2S6 512 69 264 69S m o mo 611
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
