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

Sothy’s family paid `\$1300` in property tax last year. This year, the county will increase the property tax by `2.1\%`. Select all the expressions that repres
how to solve it can anyone help me? pls ​
PLEASE HELP WILL MARK BRAINLIEST!!!!
9)Mets ce texte au passé composé. Lucie fait le ménage dans sa chambre. Elle range ses vêtements dans l'armoire. Elle passe l'aspirateur. Elle met son ours en p
Moles of water from the KAl(SO4)2 hydrate
Suppose you have a bag with 50 letter tiles in it and 11 of the tiles are the letter M. If you pick a letter tile at random from the bag, the probability that i
Let A and B be sets. Show that d) A∩(B−A)=∅.
Analyze the polynomial function f(x)=-3(x 4)(x-2)^3
Moles of water from the KAl(SO4)2 hydrate (Convert the mass of water to moles using the molar mass of water)
What should I do at 10:54 on a Saturday night