I'm new on Python,
Code
bright_fruit = ['banana','orange','mango']
red_fruit = ['tomato','grape','apple']
for x in bright_fruit:
for y in red_fruit:
print(x, y)
and the result like this
>banana tomato
>banana grape
>banana apple
>orange tomato
>orange grape
>orange apple
>mango tomato
>mango grape
>mango apple
what i need is print pair from array like this
>banana tomato
>orange grape
>mango apple
I will use this code to more specific cases, but can anyone fix this?
thanks for help.