✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will be the output of the following python program?
def MyFun(mylist):if len(mylist) > 0: mid = len(mylist)//2 if mylist[mid] < 50: return MyFun(mylist[:mid-1]) + 1 else: return MyFun(mylist[mid+1:]) + 1 else: return 1
initlist = [12, 15, 72, 66, 23, 79, 35]print (MyFun(initlist))
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!