I have this nested loop:
adj = ["red", "big", "tasty"]
fruits = ["apple", "banana", "cherry"]
for x in adj:
for y in fruits:
print(x, y)
From reading it I was expecting the output to be:
red apple
big banana
tasty cherry
Can somebody please explain to me why I am getting?
red apple
red banana
red cherry
big apple
big banana
big cherry
tasty apple
tasty banana
tasty cherry
I am really confused and can't work it out!
Many thanks!