logo

Crowdly

Browser

Add to Chrome

What output will the following code produce? mylist = [ [2,4,1], [1,2,3]...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What output will the following code produce?

mylist = [ [2,4,1], [1,2,3], [2,3,5] ]

a=0

b=0

total = 0

while a <= 2:

    while b < 2:

        total += mylist[a][b]

        b += 1

    a += 1

    b = 0 

print (total)

More questions like this

Want instant access to all verified answers on my.uopeople.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome