Home / CSE MCQs / Python MCQs :: Discussion

Discussion :: Python MCQs

  1. What will be the output?

    values = [[3, 4, 5, 1], [33, 6, 1, 2]]
     
    v = values[0][0]
    for lst in values:
        for element in lst:
            if v > element:
                v = element
     
    print(v)
  2. A.
    1
    B.
    3
    C.
    5
    D.
    6

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Execute in the shell to verify.


Be The First To Comment