Answer to Question #276473 in Python for Himanshi

Question #276473

Write a nested loop program to get the following output:


Traversing through list using nested loop


Outer Loop 10


Inner Loop A


Inner Loop B


Inner Loop C


Outer Loop 20


Inner Loop A


Inner Loop B


Inner Loop C


Outer Loop 30


Inner Loop A


Inner Loop B


Inner Loop C

1
Expert's answer
2021-12-06T16:43:33-0500
for i in [10, 20, 30]:
    print(f'Outer Loop {i}')
    for j in 'ABC':
        print(f'Inner Loop {j}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS