NPTEL solution
ONLINE TEST 9-12 AM | Solution for NPTEL Programming, Data Structures and Algorithms using Python
Question – 1 :- Here is an function to return the maximum value in a list. There is an error in this function. Provide an input list for which `maxbad` produces an incorrect output. def maxbad(l): end = len(l) – 1 mymax = l[-1] for i in range(end,0,-1): if l[i] > Read more…