0
Why not print output?? I am very beginner in Python.
Why the below program not print Orange chair Orange book Orange laptop Black chair Black book Black laptop White chair White book White laptop l1 = ["orange","black","white"] l2 = ["chair","book","laptop"] for i in [l1]: for j in [l2]: print(i,j)
3 Answers
+ 4
for i in l1:
for j in l2:
print(i,j)
Don't put square brackets around list variable in for loop
+ 2
No problem:-)
0
thank you Abhay đđŒ