Python Foundation | Loops Question 16

Last Updated :
Discuss
Comments

What is the output of the following nested loop?

Python
n = [10, 20]
li = ["Chair", "Table"]
 
for x in n:
  for y in li:
      print(x, y)


 10 Chair

 10 Table

10 Chair

10 Table

20 Chair

20 Table

Error

No output

Share your thoughts in the comments