What was the primary purpose of this piece of code?
Code:
def f(x):
    return x * 3
The primary purpose of this piece of code is to define a simple function named `f`, which takes a single argument `x` and returns the value of `x` multiplied by 3 when the function is called.
Complete the following task based on the instruction and optional input provided.### Instruction:
What was the primary purpose of this piece of code?

### Input:
Code:
def f(x):
    return x * 3

### Output:
The primary purpose of this piece of code is to define a simple function named `f`, which takes a single argument `x` and returns the value of `x` multiplied by 3 when the function is called.