Question: Look at the following function definition: def my_function(x, y): return x[y] a. Write a statement that calls this function and uses keyword arguments to pass
Look at the following function definition:
def my_function(x, y):
return x[y]
a. Write a statement that calls this function and uses keyword arguments to pass ‘testing’ into x and 2 into y.
b. What will be printed when the function call executes?
Step by Step Solution
3.45 Rating (148 Votes )
There are 3 Steps involved in it
a A statement that calls this function and uses keyword arguments to pas... View full answer
Get step-by-step solutions from verified subject matter experts
