Please enable JavaScript to use CodeHS

CodeHS Glossary


Identity Python

When two variables refer to the same object in memory. For example:

first = [1, 2, 3]
second = first
first is second # prints true because both refer to the **same** list