Question: Given the following program has one error. Write down which line gives the error? 1 . def X ( n 1 , n 2 )
Given the following program has one error. Write down which line gives the error?
def Xn n:
if n n:
result n
else:
result n
return result
def main:
k X
printk
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
