Question: I'm working on a project which I want to be able to take words separated by a space, turn it into a string using .split() and then have pyautogui print it out with an "enter" being pressed in between each word. This is the code I have so far below.

```
# Importing stuff
import pyautogui

# Configure Typing Thing
pyautogui.PAUSE = 0

# Input
input = "hi this is a test run of this program"

# generate words
output_list = input.split()

pyautogui.write(output_list)
pyautogui.press("enter")

```

Could someone tell me what I did wrong while writing this? Thanks in advance.

Answer: 
Here is a simple example that will give you an idea about how to increment a counter

```js
var res=document.getElementById("res")
var btn=document.getElementById("btn")
var count=1
btn.addEventListener("click",()=>{
    res.textContent=count
    count++

})
```

```html
<div id="res"></div>

<button id="btn">Draw</button>
```
If the count variable is defined inside the mouseClicked function as the title say, you are recreating it in every mouseClick. In this case, you should define it outter the function with value = 0 and, inside the function, sum 1 to that value. Anyway, like the comments say, it's necessary that you include the code to your question to give a better answer.