Cooperative Learning Question

On a piece of paper, write your NAME, SECTION and DATE.

On your paper, draw this table and fill in the missing values.

    x = 3                # Line 1
    t = 0                # Line 2
    for i in range(x):   # Line 3
       print(x,i)        # Line 4
       t += x * i        # Line 5
    print(t)             # Line 6

ANSWER:
Line  x  t  i Output
1 3
2 30
3 30 0
4 30 03 0
5 30 0
3 30 1
4 30 13 1
5 33 1
3 33 2
4 33 23 2
5 39 2
6 39 29

Use your notes as desired.

Check with your neighbor to see that they all have the right answers.