Question: Please help me correct codes for running these by using the hint of the problems and fix these lines which has FIXME... ' on it

Please help me correct codes for running these by using the hint of the problems and fix these lines which has "FIXME...' on it.Problem 1:
Complete the function equiv_to(a,m, low, high) that returns a list of all the integers x in
the range low, high] such that x-=a(modm).
EXAMPLES:
Finding all integers -10x15 such that x-=3(mod5) :
IN: equiv_to(3,5,-10,15
OUT : -7,-2,3,8,13
Finding all integers -29x-11 such that x-=3(mod5) :
IN: equiv_to(12,15,-29,-11
OUT: -18
Finding all integers 3x21 such that x-=-20(mod4) :
IN: equivto(-20,4,3,21)
OUT: [4,8,12,16,20]
HINT:
By definition, all integers x that are equivalent to a under modulo m must satisfy that
x-a=m*k, for some integer k
Hence,
x=mk+a
Notice that if all the x values must to be in the range [low, high], then
low mk+a high
What lower- and upper-bound does this place on k? How do these k-values allow us to find the
goal x-values?
def equiv_to(a, m, low, high):
k_low = # FIXME: update k?low
k_high = #FIXME: update k_high
k_vals = list range , k_high +1
 Please help me correct codes for running these by using the

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!