Food combinations

Report a typo

We have the following two lists:

action_or_adj = ['baked', 'eat', 'sweet']
food_items = ['pineapple', 'oatmeal', 'coconut', 'yoghurt']

Suppose we applied a certain itertools function to these lists and got the following results:

baked pineapple
baked oatmeal
baked coconut
baked yoghurt
eat pineapple
eat oatmeal
eat coconut
eat yoghurt
sweet pineapple
sweet oatmeal
sweet coconut
sweet yoghurt

Which function could we use to achieve this result?

Select one option from the list
___

Create a free account to access the full topic