donovanfiler7361 donovanfiler7361
  • 19-03-2020
  • Computers and Technology
contestada

Write a method is_divisible that takes two integers, m and n. The method returns True if m is divisible by n, and returns False otherwise. Test cases for this function to verify it functions correctly.

Respuesta :

abdullahfarooqi
abdullahfarooqi abdullahfarooqi
  • 22-03-2020

Answer:

def is_divisible(m,n):

   if(m%n==0):

          return True

   else:

          return False

m=int(input("Enter m:"))

n=int(input("Enter n:"))

print(is_divisible(m,n))

Explanation:

Answer Link

Otras preguntas

How did Russians escape the mongols
Compare the central ideas of Nature and Society and Solitude. Which two ideas do the excerpts share? Check the boxes that best apply. Solitude is important to a
solve each equation by factoring x^2+4x+4=0 ​
Two containers are being filled with water. One begins with 8 gallons of water and is filled at a rate of 3.5 gallons per minute. The other begins with 24 gallo
How does daisy react to the meeting with gatsby
wha is the motion of the particles in this kind of wave
Quadrilateral GEOM is a parallelogram. Find E.
what is the percent composition in baci2​
(05.02 LC) Which of the following terms best describes a group of galaxies? Select one: a. Cluster b. Constellation c. Solar system d. Universe
Match the question with the appropriate thinking skill. Pay close attention to the first word in each question. "Explain why teenagers need extra nutrients to s