# Variable.get

### Variable.<mark style="color:purple;">get</mark>() → self

Fetches the variable, after which variable.properties will contain a dict with entries corresponding to the properties on the [variable resource definition](https://docs.redivis.com/api/resource-definitions/variable). Will raise an error if the variable does not exist.

### **Returns:**

**self (a** [**Variable**](https://docs.redivis.com/api/client-libraries/redivis-python/reference/variable)**)**

### Examples:

<pre class="language-python"><code class="lang-python"><strong>table = redivis.organization("Demo").dataset("iris_species").table("iris")
</strong>
variable = table.variable("sepalLengthCm")
variable.get() 

print(variable.properties)

{
    "kind": "variable",
    ... (see variable resource definition)
}
</code></pre>
