Question: result = 0 for i in range ( a ) : for j in range ( b ) : if i = j : result

result =0
for i in range(a):
for j in range(b):
if i=j :
result +=i+j
print(result)
If a is 3 and b is 4, what will be the result?
6
15
12
2
Wuy
. Clear answer
Submit answer
 result =0 for i in range(a): for j in range(b): if

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!