194k views
3 votes
PLEASE HELP ME!

Put the steps in order to produce the output shown below. Assume the indenting will be correct in the program.

2 1
6 1
3 1
2 5
6 5
3 5

1. Line 1
print (numD, numC)
2. Line 2
for numD in [1,5]:
3. Line 3
print (numC, numD)

User Ye Shiqing
by
4.7k points

1 Answer

6 votes

Answer:

for numD in [1,5]:

for numC in [2,6,3]:

print (numC, numD)

Step-by-step explanation:

The given statements cannot produce this output, you need a second for loop! See picture.

PLEASE HELP ME! Put the steps in order to produce the output shown below. Assume the-example-1
User Marco Fatica
by
5.0k points