Maru Kun

15%
Flag icon
Instead of storing a copy of my_foods in friend_foods at ➊, we 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_foods, so now both variables point to the same list.
Python Crash Course: A Hands-On, Project-Based Introduction to Programming
Rate this book
Clear rating