Given the definition of the function one_year_older:def one_year_older(name, age): print('Name:', name) age = age + 1 print('Your age next year:', age) print()Which of the following statements will invoke the function one_year_older successfully?A. one_year_older(27, 'John')B. one_year_older()C. one_year_older('John', 27)D. one_year_older('John')one_year_older(27)

Respuesta :

ijeggs

Answer:

C. one_year_older('John', 27)

Explanation:

The correct call to the function one_year_older() is the option C which is one_year_older('John', 27). This is because in the definition of the function, it was defined with two parameters name and age, so when this function is invoked, the argument for name and age must be passed to it in the function call. Hence option C which passes a string John (as the first argument name) and an int 27 (as the second argument age)