Vidyalelo
Python · Q58

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 58

Q58

What will be the output of the following Python code? a = [1, 5, 7, 9, 9, 1] b=a[0] x= 0 for x in range(1, len(a)): if a[x] > b: b = a[x] b= x print(b)

A.
5
B.
3
C.
4
Answer
D.
0

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board