> For the complete documentation index, see [llms.txt](https://afsh4ck.gitbook.io/desarrollo-con-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://afsh4ck.gitbook.io/desarrollo-con-python/operadores-en-python/operadores/operadores-de-identidad.md).

# Operadores de identidad

| Operador | Ejemplo      | Significado                                                             |
| -------- | ------------ | ----------------------------------------------------------------------- |
| `is`     | `x is y`     | <p><code>True</code> si las dos variables<br>son el mismo objeto</p>    |
| `is not` | `x is not y` | <p><code>True</code> si las dos variables<br>no son el mismo objeto</p> |

```python
batman = "Batman"
robin = "Robin"

batman is robin
False
```

```python
help(id)

Help on built-in function id in module builtins:

id(obj, /)
    Return the identity of an object.
    
    This is guaranteed to be unique among simultaneously existing objects.
    (CPython uses the object's memory address.)
```

```python
# Tienen distintos IDs, por lo que son objetos diferentes
id(batman)
4370390448

id(robin)
4370389232
```

```python
text1 = "Robin"
text2 = "Robin"

text1 == text2
True

text1 is text2
False
```
