What was the primary purpose of this piece of code?
Code:
def f(x):
    return x * 3
The primary purpose of this code is to multiply a given input by 3.
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What was the primary purpose of this piece of code?

### Response:
The primary purpose of this code is to multiply a given input by 3.