Write a short Python function, is_multiple(n, m), that takes two integer values and returns True is n is a multiple of m, that is, n = mi for some integer i, and False otherwise. A common punishment for school children is to write out a sentence multiple times. Write a Python stand-alone program that will write the following sentence one hundred times: "I will never spam my friends again."

Respuesta :

tonb

Answer:

first:

def is_multiple(n, m):

   return (m % n) == 0

second:

for i in range(100):

   print "I will never spam my friends again."

fichoh

The required program written in python 3 for the function named is_multiple goes thus :

def is_multiple(m, n):

#initialize a function named is_multiple which takes two arguments

if (m%n) == 0 :

#checks of m divided by n does not leave a remainder

return True

# return True, if it does not

return False

#if it does, return False

The required program written in python 3 for the question 2 goes thus :

for s in range(100):

# A for loop which runs 100 times

print("I will never spam my friends again")

#for each iteration print the the above.

Learn more :https://brainly.com/question/19880525