# 3.3 Basics: Input and Output

#### Inputs and Outputs

**IN** and **OUT** are important keywords in Dynamo's Python node. The 'IN' keywords tells the node to refer to any data which is sent to the node via its inputs.&#x20;

{% hint style="warning" %}
Don't forget your scripts will always need [boilerplate code](/dynamo-python-primer/getting-started/boilerplate-setup-code.md) up top!
{% endhint %}

The various inputs are accessed via their indexes, like the list\_of\_numbers below:

```python
#Boilerpate Code Always Goes Up Top! Don't forget it!

input_list_of_numbers = IN[0] #Here we take an input
output_list_of_numbers = [] #We create an empty list to output

for number in input_list_of_numbers: #Looping through input
    new_number = number + 1 #Adding 1 to each number
    output_list_of_numbers.append(new_number)

OUT = output_list_of_numbers #Here we output the new '+1' list
```

In this example, we're initially creating an empty list for our output. We loop through each number in the input list and add its incremented version to our output list. Finally, we output the incremented list via the 'OUT' keyword.

In practice, it looks like this:&#x20;

![](/files/-LxC-dhEgs-o3OBuDj1u)

####

#### Kinds of Inputs and Outputs

The Dynamo node can take any kind of data as an input and output any kind of data as an output. It is able to take element (e.g. Revit elements), abstract numbers, strings, Dynamo geometry and everything else as inputs.

However, there is one caveat when inputting Revit elements to a Python node. Revit elements need to be 'unwrapped' before they can be accessed via the API. Learn more about unwrapping elements here:

{% content-ref url="/pages/-LqjiCl7z62jQ9T7XHMx" %}
[4.4 Unwrapping Revit Elements](/dynamo-python-primer/4-revit-specific-topics/unwrapping-revit-elements.md)
{% endcontent-ref %}


---

# 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://dynamopythonprimer.gitbook.io/dynamo-python-primer/getting-started/basics-input-and-output.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.
