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
Write a function rue for the statement "The output is three times the input."
Write a function rue for the statement "The output is eight more than one-seventh of the input."
1 answer