Q89
What will be the output of the following Python code? myList = [1, 5, 5, 5, 5, 1] max = myList[0] indexOfMax = 0 for i in range(1, len(myList)): if myList[i] > max: max = myList[i] indexOfMax = i >>>print(indexOfMax)
A.
1
AnswerB.
2
C.
3
D.
4
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board