124k views
5 votes
What is the initial value of the “outer_loop” variable on the first iteration of the nested "inner_loop"? Your answer should be only one number.

for outer_loop in range(2, 6+1):
for inner_loop in range(outer_loop):
if inner_loop % 2 == 0:
print(inner_loop)

1 Answer

1 vote

Answer:

2

Step-by-step explanation:

outer_loop starts at 2, so that is the value it has in the inner loop.

User Elliot Reeve
by
8.6k points