# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://afsh4ck.gitbook.io/desarrollo-con-python/operadores-en-python/operadores/operadores-de-identidad.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
