>A Byte of Python

References

Lists are examples of objects. When you create an object and assign it to a variable, the variable only refers to the object and is not the object itself i.e. the variable points to that part of your computer's memory where the list is stored. Generally, you don't need to be worried about this, but there is a subtle effect due to references which you need to be aware of. This is demonstrated by the following example.