Question: I need help with python code error Fix the compilation issue of the below program. Basically the programmer intended to send in variable list of

I need help with python code error
Fix the compilation issue of the below program. Basically the programmer intended to send in variable list of arguments to myfunction and the first and second arguments that are passed is compared to each other. However currently is it throwing an error instead. Without changing the function parameter definition, fix the code to ensure that you compare the elements of the list passed, in the 'if block correctly 1 def my function(**a): 2 if(a[@] > a[1]): 3 print('hi') 4 else: print('hello') 6 my function(a=[2,3]) KeyError Traceback (most recent call last)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
