# Variable

### Intro

LLMs have the ability to recall and reference the data we declared.

We could compare this ability to declaring variables in any programming language.

### How it work ?&#x20;

You could use "ANY" method to declare a variable.

```
i.e.
a = "hello world"
a => "hello world"
a -> "hello world"
<a>helloworld<a>
{a}helloworld{a}
a > "hello world"
a => hello world
"""a
hello world
"""
```

{% hint style="info" %}
A software developer could consider an LLM as a 'natural coding language.' It has similar abilities to other programming languages.
{% endhint %}

### Prompt Example

{% embed url="<https://prompt.float16.cloud/prompt/4039d295-c037-4c7b-999d-0ddb2a07663f>" %}
Basic declaration and printing of a variable's value
{% endembed %}

{% embed url="<https://prompt.float16.cloud/prompt/71382ab9-b152-4b54-a66c-0fb7ecfae1ed>" %}
Basic declaration and printing of a variable's value using some variable
{% endembed %}

{% embed url="<https://prompt.float16.cloud/prompt/ccb791c7-6c98-4ee6-86ec-7dd3c5b4594d>" %}
Change value of variable
{% endembed %}

{% embed url="<https://prompt.float16.cloud/prompt/9836b258-ef9a-474f-b383-614d8ce08647>" %}
Access nested variable
{% endembed %}
