Report Bug
Qus :

What will be the output of the following Python code?

values = [[3, 4, 5, 1], [33, 6, 1, 2]]
v = values[0][0]
for row in range(0, len(values)):
    for column in range(0, len(values[row])):
        if v < values[row][column]:
            v = values[row][column]
print(v)

Qus

निम्नलिखित Python कोड का आउटपुट क्या होगा?

values = [[3, 4, 5, 1], [33, 6, 1, 2]]
v = values[0][0]
for row in range(0, len(values)):
    for column in range(0, len(values[row])):
        if v < values[row][column]:
            v = values[row][column]
print(v)


A. 3
B. 5
C. 6
D. 33


Solution
D. 33



Explanation
Execute in the shell to verify.



Report Bug