I made this program it takes user input and outputs it in a new text file.

```
output = input('Insert your text')
f = open("text.txt", "a")
f.write(output)

```

This code will take a users input and prints it in a new text file. But if the file already exists in the path, the python code will just append to the file. I want the code to create a new file in the path every time the program is run. So the first time the code is run it will be displayed as text.txt, and the second time it runs it should output a new file called text(1).txt and so on.