I need to add my program's outputs to a saved file every time I run the program without overwriting the previous outputs.

This is how I'm writing to a file now:

```
lead.write(str(alldates))

```

Any ideas?