> For the complete documentation index, see [llms.txt](https://hopemoore.gitbook.io/coding-for-creatives-spring-2021/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hopemoore.gitbook.io/coding-for-creatives-spring-2021/glossary-and-terms/variables/using-a-variable.md).

# Using a Variable

After declaring and assigning the variable, you only need to use the variable name.\
\
Place the name where you will use it instead of a value and before the end of the line.

**Examples:**

*Processing and Java-based example:*

```java
String name = "Chuck";

println("Your name is " + name + "! Hello, " + name + ".");

// The above line would print "Your name is Chuck! Hello, Chuck."
```

*C# example:*

```csharp
string name = "Chuck";

print("Your name is " + name + "! Hello, " + name + ".");

// The above line would print "Your name is Chuck! Hello, Chuck."
```

*Python example:*

```python
name = "Chuck"
print("Your name is " + name + "! Hello, " + name + ".")

# The above line would print "Your name is Chuck! Hello, Chuck."
```
