Ask Question
30 November, 22:32

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.

+4
Answers (1)
  1. 30 November, 22:35
    0
    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))
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers