1 answer
(click or scroll down)
For the statement "The output is three times the input":
def triple(input):
output = input * 3
return output
For the statement "The output is eight more than one-seventh of the input":
def eight_more_than_one_seventh(input):
output = (1/7) * input + 8
return output