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 = [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: Option C
Join The Discussion