<prompt> Kuandika programu ambayo kuangalia kama integer mbili kugawanya na decimal non-kuishia.  <response>: Heres one way to check if two integers a and b divide to a non-terminating decimal:1. First, divide a by b using integer division in Python to get the quotient and the remainder.2. If the remainder is 0, then a and b divide evenly and their decimal representation terminates. For example, 6 3 2, so 6 divides to a terminating decimal.3. If the remainder is not 0, we need to perform long division to see if the decimal representation repeats or not. 4. Starting with the first remainder, divide by b and continue the long division process until you either get a remainder of 0 or you get a repeating pattern of remainders.5. If you get a remainder of 0, then a and b divide to a terminating decimal.6. If you get a repeating pattern of remainders, then a and b divide to a non-terminating decimal.Heres a Python implementation of this algorithm:def divides_to_non_terminating_decimala, b: quotient, remainder divmoda, b if remainder 0: return False a and b divide evenly, so decimal representation is terminating else: remainders remainder while True: remainder 10 multiply by 10 for the next digit quotient, remainder divmodremainder, b if remainder 0: return False a and b divide evenly, so decimal representation is terminating elif remainder in remainders: return True a and b divide to a non-terminating decimal else: remainders.addremainder track seen remainders to check for repeating patternYou can call this function with two integers like this:printdivides_to_non_terminating_decimal6, 3 False, since 6 divides to a terminating decimalprintdivides_to_non_terminating_decimal1, 3 True, since 13 0.33333...printdivides_to_non_terminating_decimal7, 6 True, since 76 1.166666..., which repeats 