print(friend_foodsat we copy the original items in my_foods to the new list friend_foodsas we did in the previous example nextwe add new food to each listat we add 'cannolito my_foodsand at we add 'ice creamto friend_foods we then print the two lists to see whether each of these foods is in the appropriate list my favorite foods arex ['pizza''falafel''carrot cake''cannoli'my friend' favorite foods arey ['pizza''falafel''carrot cake''ice cream'the output at shows that 'cannolinow appears in our list of favorite foods but 'ice creamdoesn' at we can see that 'ice creamnow appears in our friend' list but 'cannolidoesn' if we had simply set friend_foods equal to my_foodswe would not produce two separate lists for examplehere' what happens when you try to copy list without using slicemy_foods ['pizza''falafel''carrot cake'this doesn' worku friend_foods my_foods my_foods append('cannoli'friend_foods append('ice cream'print("my favorite foods are:"print(my_foodsprint("\nmy friend' favorite foods are:"print(friend_foodsinstead of storing copy of my_foods in friend_foods at uwe set friend_foods equal to my_foods this syntax actually tells python to connect the new variable friend_foods to the list that is already contained in my_foodsso now both variables point to the same list as resultwhen we add 'cannolito my_foodsit will also appear in friend_foods likewise 'ice creamwill appear in both listseven though it appears to be added only to friend_foods the output shows that both lists are the same nowwhich is not what we wantedmy favorite foods are['pizza''falafel''carrot cake''cannoli''ice cream'my friend' favorite foods are['pizza''falafel''carrot cake''cannoli''ice cream'