```
X = [[1], [1,2], [1,2,3], [1,2,3,4]]
sum = 0
for j in range(len(X)) :
for i in range(len(X[j])) :
sum = sum + X[j] [i]
print(sum)
```

What is the outcome of this program?

A. 0

B. 10

C. 20

D. 50

E. 60

Skip to content# What is the outcome of this program?

```
X = [[1], [1,2], [1,2,3], [1,2,3,4]]
sum = 0
for j in range(len(X)) :
for i in range(len(X[j])) :
sum = sum + X[j] [i]
print(sum)
```

What is the outcome of this program?

A. 0

B. 10

C. 20

D. 50

E. 60