<prompt> Kujenga kazi ambayo inachukua vigezo tatu na anarudi kubwa yao.  <response>: Here is a function that takes three parameters and returns the greatest value among them:pythondef greatest_valuea, b, c: if a b and a c: return a elif b a and b c: return b else: return cThis function takes three arguments, a, b, and c, and uses conditional statements to determine which value is the greatest. It compares a with b and c using the greater than or equal to operator, and if a is greater than or equal to both b and c, it returns a. Similarly, if b is greater than or equal to a and c, it returns b, otherwise, it returns c.Here is an example usage of this function:pythonx 10y 20z 15result greatest_valuex, y, zprintresult 20In this example, the greatest_value function is called with the arguments 10, 20, and 15, representing the values of x, y, and z, respectively. The function returns 20, which is the greatest value among the three input values, and this result is printed to the console. 